util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CreateCertificates

func CreateCertificates(kluster *v1.Kluster, apiURL, authURL, domain string) (map[string]string, 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
	AltNames           AltNames
	Usages             []x509.ExtKeyUsage
	ValidFor           time.Duration
}

Source Files

  • bootstrap.go
  • certificates.go
  • constants.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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