domain

package
v0.0.0-...-e28bd7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

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

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

func (Domain) Start

func (svc Domain) Start(ctx context.Context) error

Start starts the service

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

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

Handle ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL