models

package
v0.0.0-...-cc012ee Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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"`
}

管理员结构体

func (*Admin) GetPassword

func (adm *Admin) GetPassword() (password string, err error)

获取管理员密码

type Children

type Children struct {
	Path        string `json:"path"`
	ServiceName string `json:"servicename"`
	ServicePort string `json:"serviceport"`
}

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"`
}

type LoginJson

type LoginJson struct {
	Username string `form:"username" json:"username" xml:"username"  binding:"required"`
	Password string `form:"password" json:"password" xml:"password" binding:"required"`
}

用户登录 from JSON

Jump to

Keyboard shortcuts

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