deployments

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MasterRole = iota
	WorkerRole = iota
)

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 JoinConfiguration

type JoinConfiguration struct {
	Role Role
}

type Role

type Role int

type Target

type Target struct {
	Target      string
	Nodename    string
	Actionable  Actionable
	Cache       TargetCache
	KubeadmArgs map[string]interface{}
}

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) OSRelease

func (t *Target) OSRelease() (map[string]string, 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