Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Name is the identifier of the resource.
Name = "kubeconfig"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfigError ¶
IsInvalidConfigError asserts invalidConfigError.
func IsWrongTypeError ¶
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 (*StateGetter) GetDesiredState ¶
Click to show internal directories.
Click to hide internal directories.