kube

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config added in v1.2.5

func Config(ctx context.Context, optFns ...ClusterOptionsFunc) error

func GetAPIConfig added in v1.2.5

func GetAPIConfig() (*api.Config, string, error)

func GetNamespace added in v1.2.0

func GetNamespace(c *api.Config) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL