Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureCluster ¶
Look at following link: https://github.com/kubernetes/client-go/blob/f457a57d6d2564ff06461d22ada3ff5ca6fec9c4/tools/clientcmd/config.go#L166
func GetNamespace ¶ added in v1.2.0
Types ¶
type ClusterOptions ¶ added in v1.2.5
type ClusterOptions struct { Cluster *types.Cluster Region string Profile string Impersonate string ImpersonateGroups []string // contains filtered or unexported fields }
func NewClusterOption ¶ added in v1.2.5
func NewClusterOption() (*ClusterOptions, error)
func (*ClusterOptions) GetAuthInfo ¶ added in v1.2.5
func (c *ClusterOptions) GetAuthInfo() (*api.AuthInfo, error)
func (*ClusterOptions) GetCluster ¶ added in v1.2.5
func (c *ClusterOptions) GetCluster() (*api.Cluster, error)
func (*ClusterOptions) GetContext ¶ added in v1.2.5
func (c *ClusterOptions) GetContext(namespace string) (*api.Context, error)
type ClusterOptionsFunc ¶ added in v1.2.5
type ClusterOptionsFunc func(*ClusterOptions) error
func WithCluster ¶ added in v1.2.5
func WithCluster(c *types.Cluster) ClusterOptionsFunc
func WithImpersonation ¶ added in v1.2.5
func WithImpersonation(user string, groups []string) ClusterOptionsFunc
func WithProfile ¶ added in v1.2.5
func WithProfile(p string) ClusterOptionsFunc
func WithRegion ¶ added in v1.2.5
func WithRegion(r string) ClusterOptionsFunc
Click to show internal directories.
Click to hide internal directories.