You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
341 B
Go
16 lines
341 B
Go
package namespace
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrNoNamespace = errors.New("that namespace does not exist")
|
|
)
|
|
|
|
type Repository interface {
|
|
Create(namespace Namespace) (*Namespace, error)
|
|
All() ([]Namespace, error)
|
|
GetByName(name string) (*Namespace, error)
|
|
Update(id int64, namespace Namespace) (*Namespace, error)
|
|
Delete(id int64) error
|
|
}
|