service

package
v0.0.0-...-b723b64 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveDevEnvData

func SaveDevEnvData(
	config *entities.Config,
	cluster *entities.Cluster,
	devEnv *entities.DevEnv,
) (*string, error)

Types

type AWS

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

func NewAWS

func NewAWS(SDKConfig aws.Config) *AWS

func (*AWS) CheckInstanceTypeValidity

func (a *AWS) CheckInstanceTypeValidity(
	stepper stepper.Stepper,
	instanceType string,
) error

func (*AWS) CreateCluster

func (a *AWS) CreateCluster(
	stepper stepper.Stepper,
	config *entities.Config,
	cluster *entities.Cluster,
) error

func (*AWS) CreateDevEnv

func (a *AWS) CreateDevEnv(
	stepper stepper.Stepper,
	config *entities.Config,
	cluster *entities.Cluster,
	devEnv *entities.DevEnv,
) error

func (*AWS) CreateRecodeConfigStorage

func (a *AWS) CreateRecodeConfigStorage(
	stepper stepper.Stepper,
) error

func (*AWS) LookupRecodeConfig

func (a *AWS) LookupRecodeConfig(
	stepper stepper.Stepper,
) (*entities.Config, error)

func (*AWS) RemoveCluster

func (a *AWS) RemoveCluster(
	stepper stepper.Stepper,
	config *entities.Config,
	cluster *entities.Cluster,
) error

func (*AWS) RemoveDevEnv

func (a *AWS) RemoveDevEnv(
	stepper stepper.Stepper,
	config *entities.Config,
	cluster *entities.Cluster,
	devEnv *entities.DevEnv,
) error

func (*AWS) RemoveRecodeConfigStorage

func (a *AWS) RemoveRecodeConfigStorage(
	stepper stepper.Stepper,
) error

func (*AWS) RestoreDevEnvData

func (a *AWS) RestoreDevEnvData(
	config *entities.Config,
	cluster *entities.Cluster,
	devEnv *entities.DevEnv,
) (*string, error)

func (*AWS) SaveRecodeConfig

func (a *AWS) SaveRecodeConfig(
	stepper stepper.Stepper,
	config *entities.Config,
) error

func (*AWS) StartDevEnv

func (a *AWS) StartDevEnv(
	stepper stepper.Stepper,
	config *entities.Config,
	cluster *entities.Cluster,
	devEnv *entities.DevEnv,
) error

func (*AWS) StopDevEnv

func (a *AWS) StopDevEnv(
	stepper stepper.Stepper,
	config *entities.Config,
	cluster *entities.Cluster,
	devEnv *entities.DevEnv,
) error

type Builder

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

func NewBuilder

func NewBuilder(
	userConfigResolver UserConfigResolver,
	userConfigValidator UserConfigValidator,
	userConfigLoader UserConfigLoader,
) Builder

func (Builder) Build

func (b Builder) Build() (entities.CloudService, error)

type ClusterInfrastructure

type ClusterInfrastructure struct {
	VPC             *infrastructure.VPC             `json:"vpc"`
	InternetGateway *infrastructure.InternetGateway `json:"internet_gateway"`
	Subnet          *infrastructure.Subnet          `json:"subnet"`
	RouteTable      *infrastructure.RouteTable      `json:"route_table"`
	Route           *infrastructure.Route           `json:"route"`
}

type DevEnvInfrastructure

type DevEnvInfrastructure struct {
	SecurityGroup     *infrastructure.SecurityGroup     `json:"security_group"`
	KeyPair           *infrastructure.KeyPair           `json:"key_pair"`
	NetworkInterface  *infrastructure.NetworkInterface  `json:"network_interface"`
	InstanceTypeInfos *infrastructure.InstanceTypeInfos `json:"instance_type_infos"`
	InstanceAMI       *infrastructure.AMI               `json:"instance_ami"`
	Instance          *infrastructure.Instance          `json:"instance"`
}

type ErrInvalidInstanceType

type ErrInvalidInstanceType struct {
	InstanceType string
	Region       string
}

func (ErrInvalidInstanceType) Error

type ErrInvalidInstanceTypeArch

type ErrInvalidInstanceTypeArch struct {
	InstanceType   string
	SupportedArchs string
}

func (ErrInvalidInstanceTypeArch) Error

type UserConfigLoader

type UserConfigLoader interface {
	Load(userConfig *userconfig.Config) (aws.Config, error)
}

type UserConfigResolver

type UserConfigResolver interface {
	Resolve() (*userconfig.Config, error)
}

type UserConfigValidator

type UserConfigValidator interface {
	Validate(userConfig *userconfig.Config) error
}

Jump to

Keyboard shortcuts

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