metadata

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMetadata

func ParseMetadata(in []byte, out *Metadata) (err error)

ParseMetadata reads in a byte array of metadata from Digital Ocean's metadata service and returns a struct containing the etcd credentials

Types

type Metadata

type Metadata struct {
	EtcdCa             string `yaml:"k8saas_etcd_ca"`
	EtcdKey            string `yaml:"k8saas_etcd_key"`
	EtcdCert           string `yaml:"k8saas_etcd_cert"`
	KubeMasterHostname string `yaml:"k8saas_master_domain_name"`
}

Metadata stores the Kubernetes-related YAML

Jump to

Keyboard shortcuts

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