provider

package
v0.0.0-...-eedacba Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ResourceLifecycleOwned = "owned"
View Source
const TagNameExternalIPsPrefix = "external-ips/"

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSConfig

type AWSConfig struct {
	AssumeRole string
	DryRun     bool
}

AWSConfig contains configuration to create a new AWS provider.

type AWSProvider

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

AWSProvider is an implementation of Provider for AWS EC2.

func NewAWSProvider

func NewAWSProvider(awsConfig AWSConfig, kubeClient kubernetes.Interface) (*AWSProvider, error)

NewAWSProvider initializes a new AWS EC2 based Provider.

func (*AWSProvider) ApplyChanges

func (p *AWSProvider) ApplyChanges(changes *plan.Changes) error

func (*AWSProvider) DescribeInstances

func (p *AWSProvider) DescribeInstances(request *ec2.DescribeInstancesInput) ([]*ec2.Instance, error)

Implementation of EC2.Instances

func (*AWSProvider) DescribeSecurityGroups

func (p *AWSProvider) DescribeSecurityGroups(request *ec2.DescribeSecurityGroupsInput) ([]*ec2.SecurityGroup, error)

Implements EC2.DescribeSecurityGroups

func (*AWSProvider) GetClusterName

func (p *AWSProvider) GetClusterName() (string, error)

func (*AWSProvider) Rules

func (p *AWSProvider) Rules() ([]*inbound.InboundRules, error)

type EC2API

EC2API is the subset of the AWS EC2 API that we actually use. Add methods as required. Signatures must match exactly.

type Provider

type Provider interface {
	GetClusterName() (string, error)
	Rules() ([]*inbound.InboundRules, error)
	ApplyChanges(changes *plan.Changes) error
}

Provider defines the interface DNS providers should implement.

Jump to

Keyboard shortcuts

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