docker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

ListSecrets returns a list of all deployed secrets

func (*DockerPlatform) ListServices

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

Jump to

Keyboard shortcuts

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