k8sutils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultNamespace = "default"
View Source
const ServiceAccountNamespaceFile = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"

Variables

This section is empty.

Functions

func GenerateSelfSignedCert

func GenerateSelfSignedCert(certsDirectory string, name string, namespace string) (certificate.FileStore, error)

func GetNamespace

func GetNamespace() (string, error)

Types

type TLSInfo

type TLSInfo struct {
	CertFilePath string
	KeyFilePath  string
	// contains filtered or unexported fields
}

func (*TLSInfo) Clean

func (ti *TLSInfo) Clean()

func (*TLSInfo) IsEnabled

func (ti *TLSInfo) IsEnabled() bool

func (*TLSInfo) UpdateFromK8S

func (ti *TLSInfo) UpdateFromK8S() error

Jump to

Keyboard shortcuts

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