kubeconfig

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the identifier of the resource.
	Name = "kubeconfig"
)

Variables

This section is empty.

Functions

func IsInvalidConfigError

func IsInvalidConfigError(err error) bool

IsInvalidConfigError asserts invalidConfigError.

func IsTimeout

func IsTimeout(err error) bool

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

Types

type Config

type Config struct {
	// Dependencies.
	CertSearcher             certs.Interface
	GetClusterConfigFunc     func(obj interface{}) (v1alpha1.ClusterGuestConfig, error)
	GetClusterObjectMetaFunc func(obj interface{}) (metav1.ObjectMeta, error)
	K8sClient                kubernetes.Interface
	Logger                   micrologger.Logger
}

Config represents the configuration used to create a new kubeconfig resource.

type StateGetter

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

StateGetter implements the kubeconfig resource.

func New

func New(config Config) (*StateGetter, error)

New creates a new configured index resource.

func (*StateGetter) GetCurrentState

func (r *StateGetter) GetCurrentState(ctx context.Context, obj interface{}) ([]*corev1.Secret, error)

func (*StateGetter) GetDesiredState

func (r *StateGetter) GetDesiredState(ctx context.Context, obj interface{}) ([]*corev1.Secret, error)

Jump to

Keyboard shortcuts

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