Documentation ¶
Index ¶
- Constants
- type AzureEnv
- func (e *AzureEnv) Context(ctx context.Context) (context.Context, error)
- func (e *AzureEnv) Endpoints(ctx context.Context) (*types.Endpoints, error)
- func (e *AzureEnv) ServiceLogs(ctx context.Context, services []string, startTime time.Time, ...) error
- func (e *AzureEnv) SetUp(ctx context.Context) error
- func (e *AzureEnv) TearDown(ctx context.Context) error
- type Config
- type ConfigOptFn
- type ContainerImages
Constants ¶
View Source
const (
// DefaultLocation the default Azure region to be used.
DefaultLocation = "eastus"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureEnv ¶
type AzureEnv struct { *docker.DockerHelper // contains filtered or unexported fields }
func (*AzureEnv) Context ¶
Context updates the provided ctx with environment specific data like with initialized client data allowing tests to interact with the underlying infrastructure.
func (*AzureEnv) Endpoints ¶
Endpoints returns an Endpoints object containing API endpoints for services.
func (*AzureEnv) ServiceLogs ¶
func (e *AzureEnv) ServiceLogs(ctx context.Context, services []string, startTime time.Time, stdout, stderr io.Writer) error
ServiceLogs writes service logs to io.Writer for list of services from startTime timestamp. Returns error if it cannot retrieve logs.
type Config ¶
type Config struct { // EnvName the name of the environment to be created EnvName string `mapstructure:"env_name"` // WorkDir absolute path to the directory where the deployment files prior performing actions WorkDir string `mapstructure:"work_dir"` // Region the Azure region to be used Region string `mapstructure:"region"` // PublicKeyFile the public key file to be used for the key pair PublicKeyFile string `mapstructure:"public_key_file"` // PrivateKeyFile the private key file to be used for the key pair PrivateKeyFile string `mapstructure:"private_key_file"` }
type ConfigOptFn ¶
ConfigOptFn defines transformer function for Config.
type ContainerImages ¶
type ContainerImages = envtypes.ContainerImages[string]
Click to show internal directories.
Click to hide internal directories.