Documentation
¶
Index ¶
Constants ¶
View Source
const DeleteUsrMsg = "User \"%s\" deleted\n"
View Source
const NewUsrMsgNonScoped = "User \"%s\" created with cluster-wide rights in namespace \"%s\"\n"
View Source
const NewUsrMsgScoped = "User \"%s\" created with scoped rights in namespace \"%s\"\n"
View Source
const UserLabelSelector = "type=user"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KubeConfig ¶
type KubeConfig struct {
Kind string `yaml:"kind"`
ApiVersion string `yaml:"apiVersion"`
CurrentContext string `yaml:"current-context"`
Clusters []*KubectlClusterWithName `yaml:"clusters"`
Contexts []*KubectlContextWithName `yaml:"contexts"`
Users []*KubectlUserWithName `yaml:"users"`
}
type KubectlCluster ¶
type KubectlClusterWithName ¶
type KubectlClusterWithName struct {
Name string `yaml:"name"`
Cluster KubectlCluster `yaml:"cluster"`
}
type KubectlContext ¶
type KubectlContextWithName ¶
type KubectlContextWithName struct {
Name string `yaml:"name"`
Context KubectlContext `yaml:"context"`
}
type KubectlUser ¶
type KubectlUser struct {
Token string `yaml:"token,omitempty"`
}
type KubectlUserWithName ¶
type KubectlUserWithName struct {
Name string `yaml:"name"`
User KubectlUser `yaml:"user"`
}
Click to show internal directories.
Click to hide internal directories.