cluster

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(parent iris.Party)

Types

type Cluster

type Cluster struct {
	v1Cluster.Cluster
	KeyDataStr           string           `json:"keyDataStr"`
	CertDataStr          string           `json:"certDataStr"`
	CaDataStr            string           `json:"caDataStr"`
	ConfigFileContentStr string           `json:"configContentStr"`
	Accessable           bool             `json:"accessable"`
	MemberCount          int              `json:"memberCount"`
	ExtraClusterInfo     ExtraClusterInfo `json:"extraClusterInfo"`
}

type ExtraClusterInfo

type ExtraClusterInfo struct {
	TotalNodeNum      int     `json:"totalNodeNum"`
	ReadyNodeNum      int     `json:"readyNodeNum"`
	CPUAllocatable    float64 `json:"cpuAllocatable"`
	CPURequested      float64 `json:"cpuRequested"`
	MemoryAllocatable float64 `json:"memoryAllocatable"`
	MemoryRequested   float64 `json:"memoryRequested"`
	Health            bool    `json:"health"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler() *Handler

func (*Handler) CreateCluster

func (h *Handler) CreateCluster() iris.Handler

func (*Handler) CreateClusterMember

func (h *Handler) CreateClusterMember() iris.Handler

func (*Handler) CreateClusterRole

func (h *Handler) CreateClusterRole() iris.Handler

func (*Handler) DeleteCluster

func (h *Handler) DeleteCluster() iris.Handler

func (*Handler) DeleteClusterMember

func (h *Handler) DeleteClusterMember() iris.Handler

func (*Handler) DeleteClusterRole

func (h *Handler) DeleteClusterRole() iris.Handler

func (*Handler) GetCluster

func (h *Handler) GetCluster() iris.Handler

func (*Handler) GetClusterMember

func (h *Handler) GetClusterMember() iris.Handler

func (*Handler) ListApiGroupResources

func (h *Handler) ListApiGroupResources() iris.Handler

func (*Handler) ListApiGroups

func (h *Handler) ListApiGroups() iris.Handler

func (*Handler) ListClusterMembers

func (h *Handler) ListClusterMembers() iris.Handler

func (*Handler) ListClusterRoles

func (h *Handler) ListClusterRoles() iris.Handler

func (*Handler) ListClusters

func (h *Handler) ListClusters() iris.Handler

func (*Handler) ListNamespace

func (h *Handler) ListNamespace() iris.Handler

func (*Handler) LoggingHandler

func (h *Handler) LoggingHandler() iris.Handler

func (*Handler) SearchClusters

func (h *Handler) SearchClusters() iris.Handler

func (*Handler) TerminalSessionHandler

func (h *Handler) TerminalSessionHandler() iris.Handler

func (*Handler) UpdateClusterMember

func (h *Handler) UpdateClusterMember() iris.Handler

func (*Handler) UpdateClusterRole

func (h *Handler) UpdateClusterRole() iris.Handler

type Member

type Member struct {
	Name           string           `json:"name"`
	ClusterRoles   []string         `json:"clusterRoles"`
	BindingName    string           `json:"bindingName"`
	CreateAt       time.Time        `json:"createAt"`
	NamespaceRoles []NamespaceRoles `json:"namespaceRoles"`
}

type NamespaceRoles

type NamespaceRoles struct {
	Namespace string   `json:"namespace"`
	Roles     []string `json:"roles"`
}

type Privilege

type Privilege struct {
	Url string `json:"url"`
}

type TerminalResponse

type TerminalResponse struct {
	ID string `json:"id"`
}

Jump to

Keyboard shortcuts

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