Documentation ¶
Index ¶
- type Admin
- type Children
- type IngressMeta
- func (ingmeta *IngressMeta) CreateIngress(namespace string, n int) bool
- func (ingmeta *IngressMeta) DeleteIngress(namespace string) bool
- func (ingmeta *IngressMeta) ListAnnotations(namespace string) (ingresses []IngressMeta, err error)
- func (ingmeta *IngressMeta) ListIngress(namespace string) (ingresses []IngressMeta, err error)
- func (ingmeta *IngressMeta) ReturnIngress(n int) *extensions.Ingress
- func (ingmeta *IngressMeta) UpdateIngress(namespace string, n int) bool
- type IngressPaths
- type LoginJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { Adminname string `yaml:"admin"` Password string `yaml:"password"` Namespace string `yaml:"namespace"` }
管理员结构体
type IngressMeta ¶
type IngressMeta struct { Name string `json:"name"` NameSpace string `json:"namespace"` Annotations map[string]string `json:"annotations"` Host string `json:"host"` Paths []IngressPaths `json:"children"` Rps string `json:"rps"` }
func (*IngressMeta) CreateIngress ¶
func (ingmeta *IngressMeta) CreateIngress(namespace string, n int) bool
在namespace中创建该命名空间中的ingress
func (*IngressMeta) DeleteIngress ¶
func (ingmeta *IngressMeta) DeleteIngress(namespace string) bool
在namespace中删除该命名空间中的ingress
func (*IngressMeta) ListAnnotations ¶
func (ingmeta *IngressMeta) ListAnnotations(namespace string) (ingresses []IngressMeta, err error)
列出ingress中annotations信息
func (*IngressMeta) ListIngress ¶
func (ingmeta *IngressMeta) ListIngress(namespace string) (ingresses []IngressMeta, err error)
在namespace中获取该命名空间中的ingress信息列表
func (*IngressMeta) ReturnIngress ¶
func (ingmeta *IngressMeta) ReturnIngress(n int) *extensions.Ingress
func (*IngressMeta) UpdateIngress ¶
func (ingmeta *IngressMeta) UpdateIngress(namespace string, n int) bool
在namespace中更新该命名空间中的ingress
type IngressPaths ¶
type IngressPaths struct { Path string `json:"path"` ServiceName string `json:"servicename"` ServicePort intstr.IntOrString `json:"serviceport"` }
Click to show internal directories.
Click to hide internal directories.