config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StackConfig

type StackConfig struct {
	*controlplaneconfig.Config
	StackName string
	controlplaneconfig.StackTemplateOptions
	UserDataEtcd      model.UserData
	ExtraCfnResources map[string]interface{}
	model.EtcdExistingState
}

StackConfig contains configuration parameters available when rendering CFN stack template from golang text templates

func NewEtcdStackConfig

func NewEtcdStackConfig(cp *controlplaneconfig.StackConfig) *StackConfig

NewEtcdStackConfig: Convert a controlplane StackConfig to an Etcd flavour StackConfig

func (*StackConfig) ClusterExportedStacksS3URI

func (c *StackConfig) ClusterExportedStacksS3URI() string

func (*StackConfig) ClusterS3URI

func (c *StackConfig) ClusterS3URI() string

func (StackConfig) EtcdSnapshotsS3Bucket

func (c StackConfig) EtcdSnapshotsS3Bucket() (string, error)

func (StackConfig) EtcdSnapshotsS3PathRef

func (c StackConfig) EtcdSnapshotsS3PathRef() (string, error)

EtcdSnapshotsS3Path is a pair of a S3 bucket and a key of an S3 object containing an etcd cluster snapshot

func (StackConfig) EtcdSnapshotsS3PrefixRef

func (c StackConfig) EtcdSnapshotsS3PrefixRef() (string, error)

func (*StackConfig) RenderStackTemplateAsBytes

func (c *StackConfig) RenderStackTemplateAsBytes() ([]byte, error)

func (*StackConfig) RenderStackTemplateAsString

func (c *StackConfig) RenderStackTemplateAsString() (string, error)

Jump to

Keyboard shortcuts

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