Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNamespaceNotFound = errors.New("namespace not found") ErrNamespaceAlreadyExists = errors.New("namespace already exists") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
CreateNamespace(ctx context.Context, ns *corev1.Namespace) (*corev1.Namespace, error)
UpdateNamespace(ctx context.Context, ns *corev1.Namespace) (*corev1.Namespace, error)
ListNamespaces(ctx context.Context, opts services.ListOptions) (*services.ListResult[corev1.Namespace], error)
GetNamespace(ctx context.Context, namespaceName string) (*corev1.Namespace, error)
DeleteNamespace(ctx context.Context, namespaceName string) error
}
Service defines the namespace service interface.
func NewService ¶
NewService creates a new namespace service without authorization.
Click to show internal directories.
Click to hide internal directories.