Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct { Name string ClusterData `yaml:"cluster"` }
type ClusterData ¶
type Context ¶
type Context struct { Name string Context ContextData }
context represents the raw context data, before the relevant user/cluster information has been looked up.
type ContextData ¶
type ExecCredential ¶ added in v0.2.2
type ExecCredential struct { Kind string ApiVersion string Status struct { Token string ExpirationTimestamp time.Time } }
ExecCredential is the expected format returned by executing a "UserExec".
type ExecTripper ¶ added in v0.2.2
type ExecTripper struct {
// contains filtered or unexported fields
}
ExecTripper is an http.RoundTripper that will inject the credentials returned by running "exec" into the request. The request will then be forwarded to "next".
func NewExecTripper ¶ added in v0.2.2
func NewExecTripper(exec UserExec, next http.RoundTripper) *ExecTripper
type KubeContext ¶
KubeContext manages configuration from a .kube/config context and implements config.Config.
func (*KubeContext) Client ¶
Client builds a new ezk8s client with the options acquired from ClientOpts.
func (*KubeContext) ClientOpts ¶
func (kc *KubeContext) ClientOpts() (opts []ezk8s.Opt, err error)
ClientOpts returns the list of options that should be past to ezk8s.New to correctly configure the client.
Click to show internal directories.
Click to hide internal directories.