Documentation ¶
Index ¶
- func SetClusterConfigCli(fs *pflag.FlagSet)
- type ClusterConfig
- func (c *ClusterConfig) CreateDestDir() error
- func (c *ClusterConfig) FileStoreExists(r resources.ResourceType) bool
- func (c *ClusterConfig) GetClientConfig() (*rest.Config, error)
- func (c *ClusterConfig) GetClientset() (*kubernetes.Clientset, error)
- func (c *ClusterConfig) GetContext() string
- func (c *ClusterConfig) GetNamespace() (string, error)
- func (c *ClusterConfig) GetResourceStorePath(r resources.ResourceType) string
- func (c *ClusterConfig) LoadClusterConfig() (err error)
- type ClusterConfigCli
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetClusterConfigCli ¶
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
// contains filtered or unexported fields
}
func NewClusterConfig ¶
func NewClusterConfig(clusterConfigCli *ClusterConfigCli) ClusterConfig
func (*ClusterConfig) CreateDestDir ¶
func (c *ClusterConfig) CreateDestDir() error
func (*ClusterConfig) FileStoreExists ¶
func (c *ClusterConfig) FileStoreExists(r resources.ResourceType) bool
func (*ClusterConfig) GetClientConfig ¶
func (c *ClusterConfig) GetClientConfig() (*rest.Config, error)
func (*ClusterConfig) GetClientset ¶
func (c *ClusterConfig) GetClientset() (*kubernetes.Clientset, error)
func (*ClusterConfig) GetContext ¶
func (c *ClusterConfig) GetContext() string
func (*ClusterConfig) GetNamespace ¶
func (c *ClusterConfig) GetNamespace() (string, error)
func (*ClusterConfig) GetResourceStorePath ¶
func (c *ClusterConfig) GetResourceStorePath(r resources.ResourceType) string
func (*ClusterConfig) LoadClusterConfig ¶ added in v3.0.3
func (c *ClusterConfig) LoadClusterConfig() (err error)
type ClusterConfigCli ¶
func GetClusterConfigCli ¶
func GetClusterConfigCli() *ClusterConfigCli
Click to show internal directories.
Click to hide internal directories.