Documentation
¶
Index ¶
- func NewCredentialService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) ports.CredentialService
- func NewProviderService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) ports.ProviderService
- func NewTemplateService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) ports.TemplateService
- func NewWorkspaceService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) ports.WorkspaceService
- type CredentialService
- type CredentialSvcClient
- type DeploymentService
- func (d DeploymentService) CheckDependOnCredential(ctx context.Context, session types.Session, credID string) (bool, error)
- func (d DeploymentService) CheckDependOnProvider(ctx context.Context, session types.Session, provider common.ID) (bool, error)
- func (d DeploymentService) CheckDependOnTemplate(ctx context.Context, session types.Session, template common.ID) (bool, error)
- func (d DeploymentService) CheckDependOnWorkspace(ctx context.Context, session types.Session, workspace common.ID) (bool, error)
- func (d DeploymentService) Delete(ctx context.Context, session types.Session, id common.ID) error
- func (d DeploymentService) Get(ctx context.Context, session types.Session, id common.ID) (*service.Deployment, error)
- type DeploymentSvcClient
- type ProviderOpenStackService
- type ProviderService
- func (p ProviderService) CheckDependOnTemplate(ctx context.Context, session types.Session, template common.ID) (bool, error)
- func (p ProviderService) Delete(ctx context.Context, session types.Session, provider common.ID) error
- func (p ProviderService) Get(ctx context.Context, session types.Session, id common.ID) (*service.ProviderModel, error)
- type ProviderSvcClient
- type StanAdapter
- type TemplateService
- type WorkspaceService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCredentialService ¶
func NewCredentialService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) ports.CredentialService
NewCredentialService ...
func NewProviderService ¶
func NewProviderService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) ports.ProviderService
NewProviderService ...
func NewTemplateService ¶
func NewTemplateService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) ports.TemplateService
NewTemplateService ...
func NewWorkspaceService ¶
func NewWorkspaceService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) ports.WorkspaceService
NewWorkspaceService ...
Types ¶
type CredentialService ¶
type CredentialService struct {
// contains filtered or unexported fields
}
CredentialService implements ports.CredentialService
type CredentialSvcClient ¶
type CredentialSvcClient interface { service.CredentialClient }
CredentialSvcClient is redefinition of service.CredentialClient, it is to allow mocks to be generated locally in this repo.
type DeploymentService ¶
type DeploymentService struct {
// contains filtered or unexported fields
}
DeploymentService implements ports.DeploymentMS
func NewDeploymentService ¶
func NewDeploymentService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) DeploymentService
NewDeploymentService ...
func (DeploymentService) CheckDependOnCredential ¶
func (d DeploymentService) CheckDependOnCredential(ctx context.Context, session types.Session, credID string) (bool, error)
CheckDependOnCredential checks if there is any deployment depends on the specified credential.
func (DeploymentService) CheckDependOnProvider ¶
func (d DeploymentService) CheckDependOnProvider(ctx context.Context, session types.Session, provider common.ID) (bool, error)
CheckDependOnProvider checks if there is any deployment depends on the specified provider
func (DeploymentService) CheckDependOnTemplate ¶
func (d DeploymentService) CheckDependOnTemplate(ctx context.Context, session types.Session, template common.ID) (bool, error)
CheckDependOnTemplate checks if there is any deployment depends on the specified template.
func (DeploymentService) CheckDependOnWorkspace ¶
func (d DeploymentService) CheckDependOnWorkspace(ctx context.Context, session types.Session, workspace common.ID) (bool, error)
CheckDependOnWorkspace checks if there is any deployment depends on the specified workspace.
type DeploymentSvcClient ¶
type DeploymentSvcClient interface { service.DeploymentClient }
DeploymentSvcClient is redefinition of service.DeploymentClient, it is to allow mocks to be generated locally in this repo.
type ProviderOpenStackService ¶
type ProviderOpenStackService struct {
// contains filtered or unexported fields
}
ProviderOpenStackService implements ports.ProviderOpenStackService
func NewProviderOpenStackService ¶
func NewProviderOpenStackService(queryConn messaging2.QueryConnection, eventConn messaging2.EventConnection) ProviderOpenStackService
NewProviderOpenStackService ...
func (ProviderOpenStackService) DeleteApplicationCredential ¶
func (p ProviderOpenStackService) DeleteApplicationCredential(ctx context.Context, session types.Session, providerID common.ID, credID string) error
DeleteApplicationCredential delete the application credential stored in a credential (specified by credential ID) via the openstack provider service.
type ProviderService ¶
type ProviderService struct {
// contains filtered or unexported fields
}
ProviderService implements ports.ProviderMS
func (ProviderService) CheckDependOnTemplate ¶
func (p ProviderService) CheckDependOnTemplate(ctx context.Context, session types.Session, template common.ID) (bool, error)
CheckDependOnTemplate checks if there is any provider depends on the specified template.
type ProviderSvcClient ¶
type ProviderSvcClient interface { service.ProviderClient }
ProviderSvcClient is redefinition of service.ProviderClient, it is to allow mocks to be generated locally in this repo.
type StanAdapter ¶
type StanAdapter struct {
// contains filtered or unexported fields
}
StanAdapter ...
func NewStanAdapter ¶
func NewStanAdapter(conn messaging2.EventConnection) *StanAdapter
NewStanAdapter ...
func (*StanAdapter) Start ¶
func (s *StanAdapter) Start(ctx context.Context, handlers ports.EventHandlers, wg *sync.WaitGroup) error
Start ...
type TemplateService ¶
type TemplateService struct {
// contains filtered or unexported fields
}
TemplateService implements ports.TemplateService
type WorkspaceService ¶
type WorkspaceService struct {
// contains filtered or unexported fields
}
WorkspaceService implements ports.ProviderMS