config

package
v0.10.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DraftConfig added in v0.8.0

type DraftConfig struct {
	Basedomain   string
	Image        string
	Ingress      bool
	RegistryURL  string
	RegistryAuth string

	// EnableTLS instructs Draftd to serve with TLS enabled.
	//
	// Implied by VerifyTLS. If set the TLSKey and TLSCert are required.
	EnableTLS bool
	// VerifyTLS instructs Draftd to serve with TLS enabled verify remote certificates.
	//
	// If set TLSKey, TLSCert, TLSCaCert are required.
	VerifyTLS bool
	// TLSKeyFile identifies the file containing the pem encoded TLS private
	// key Draftd should use.
	//
	// Required and valid if and only if EnableTLS or VerifyTLS is set.
	TLSKeyFile string
	// TLSCertFile identifies the file containing the pem encoded TLS
	// certificate Draftd should use.
	//
	// Required and valid if and only if EnableTLS or VerifyTLS is set.
	TLSCertFile string
	// TLSCaCertFile identifies the file containing the pem encoded TLS CA
	// certificate Draftd should use to verify remotes certificates.
	//
	// Required and valid if and only if VerifyTLS is set.
	TLSCaCertFile string
}

DraftConfig holds the configuration options for draftd

func FromClientConfig

func FromClientConfig(config clientcmd.ClientConfig) (*DraftConfig, string, error)

FromClientConfig reads a kubernetes client config, searching for information that may indicate this is a minikube/Azure Container Services/Google Container Engine cluster and return configuration optimized for that cloud, as well as the cloud provider name. Currently only supports minikube

func (*DraftConfig) String added in v0.10.0

func (cfg *DraftConfig) String() string

String returns the string representation of a DraftConfig.

func (*DraftConfig) WithTLS added in v0.10.0

func (cfg *DraftConfig) WithTLS() bool

WithTLS returns true if set in DraftConfig

Jump to

Keyboard shortcuts

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