udata

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCmd

func RunCmd(cmd string) bool

RunCmd runs the cmd if owned by this package.

Types

type CmdData

type CmdData struct {
	CmdFlags // Command-line flags
	PostProc // Post-processed data
	// contains filtered or unexported fields
}

CmdData holds the data used by the udata sub-command

func (*CmdData) CmdRun

func (d *CmdData) CmdRun()

CmdRun takes data from CmdData and outputs valid CoreOS cloud-config user data in YAML format to stdout.

type CmdFlags

type CmdFlags struct {
	AdminEmail          string   // --admin-email
	CaCertPath          string   // --ca-cert-path
	CalicoIPPool        string   // --calico-ip-pool
	ClusterID           string   // --cluster-id
	ClusterState        string   // --cluster-state
	DatadogAPIKey       string   // --datadog-api-key
	Domain              string   // --domain
	Ec2Region           string   // --ec2-region
	EtcdToken           string   // --etcd-token
	GzipUdata           bool     // --gzip-udata
	HostID              string   // --host-id
	HostName            string   // --host-name
	IaasProvider        string   // --iaas-provider
	MasterCount         int      // --master-count
	DNSProvider         string   // --dns-provider
	DNSApiKey           string   // --dns-api-key
	Prometheus          bool     // --prometheus
	QuorumCount         int      // --quorum-count
	RexrayEndpointIP    string   // --rexray-endpoint-ip
	RexrayStorageDriver string   // --rexray-storage-driver
	Roles               []string // --roles
	SlackWebhook        string   // --slack-webhook
	SMTPURL             string   // --smtp-url
	StubZones           []string // --stub-zone
	SysdigAccessKey     string   // --sysdig-access-key
}

CmdFlags honored by the udata sub-command

type PostProc

type PostProc struct {
	AlertManagers string
	Aliases       []string
	CaCert        string
	EtcdEndpoints string
	EtcdServers   string
	HostTCPPorts  []string
	HostUDPPorts  []string
	MesosDNSPort  int
	SMTP
	SystemdUnits []string
	ZkServers    string
}

PostProc data based on previous flags

type SMTP

type SMTP struct {
	Host string
	Port string
	User string
	Pass string
}

SMTP structure

Jump to

Keyboard shortcuts

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