services

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EC2ClusterInterface

type EC2ClusterInterface interface {
	ReconcileNetwork() error
	ReconcileBastion() error
	DeleteNetwork() error
	DeleteBastion() error
}

EC2ClusterInterface encapsulates the methods exposed to the cluster actuator

type EC2Getter

type EC2Getter interface {
	EC2(*session.Session) EC2Interface
}

EC2Getter has a single method that returns an EC2 service interface.

type EC2Interface

type EC2Interface interface {
	EC2ClusterInterface
	EC2MachineInterface
}

EC2Interface encapsulates the methods exposed by the ec2 service.

type EC2MachineInterface

type EC2MachineInterface interface {
	InstanceIfExists(id string) (*providerv1.Instance, error)
	TerminateInstance(id string) error
	CreateOrGetMachine(machine *actuators.MachineScope, token, kubeConfig string) (*providerv1.Instance, error)
	UpdateInstanceSecurityGroups(id string, securityGroups []string) error
	UpdateResourceTags(resourceID *string, create map[string]string, remove map[string]string) error
}

EC2MachineInterface encapsulates the methods exposed to the machine actuator

type ELBGetter

type ELBGetter interface {
	ELB(*session.Session) ELBInterface
}

ELBGetter has a single method that returns an ELB service interface.

type ELBInterface

type ELBInterface interface {
	ReconcileLoadbalancers() error
	DeleteLoadbalancers() error
	RegisterInstanceWithAPIServerELB(instanceID string) error
	GetAPIServerDNSName() (string, error)
}

ELBInterface encapsulates the methods exposed by the elb service.

type Getter

type Getter interface {
	SDKSessionGetter
	EC2Getter
	ELBGetter
}

Getter is a unified interfaces that includes all the getters.

type SDKSessionGetter

type SDKSessionGetter interface {
	Session(*providerv1.AWSClusterProviderSpec) *session.Session
}

SDKSessionGetter has a single method that returns an AWS session.

Directories

Path Synopsis
ec2
mock_ec2iface
Package mock_ec2iface is a generated GoMock package.
Package mock_ec2iface is a generated GoMock package.
elb
mock_elbiface
Package mock_elbiface is a generated GoMock package.
Package mock_elbiface is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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