Documentation ¶
Index ¶
- Variables
- func TruncateDestination(path string) error
- type KubeConfig
- func (k *KubeConfig) CopyCurrentContext(from *KubeConfig) error
- func (k *KubeConfig) Delete(label string) error
- func (k *KubeConfig) List(label string, source cfg.Source) error
- func (k *KubeConfig) MergeOne(sourceKonfig *KubeConfig) error
- func (k *KubeConfig) ReadConfig() (err error)
- func (k *KubeConfig) ToYaml() ([]byte, error)
- func (k *KubeConfig) WriteConfig() (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SshProtocol = "ssh://" FileProtocol = "file://" LocalHost = "127.0.0.1" )
Functions ¶
func TruncateDestination ¶
Types ¶
type KubeConfig ¶
type KubeConfig struct { Url *url.URL Bytes []byte Config clientcmdapi.Config Label string SrcDef cfg.Source }
func DestInit ¶ added in v0.0.3
func DestInit(source string) (konf *KubeConfig, err error)
func SourceInit ¶ added in v0.0.3
func SourceInit(source cfg.Source, label string) (konf *KubeConfig, err error)
func (*KubeConfig) CopyCurrentContext ¶
func (k *KubeConfig) CopyCurrentContext(from *KubeConfig) error
func (*KubeConfig) Delete ¶ added in v0.0.3
func (k *KubeConfig) Delete(label string) error
func (*KubeConfig) List ¶ added in v0.0.3
func (k *KubeConfig) List(label string, source cfg.Source) error
func (*KubeConfig) MergeOne ¶
func (k *KubeConfig) MergeOne(sourceKonfig *KubeConfig) error
func (*KubeConfig) ReadConfig ¶
func (k *KubeConfig) ReadConfig() (err error)
func (*KubeConfig) ToYaml ¶
func (k *KubeConfig) ToYaml() ([]byte, error)
func (*KubeConfig) WriteConfig ¶
func (k *KubeConfig) WriteConfig() (err error)
Click to show internal directories.
Click to hide internal directories.