adapters

package
v0.0.0-...-e080771 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

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

func (CredentialService) Delete

func (c CredentialService) Delete(ctx context.Context, session types.Session, id string) error

Delete deletes a credential

func (CredentialService) Get

Get fetches a credential

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.

func (DeploymentService) Delete

func (d DeploymentService) Delete(ctx context.Context, session types.Session, id common.ID) error

Delete deletes the deployment. Note that deployment deletion is async, so this will simply starts the deletion process.

func (DeploymentService) Get

Get fetches deployment

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.

func (ProviderService) Delete

func (p ProviderService) Delete(ctx context.Context, session types.Session, provider common.ID) error

Delete deletes the provider

func (ProviderService) Get

Get fetches provider

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

func (TemplateService) Delete

func (t TemplateService) Delete(ctx context.Context, session types.Session, template common.ID) error

Delete deletes template

func (TemplateService) Get

func (t TemplateService) Get(ctx context.Context, session types.Session, template common.ID) (service.Template, error)

Get fetches template

type WorkspaceService

type WorkspaceService struct {
	// contains filtered or unexported fields
}

WorkspaceService implements ports.ProviderMS

func (WorkspaceService) Delete

func (w WorkspaceService) Delete(ctx context.Context, session types.Session, workspace common.ID) error

Delete deletes the workspace

func (WorkspaceService) Get

Get fetches provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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