Documentation ¶
Index ¶
- Constants
- Variables
- type Actionable
- type JoinConfiguration
- type Role
- type Target
- func (t *Target) Apply(data interface{}, states ...string) error
- func (t *Target) DownloadFileContents(sourcePath string) (string, error)
- func (t *Target) OSRelease() (map[string]string, error)
- func (t *Target) UploadFile(sourcePath, targetPath string) error
- func (t *Target) UploadFileContents(targetPath, contents string) error
- type TargetCache
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 JoinConfiguration ¶
type JoinConfiguration struct {
Role Role
}
type Target ¶
type Target struct { Target string Nodename string Actionable Actionable Cache TargetCache KubeadmArgs map[string]interface{} }
func (*Target) DownloadFileContents ¶
func (*Target) UploadFile ¶
func (*Target) UploadFileContents ¶
type TargetCache ¶
Click to show internal directories.
Click to hide internal directories.