Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateForCertAndKey ¶
func GenerateForCertAndKey(certPEM []byte, privateKey *ecdsa.PrivateKey, cfg *GenerationConfig) (*clientcmdapi.Config, error)
GenerateForCertAndKey generates a valid kubeconfig with the specified cert, key, and configuration. The cert and key will have their PEM-encodings written out to respective cert and key files to be referenced within the generated kubeconfig.
Types ¶
type GenerationConfig ¶
type GenerationConfig struct { APIServerFQDN string ClusterCAFilePath string CertFilePath string KeyFilePath string }
GenerationConfig is used to specify various configurations for generation a kubeconfig.
type ValidatorImpl ¶
type ValidatorImpl struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator() *ValidatorImpl
Click to show internal directories.
Click to hide internal directories.