Documentation
¶
Index ¶
- func NewPlatform() (deployment.Platform, error)
- type DockerPlatform
- func (p *DockerPlatform) DeploySecret(ctx context.Context, options *deployment.DeploySecretOptions) error
- func (p *DockerPlatform) DeployService(ctx context.Context, options *deployment.DeployServiceOptions) error
- func (p *DockerPlatform) GetSecret(ctx context.Context, options *deployment.GetSecretOptions) ([]byte, error)
- func (p *DockerPlatform) ListSecrets(ctx context.Context, options *deployment.ListSecretsOptions) ([]*deployment.SecretInfo, error)
- func (p *DockerPlatform) ListServices(ctx context.Context, options *deployment.ListServicesOptions) ([]*deployment.ServiceInfo, error)
- func (p *DockerPlatform) PrepareEnvironment(ctx context.Context, options *deployment.PrepareEnvironmentOptions) error
- func (p *DockerPlatform) ScaleService(ctx context.Context, options *deployment.ScaleServiceOptions) error
- func (p *DockerPlatform) TeardownEnvironment(ctx context.Context, options *deployment.TeardownEnvironmentOptions) error
- func (p *DockerPlatform) UndeploySecret(ctx context.Context, options *deployment.UndeploySecretOptions) error
- func (p *DockerPlatform) UndeployService(ctx context.Context, options *deployment.UndeployServiceOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlatform ¶
func NewPlatform() (deployment.Platform, error)
NewPlatform creates a new Platform instance for local docker development
Types ¶
type DockerPlatform ¶
type DockerPlatform struct {
// contains filtered or unexported fields
}
DockerPlatform implements deployment.Platform with the help of a docker
func (*DockerPlatform) DeploySecret ¶
func (p *DockerPlatform) DeploySecret(ctx context.Context, options *deployment.DeploySecretOptions) error
DeploySecret deploys a secret in an environment
func (*DockerPlatform) DeployService ¶
func (p *DockerPlatform) DeployService(ctx context.Context, options *deployment.DeployServiceOptions) error
DeployService deploys a service in an environment
func (*DockerPlatform) GetSecret ¶
func (p *DockerPlatform) GetSecret(ctx context.Context, options *deployment.GetSecretOptions) ([]byte, error)
GetSecret returns the secret value
func (*DockerPlatform) ListSecrets ¶
func (p *DockerPlatform) ListSecrets(ctx context.Context, options *deployment.ListSecretsOptions) ([]*deployment.SecretInfo, error)
ListSecrets returns a list of all deployed secrets
func (*DockerPlatform) ListServices ¶
func (p *DockerPlatform) ListServices(ctx context.Context, options *deployment.ListServicesOptions) ([]*deployment.ServiceInfo, error)
ListServices returns a list of all deployed services
func (*DockerPlatform) PrepareEnvironment ¶
func (p *DockerPlatform) PrepareEnvironment(ctx context.Context, options *deployment.PrepareEnvironmentOptions) error
PrepareEnvironment prepares an environment to start deploying services This should contain all one time setup like creating namespaces/networks etc.
func (*DockerPlatform) ScaleService ¶
func (p *DockerPlatform) ScaleService(ctx context.Context, options *deployment.ScaleServiceOptions) error
ScaleService scales the service
func (*DockerPlatform) TeardownEnvironment ¶
func (p *DockerPlatform) TeardownEnvironment(ctx context.Context, options *deployment.TeardownEnvironmentOptions) error
TeardownEnvironment cleans the environment completely
func (*DockerPlatform) UndeploySecret ¶
func (p *DockerPlatform) UndeploySecret(ctx context.Context, options *deployment.UndeploySecretOptions) error
UndeploySecret unddeploys a secret from an environment
func (*DockerPlatform) UndeployService ¶
func (p *DockerPlatform) UndeployService(ctx context.Context, options *deployment.UndeployServiceOptions) error
UndeployService unddeploys a service from an environment