kubeconfig

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateForCertAndKey

func GenerateForCertAndKey(certPEM []byte, privateKey *ecdsa.PrivateKey, opts *GenerateOpts) (*clientcmdapi.Config, error)

Types

type GenerateOpts

type GenerateOpts struct {
	APIServerFQDN string
	ClusterCAData []byte
}

type Validator

type Validator interface {
	Validate(kubeConfigPath string, ensureAuthorization bool) error
}

type ValidatorImpl

type ValidatorImpl struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator() *ValidatorImpl

func (*ValidatorImpl) Validate

func (v *ValidatorImpl) Validate(kubeconfigPath string, ensureAuthorization bool) error

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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