aws
Package aws handles communications with AWS APIs
import "github.com/analog-substance/carbon/pkg/providers/aws"
Package aws handles communications with AWS APIs
Index
- func New() types.Provider
- type Environment
- func (e *Environment) CreateVM(options types.MachineLaunchOptions) error
- func (e *Environment) DestroyImage(imageID string) error
- func (e *Environment) DestroyVM(id string) error
- func (e *Environment) ImageBuilds() ([]types.ImageBuild, error)
- func (e *Environment) Images() ([]types.Image, error)
- func (e *Environment) Name() string
- func (e *Environment) Profile() types.Profile
- func (e *Environment) RestartVM(id string) error
- func (e *Environment) StartVM(id string) error
- func (e *Environment) StopVM(id string) error
- func (e *Environment) VMs() []types.VM
- type Profile
- type Provider
func New
func New() types.Provider
New creates new instance of an AWS Provider and returns it. Defaults to no awsProfileNames, this forces a query of the AWS config at runtime.
type Environment
type Environment struct {
// contains filtered or unexported fields
}
func (*Environment) CreateVM
func (e *Environment) CreateVM(options types.MachineLaunchOptions) error
func (*Environment) DestroyImage
func (e *Environment) DestroyImage(imageID string) error
func (*Environment) DestroyVM
func (e *Environment) DestroyVM(id string) error
func (*Environment) ImageBuilds
func (e *Environment) ImageBuilds() ([]types.ImageBuild, error)
func (*Environment) Images
func (e *Environment) Images() ([]types.Image, error)
func (*Environment) Name
func (e *Environment) Name() string
func (*Environment) Profile
func (e *Environment) Profile() types.Profile
func (*Environment) RestartVM
func (e *Environment) RestartVM(id string) error
func (*Environment) StartVM
func (e *Environment) StartVM(id string) error
func (*Environment) StopVM
func (e *Environment) StopVM(id string) error
func (*Environment) VMs
func (e *Environment) VMs() []types.VM
type Profile
type Profile struct {
types.Profile
}
func NewProfile
func NewProfile(name string, providerInstance *Provider, config common.ProfileConfig) *Profile
func (*Profile) Environments
func (p *Profile) Environments() []types.Environment
type Provider
type Provider struct {
types.Provider
// contains filtered or unexported fields
}
func (*Provider) AWSProfiles
func (p *Provider) AWSProfiles() []string
func (*Provider) IsAvailable
func (p *Provider) IsAvailable() bool
func (*Provider) Profiles
func (p *Provider) Profiles() []types.Profile