Documentation ¶
Index ¶
- type Module
- type ModuleAuth
- type ModuleRepository
- type ModuleUseCase
- type UseCase
- func (u UseCase) Create(ctx context.Context, workspaceId string, module Module) (Module, error)
- func (u UseCase) Delete(ctx context.Context, workspaceId string, name string) error
- func (u UseCase) FindAll(ctx context.Context, workspaceId string, options listoptions.Request) (listoptions.Response, error)
- func (u UseCase) FindByName(ctx context.Context, workspaceId string, name string) (Module, error)
- func (u UseCase) Update(ctx context.Context, workspaceId string, name string, module Module) (Module, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct { Name string `json:"name"` charlescdiov1alpha1.ModuleSpec Auth ModuleAuth `json:"auth"` }
type ModuleAuth ¶
type ModuleRepository ¶
type ModuleRepository interface { FindAll(ctx context.Context, namespace string, listoptions listoptions.Request) (listoptions.Response, error) FindByName(ctx context.Context, namespace string, name string) (Module, error) Create(ctx context.Context, namespace string, module Module) (Module, error) Update(ctx context.Context, namespace string, name string, module Module) (Module, error) Delete(ctx context.Context, namespace string, name string) error }
func NewK8sRepository ¶
func NewK8sRepository(clientset client.Client) ModuleRepository
type ModuleUseCase ¶
type ModuleUseCase interface { FindAll(ctx context.Context, workspaceId string, listoptions listoptions.Request) (listoptions.Response, error) FindByName(ctx context.Context, workspaceId string, name string) (Module, error) Create(ctx context.Context, workspaceId string, module Module) (Module, error) Update(ctx context.Context, workspaceId string, name string, module Module) (Module, error) Delete(ctx context.Context, workspaceId string, name string) error }
func NewUseCase ¶
func NewUseCase(workspaceUseCase workspace.WorkspaceUseCase, moduleRepository ModuleRepository) ModuleUseCase
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (UseCase) FindAll ¶
func (u UseCase) FindAll(ctx context.Context, workspaceId string, options listoptions.Request) (listoptions.Response, error)
FindAll implements ModuleUseCase
func (UseCase) FindByName ¶
FindByName implements ModuleUseCase
Click to show internal directories.
Click to hide internal directories.