cluster

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 31 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 CreateRepo added in v1.3.0

type CreateRepo struct {
	Repos   []string
	Cluster string
}

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"`
	Message           string  `json:"message"`
}

type Handler

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

func NewHandler

func NewHandler() *Handler

func (*Handler) AddCLusterRepo added in v1.3.0

func (h *Handler) AddCLusterRepo() iris.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) DeleteClusterRepo added in v1.3.0

func (h *Handler) DeleteClusterRepo() 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) ListClusterRepos added in v1.3.0

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

func (*Handler) ListClusterReposDetail added in v1.3.0

func (h *Handler) ListClusterReposDetail() 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) UpdateCluster added in v1.2.0

func (h *Handler) UpdateCluster() 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 Repo added in v1.3.0

type Repo struct {
	V1ClusterRepo.ClusterRepo
}

type TerminalResponse

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

type UpdateCluster added in v1.2.0

type UpdateCluster struct {
	Labels []string `json:"labels"`
}

Jump to

Keyboard shortcuts

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