namespace

package
v0.0.0-...-87bbc8a Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NSInfo

type NSInfo struct {
	Code     int         `json:"code"`
	Message  string      `json:"message"`
	CodeDesc string      `json:"codedesc"`
	Data     NSInfo_data `json:"data"`
}

http://json.golang.chinazt.cc/ 自动生成, 使用前请校验

type NSInfo_data

type NSInfo_data struct {
	TotalCount int                      `json:"totalcount"`
	Namespaces []NSInfo_data_namespaces `json:"namespaces"`
}

http://json.golang.chinazt.cc/ 自动生成, 使用前请校验

type NSInfo_data_namespaces

type NSInfo_data_namespaces struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Status      string `json:"status"`
	CreatedAt   string `json:"createdat"`
	ClusterID   string `json:"clusterid"`
}

http://json.golang.chinazt.cc/ 自动生成, 使用前请校验

type NSpace

type NSpace struct {
	Pub       public.Public `json:"pub"`
	ClusterId string        `json:"cluster_id"`
	SecretKey string        `json:"secret_key"`
	Name      string        `json:"name"`
	Desc      string        `json:"desc"`
	Rmname    []string      `json:"rmname"`
	// contains filtered or unexported fields
}

func (NSpace) CreateNamespace

func (this NSpace) CreateNamespace() error

CreateNamespace 创建命名空间

func (NSpace) DeleteNamespace

func (this NSpace) DeleteNamespace() error

DeleteNamespace 删除命名空间

func (NSpace) QueryNSInfo

func (this NSpace) QueryNSInfo() (*NSInfo, error)

func (NSpace) SetDebug

func (this NSpace) SetDebug(isDebug bool)

Jump to

Keyboard shortcuts

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