create

package
v0.0.0-...-78c8ff7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterListAPIEndpoint  string = "/apis/cluster.giantswarm.io/v1/awses"
	ClusterWatchAPIEndpoint string = "/apis/cluster.giantswarm.io/v1/watch/awses"
)

Variables

This section is empty.

Functions

func IsInvalidCloudconfigExtensionName

func IsInvalidCloudconfigExtensionName(err error) bool

asserts invalidCloudconfigExtensionNameError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsMalformedCloudConfigKey

func IsMalformedCloudConfigKey(err error) bool

IsMalformedCloudConfigKey asserts malformedCloudConfigKeyError.

func IsMissingCloudConfigKey

func IsMissingCloudConfigKey(err error) bool

IsMissingCloudConfigKey asserts missingCloudConfigKeyError.

func IsSecretsRetrievalFailed

func IsSecretsRetrievalFailed(err error) bool

IsSecretsRetrievalFailed asserts secretsRetrievalFailedError.

Types

type CloudConfigExtension

type CloudConfigExtension struct {
	AwsInfo   awstpr.Spec
	TLSAssets *certificatetpr.CompactTLSAssets
}

func (*CloudConfigExtension) Units

func (c *CloudConfigExtension) Units() ([]cloudconfig.UnitAsset, error)

type Config

type Config struct {
	// Dependencies.
	CertWatcher *certkit.Service
	K8sClient   kubernetes.Interface
	Logger      micrologger.Logger

	// Settings.
	AwsConfig  awsutil.Config
	PubKeyFile string
}

Config represents the configuration used to create a version service.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new service by best effort.

type Event

type Event struct {
	Type   string
	Object *awstpr.CustomObject
}

type LoadBalancerInput

type LoadBalancerInput struct {
	// Name is the ELB name. It must be unique within a region.
	Name string
	// Clients are the AWS clients.
	Clients awsutil.Clients
	// Cluster is the cluster TPO.
	Cluster awstpr.CustomObject
	// InstanceIDs are the IDs of the instances that should be registered with the ELB.
	InstanceIDs []string
	// PortsToOpen are the ports the ELB should listen to and forward on.
	PortsToOpen awsresources.PortPairs
	// SecurityGroupID is the ID of the security group that will be assigned to the ELB.
	SecurityGroupID string
	// SubnetID is the ID of the subnet the ELB will be placed in.
	SubnetID string
}

type MasterCloudConfigExtension

type MasterCloudConfigExtension struct {
	CloudConfigExtension
}

func NewMasterCloudConfigExtension

func NewMasterCloudConfigExtension(awsSpec awstpr.Spec, tlsAssets *certificatetpr.CompactTLSAssets) *MasterCloudConfigExtension

func (*MasterCloudConfigExtension) Files

func (m *MasterCloudConfigExtension) Files() ([]cloudconfig.FileAsset, error)

type Service

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

Service implements the version service interface.

func New

func New(config Config) (*Service, error)

New creates a new configured service.

func (*Service) Boot

func (s *Service) Boot()

func (*Service) SmallCloudconfig

func (s *Service) SmallCloudconfig(config SmallCloudconfigConfig) (string, error)

type SmallCloudconfigConfig

type SmallCloudconfigConfig struct {
	MachineType string
	Region      string
	S3DirURI    string
}

type TLSassets

type TLSassets struct {
	APIServerCA       []byte
	APIServerKey      []byte
	APIServerCrt      []byte
	WorkerCA          []byte
	WorkerKey         []byte
	WorkerCrt         []byte
	ServiceAccountCA  []byte
	ServiceAccountKey []byte
	ServiceAccountCrt []byte
	CalicoClientCA    []byte
	CalicoClientKey   []byte
	CalicoClientCrt   []byte
	EtcdServerCA      []byte
	EtcdServerKey     []byte
	EtcdServerCrt     []byte
}

type WorkerCloudConfigExtension

type WorkerCloudConfigExtension struct {
	CloudConfigExtension
}

func NewWorkerCloudConfigExtension

func NewWorkerCloudConfigExtension(awsSpec awstpr.Spec, tlsAssets *certificatetpr.CompactTLSAssets) *WorkerCloudConfigExtension

func (*WorkerCloudConfigExtension) Files

func (w *WorkerCloudConfigExtension) Files() ([]cloudconfig.FileAsset, error)

Jump to

Keyboard shortcuts

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