Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 16 Imported by: 14

Documentation

Index

Constants

View Source
const (
	CA_ISSUER_KUBERNIKUS_IDENTIFIER_0 = "SAP Converged Cloud"
	CA_ISSUER_KUBERNIKUS_IDENTIFIER_1 = "Kubernikus"

	// This is the default Kubernetes version that clusters are created in
	DEFAULT_KUBERNETES_VERSION = "1.9.0"
)

Variables

This section is empty.

Functions

func CreateCertificates

func CreateCertificates(kluster *v1.Kluster, apiURL, authURL, domain string) (map[string]string, error)

func EnsureFinalizerCreated added in v1.5.0

func EnsureFinalizerCreated(client clientset.KubernikusV1Interface, kluster *v1.Kluster, finalizer string) (err error)

func EnsureFinalizerRemoved added in v1.5.0

func EnsureFinalizerRemoved(client clientset.KubernikusV1Interface, kluster *v1.Kluster, finalizer string) (err error)

func GenerateBootstrapToken

func GenerateBootstrapToken() string

Types

type AltNames

type AltNames struct {
	DNSNames []string
	IPs      []net.IP
}

type Bundle

type Bundle struct {
	Certificate *x509.Certificate
	PrivateKey  *rsa.PrivateKey
}

func NewBundle

func NewBundle(key, cert []byte) (Bundle, error)

func (*Bundle) NameForCert

func (b *Bundle) NameForCert() string

func (*Bundle) NameForKey

func (b *Bundle) NameForKey() string

func (Bundle) Sign

func (ca Bundle) Sign(config Config) Bundle

type Certificates

type Certificates struct {
	Etcd struct {
		Clients struct {
			CA        Bundle
			ApiServer Bundle
		}
		Peers struct {
			CA        Bundle
			Universal Bundle
		}
	}

	ApiServer struct {
		Clients struct {
			CA                Bundle
			ControllerManager Bundle
			Scheduler         Bundle
			Proxy             Bundle
			ClusterAdmin      Bundle
			Wormhole          Bundle
		}
		Nodes struct {
			CA        Bundle
			Universal Bundle
		}
	}

	Kubelet struct {
		Clients struct {
			CA        Bundle
			ApiServer Bundle
		}
	}

	TLS struct {
		CA        Bundle
		ApiServer Bundle
		Wormhole  Bundle
	}
}

func (*Certificates) MarshalYAML

func (c *Certificates) MarshalYAML() (interface{}, error)

type Config

type Config struct {
	Sign               string
	Organization       []string
	OrganizationalUnit []string
	Province           []string
	Locality           []string
	AltNames           AltNames
	Usages             []x509.ExtKeyUsage
	ValidFor           time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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