kubernetes

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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()

Jump to

Keyboard shortcuts

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