deployments

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUSEOSID = "suse"
)

Variables

View Source
var (
	Secrets = []string{
		"pki/ca.crt",
		"pki/ca.key",
		"pki/sa.key",
		"pki/sa.pub",
		"pki/front-proxy-ca.crt",
		"pki/front-proxy-ca.key",
		"pki/etcd/ca.crt",
		"pki/etcd/ca.key",
		"admin.conf",
	}
)

Functions

This section is empty.

Types

type Actionable

type Actionable interface {
	Apply(data interface{}, states ...string) error
	UploadFileContents(targetPath, contents string) error
	DownloadFileContents(sourcePath string) (string, error)
}

type BootstrapConfiguration added in v0.2.0

type BootstrapConfiguration struct {
	KubeadmExtraArgs map[string]string
}

type JoinConfiguration

type JoinConfiguration struct {
	Role             Role
	KubeadmExtraArgs map[string]string
}

type Role

type Role uint
const (
	MasterRole Role = iota
	WorkerRole Role = iota
)

type Target

type Target struct {
	Target     string
	Nodename   string
	Actionable Actionable
	Cache      TargetCache
}

func (*Target) Apply

func (t *Target) Apply(data interface{}, states ...string) error

func (*Target) DownloadFileContents

func (t *Target) DownloadFileContents(sourcePath string) (string, error)

func (*Target) IsSUSEOS added in v0.2.0

func (t *Target) IsSUSEOS() (bool, error)

func (*Target) UploadFile

func (t *Target) UploadFile(sourcePath, targetPath string) error

func (*Target) UploadFileContents

func (t *Target) UploadFileContents(targetPath, contents string) error

type TargetCache

type TargetCache struct {
	OsRelease map[string]string
}

Directories

Path Synopsis
ssh

Jump to

Keyboard shortcuts

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