Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProjectNotFound = errors.New("project not found") ErrProjectAlreadyExists = errors.New("project already exists") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
CreateProject(ctx context.Context, namespaceName string, project *openchoreov1alpha1.Project) (*openchoreov1alpha1.Project, error)
UpdateProject(ctx context.Context, namespaceName string, project *openchoreov1alpha1.Project) (*openchoreov1alpha1.Project, error)
ListProjects(ctx context.Context, namespaceName string, opts services.ListOptions) (*services.ListResult[openchoreov1alpha1.Project], error)
GetProject(ctx context.Context, namespaceName, projectName string) (*openchoreov1alpha1.Project, error)
DeleteProject(ctx context.Context, namespaceName, projectName string) error
}
Service defines the project service interface. Both the core service (no authz) and the authz-wrapped service implement this. Methods accept and return Kubernetes CRD types directly for alignment with the K8s-native API design (discussion #1716).
func NewService ¶
NewService creates a new project service without authorization.
Click to show internal directories.
Click to hide internal directories.