Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type Kubeconfig
- func (this *Kubeconfig) GetClient(contextName string) (Client, error)
- func (this Kubeconfig) IsEqualTo(other any) bool
- func (this Kubeconfig) IsZero() bool
- func (this Kubeconfig) MarshalText() ([]byte, error)
- func (this *Kubeconfig) Set(plain string) error
- func (this Kubeconfig) String() string
- func (this *Kubeconfig) UnmarshalText(text []byte) error
- func (this Kubeconfig) Validate() error
Constants ¶
View Source
const ( ServiceTokenFile = "/var/run/secrets/kubernetes.io/serviceaccount/token" ServiceRootCAFile = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" ServiceNamespaceFile = "/var/run/secrets/kubernetes.io/serviceaccount/namespace" KubeconfigInCluster = "incluster" EnvVarKubeconfig = "KUBE_CONFIG" EnvVarKubeconfigFiles = "KUBECONFIG" )
Variables ¶
View Source
var ( ErrPodNotFound = fmt.Errorf("pod not found") ErrEndpointNotFound = fmt.Errorf("endpoint not found") )
Functions ¶
This section is empty.
Types ¶
type Kubeconfig ¶
type Kubeconfig struct {
// contains filtered or unexported fields
}
func MustNewKubeconfig ¶
func MustNewKubeconfig(plain string) Kubeconfig
func NewKubeconfig ¶
func NewKubeconfig(plain string) (Kubeconfig, error)
func (*Kubeconfig) GetClient ¶
func (this *Kubeconfig) GetClient(contextName string) (Client, error)
func (Kubeconfig) IsEqualTo ¶
func (this Kubeconfig) IsEqualTo(other any) bool
func (Kubeconfig) IsZero ¶
func (this Kubeconfig) IsZero() bool
func (Kubeconfig) MarshalText ¶
func (this Kubeconfig) MarshalText() ([]byte, error)
func (*Kubeconfig) Set ¶
func (this *Kubeconfig) Set(plain string) error
func (Kubeconfig) String ¶
func (this Kubeconfig) String() string
func (*Kubeconfig) UnmarshalText ¶
func (this *Kubeconfig) UnmarshalText(text []byte) error
func (Kubeconfig) Validate ¶
func (this Kubeconfig) Validate() error
Click to show internal directories.
Click to hide internal directories.