Documentation ¶
Index ¶
- type CredentialDeletionHandler
- type Domain
- func (svc Domain) DeleteCredential(req types.DeletionRequest, tid common.TransactionID) types.DeletionResponse
- func (svc Domain) DeleteTemplate(req types.DeletionRequest, tid common.TransactionID) types.DeletionResponse
- func (svc Domain) DeleteWorkspace(req types.DeletionRequest, tid common.TransactionID) types.DeletionResponse
- func (svc Domain) Start(ctx context.Context) error
- type TemplateDeletionHandler
- type WorkspaceDeletionHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialDeletionHandler ¶
type CredentialDeletionHandler struct {
// contains filtered or unexported fields
}
CredentialDeletionHandler handles credential deletion. Credential is depdended by deployment. Note that even though credential is used to import/sync template, it is specified every time it is used (import/sync), so there isn't a reference to a credential that needs to be maintained. Therefore, we don't need to check for template when deleting credential.
func (CredentialDeletionHandler) Handle ¶
func (h CredentialDeletionHandler) Handle(ctx context.Context, req types.DeletionRequest, tid common.TransactionID) types.DeletionResponse
Handle ...
type Domain ¶
type Domain struct {
// contains filtered or unexported fields
}
Domain entry point object of the service
func NewService ¶
func NewService( eventSource ports.IncomingEventSource, credentialSvc ports.CredentialService, templateSvc ports.TemplateService, providerSvc ports.ProviderService, openstackProviderSvc ports.ProviderOpenStackService, workspaceSvc ports.WorkspaceService, deploymentSvc ports.DeploymentService, ) Domain
NewService ...
func (Domain) DeleteCredential ¶
func (svc Domain) DeleteCredential(req types.DeletionRequest, tid common.TransactionID) types.DeletionResponse
DeleteCredential implements ports.EventHandlers
func (Domain) DeleteTemplate ¶
func (svc Domain) DeleteTemplate(req types.DeletionRequest, tid common.TransactionID) types.DeletionResponse
DeleteTemplate implements ports.EventHandlers
func (Domain) DeleteWorkspace ¶
func (svc Domain) DeleteWorkspace(req types.DeletionRequest, tid common.TransactionID) types.DeletionResponse
DeleteWorkspace implements ports.EventHandlers
type TemplateDeletionHandler ¶
type TemplateDeletionHandler struct {
// contains filtered or unexported fields
}
TemplateDeletionHandler handles template deletion. template is depended by deployment or provider (prerequisite template in metadata).
func (TemplateDeletionHandler) Handle ¶
func (h TemplateDeletionHandler) Handle(ctx context.Context, req types.DeletionRequest, tid common.TransactionID) types.DeletionResponse
Handle ...
type WorkspaceDeletionHandler ¶
type WorkspaceDeletionHandler struct {
// contains filtered or unexported fields
}
WorkspaceDeletionHandler handles workspaceSvc deletion. workspace is depended by deployments, thus a workspace cannot be deleted when a deployment is using it.
func (WorkspaceDeletionHandler) Handle ¶
func (h WorkspaceDeletionHandler) Handle(ctx context.Context, req types.DeletionRequest, tid common.TransactionID) types.DeletionResponse
Handle ...