Documentation ¶
Index ¶
- Constants
- type EchoHandler
- type UseCase
- func (u UseCase) Create(workspace Workspace) (WorkspaceModel, error)
- func (u UseCase) Delete(id string) error
- func (u UseCase) FindAll() ([]WorkspaceModel, error)
- func (u UseCase) FindById(id string) (WorkspaceModel, error)
- func (u UseCase) GetKebabCaseNameById(id string) (string, error)
- func (u UseCase) Update(id string, workspace Workspace) (WorkspaceModel, error)
- type Workspace
- type WorkspaceModel
- type WorkspaceRepository
- type WorkspaceUseCase
Constants ¶
View Source
const ( IstioNetworking = "istio" GateNetworking = "gate" )
View Source
const ( CircleDeployStrategy = "circle" CanaryDeployStrategy = "canary" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EchoHandler ¶
type EchoHandler struct {
// contains filtered or unexported fields
}
func NewEchohandler ¶
func NewEchohandler(e *echo.Echo, logger *zap.Logger, workspaceUseCase WorkspaceUseCase) EchoHandler
func (EchoHandler) Create ¶
func (h EchoHandler) Create(c echo.Context) error
func (EchoHandler) Delete ¶
func (h EchoHandler) Delete(c echo.Context) error
func (EchoHandler) FindAll ¶
func (h EchoHandler) FindAll(c echo.Context) error
func (EchoHandler) FindById ¶
func (h EchoHandler) FindById(c echo.Context) error
func (EchoHandler) Update ¶
func (h EchoHandler) Update(c echo.Context) error
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (UseCase) Create ¶
func (u UseCase) Create(workspace Workspace) (WorkspaceModel, error)
Create implements WorkspaceModelUseCase
func (UseCase) FindAll ¶
func (u UseCase) FindAll() ([]WorkspaceModel, error)
FindAll implements WorkspaceModelUseCase
func (UseCase) FindById ¶
func (u UseCase) FindById(id string) (WorkspaceModel, error)
FindById implements WorkspaceModelUseCase
func (UseCase) GetKebabCaseNameById ¶
type WorkspaceModel ¶
type WorkspaceRepository ¶
type WorkspaceRepository interface { FindAll() ([]WorkspaceModel, error) FindById(id string) (WorkspaceModel, error) Create(workspace Workspace) (WorkspaceModel, error) Update(id string, workspace Workspace) (WorkspaceModel, error) Delete(id string) error }
func NewRepository ¶
func NewRepository(clientset client.Client) WorkspaceRepository
type WorkspaceUseCase ¶
type WorkspaceUseCase interface { FindAll() ([]WorkspaceModel, error) FindById(id string) (WorkspaceModel, error) Create(workspace Workspace) (WorkspaceModel, error) Update(id string, workspace Workspace) (WorkspaceModel, error) Delete(id string) error GetKebabCaseNameById(id string) (string, error) }
func NewUseCase ¶
func NewUseCase(repository WorkspaceRepository) WorkspaceUseCase
Click to show internal directories.
Click to hide internal directories.