aws

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package aws - aws provider. Common functions of aws provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModulesFactories

func GetModulesFactories() map[string]ActivityFactory

GetModulesFactories return registered modules factories (used by provisioner).

func RegisterActivityFactory

func RegisterActivityFactory(aType, aName string, moduleFactory ActivityFactory) error

RegisterActivityFactory - add module to ModulesFactories list.

Types

type ActivityFactory

type ActivityFactory interface {
	New(Config, *cluster.State) (provider.Activity, error)
}

ActivityFactory common interface for modules and provisioners factories.

type BackendSpec

type BackendSpec struct {
	Bucket string `json:"bucket,omitempty"`
	Key    string `json:"key,omitempty"`
	Region string `json:"region,omitempty"`
}

BackendSpec - terraform s3 bucket backend config.

type Config

type Config struct {
	Region            string                 `yaml:"region"`
	Vpc               string                 `yaml:"vpc"`
	Domain            string                 `yaml:"domain"`
	Provisioner       map[string]interface{} `yaml:"provisioner"`
	ProviderType      string                 `yaml:"type"`
	AvailabilityZones []string               `yaml:"availability_zones"`
	ClusterName       string                 `yaml:"cluster_name"`
}

Config - aws provider config.

type Factory

type Factory struct{}

Factory - provider factory. Create new provider.

func (*Factory) New

func (f *Factory) New(yamlSpec []byte, state *cluster.State, clusterName string) (cluster.Provider, error)

New provider, check config.

type Provider

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

Provider - main provider object.

func (*Provider) Deploy

func (p *Provider) Deploy() error

Deploy function.

func (*Provider) Destroy

func (p *Provider) Destroy() error

Destroy function.

Directories

Path Synopsis
module
eks
vpc
eks

Jump to

Keyboard shortcuts

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