Documentation ¶
Index ¶
- Variables
- func NewIngressAssemble(namespace, name string) ingressAssemble
- func NewPodAssemble(namespace, name, imagename string) podAssemble
- func NewSvcAssemble(namespace, name string, svctype v1.ServiceType) svcAssemble
- func NewSvcAssembleWithClusterIP(namespace, name string) svcAssemble
- type KubeConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var IngressWrap ingresswrap = ingresswrap{}
View Source
var NamespaceWrap namespacewrap = namespacewrap{}
View Source
var PodWrap podwrap = podwrap{}
View Source
var SvcWrap svcwrap = svcwrap{}
Functions ¶
func NewIngressAssemble ¶
func NewIngressAssemble(namespace, name string) ingressAssemble
func NewPodAssemble ¶
func NewPodAssemble(namespace, name, imagename string) podAssemble
func NewSvcAssemble ¶
func NewSvcAssemble(namespace, name string, svctype v1.ServiceType) svcAssemble
func NewSvcAssembleWithClusterIP ¶
func NewSvcAssembleWithClusterIP(namespace, name string) svcAssemble
Types ¶
type KubeConfig ¶
type KubeConfig struct { MasterUrl string `yaml:"master_url" mapstructure:"master_url"` // k8s的apiserver服务地址,格式"https://host:port",默认情况下,apiserver的协议是https,端口是6443 KubeConfigPath string `yaml:"kube_config_path" mapstructure:"kube_config_path"` // k8s令牌文件路径 }
func (KubeConfig) Load ¶
func (c KubeConfig) Load()
Click to show internal directories.
Click to hide internal directories.