tenanthandler

package
v1.21.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentCreateForm

type EnvironmentCreateForm struct {
	Name          string `json:"name,omitempty" validate:"required"`
	Namespace     string `json:"namespace,omitempty" validate:"required"`
	Remark        string `json:"remark,omitempty" validate:"required"`
	MetaType      string `json:"metaType,omitempty" validate:"required"`
	DeletePolicy  string `json:"deletePolicy,omitempty" validate:"required"`
	Cluster       string `json:"cluster,omitempty" validate:"required"`
	Project       string `json:"project,omitempty" validate:"required"`
	ResourceQuota string `json:"resourceQuota,omitempty" validate:"required,json"`
	LimitRange    string `json:"limitRange,omitempty" validate:"required,json"`
	ProjectID     uint   `json:"projectID,omitempty"`
	ClusterID     uint   `json:"clusterID,omitempty"`
	CreatorID     uint   `json:"creatorID,omitempty"`
}

type EnvironmentListResp

type EnvironmentListResp struct {
	handlers.ListBase
	Data []models.EnvironmentCommon `json:"list"`
}

type EnvironmentResourceResp

type EnvironmentResourceResp struct {
	handlers.RespBase
	Data models.EnvironmentResource `json:"data"`
}

type EnvironmentResp

type EnvironmentResp struct {
	handlers.RespBase
	Data models.Environment `json:"data"`
}

type EnvironmentUserRelsResp

type EnvironmentUserRelsResp struct {
	handlers.RespBase
	Data models.EnvironmentUserRels `json:"data"`
}

type EnvironmentUserRole

type EnvironmentUserRole struct {
	Role        string `json:"role,omitempty" validate:"required"`
	User        string `json:"user,omitempty" validate:"required"`
	Environment string `json:"environment,omitempty" vlidate:"required"`
}

type Handler

type Handler struct {
	base.BaseHandler
}

func (*Handler) AddOrModifyEnvironmentMembers

func (h *Handler) AddOrModifyEnvironmentMembers(req *restful.Request, resp *restful.Response)

func (*Handler) AddTenantMember

func (h *Handler) AddTenantMember(req *restful.Request, resp *restful.Response)

func (*Handler) CreatePorject

func (h *Handler) CreatePorject(req *restful.Request, resp *restful.Response)

func (*Handler) CreateProjectEnvironment

func (h *Handler) CreateProjectEnvironment(req *restful.Request, resp *restful.Response)

func (*Handler) CreateTenant

func (h *Handler) CreateTenant(req *restful.Request, resp *restful.Response)

func (*Handler) DeleteEnvironmentMember

func (h *Handler) DeleteEnvironmentMember(req *restful.Request, resp *restful.Response)

func (*Handler) DeleteProject

func (h *Handler) DeleteProject(req *restful.Request, resp *restful.Response)

func (*Handler) DeleteProjectEnvironment

func (h *Handler) DeleteProjectEnvironment(req *restful.Request, resp *restful.Response)

func (*Handler) DeleteTenant

func (h *Handler) DeleteTenant(req *restful.Request, resp *restful.Response)

func (*Handler) DeleteTenantMember

func (h *Handler) DeleteTenantMember(req *restful.Request, resp *restful.Response)

func (*Handler) GetEnvironmentResourceAggregate

func (h *Handler) GetEnvironmentResourceAggregate(req *restful.Request, resp *restful.Response)

func (*Handler) ListEnvironmentMembers

func (h *Handler) ListEnvironmentMembers(req *restful.Request, resp *restful.Response)

func (*Handler) ListProjectEnvironment

func (h *Handler) ListProjectEnvironment(req *restful.Request, resp *restful.Response)

func (*Handler) ListTenant

func (h *Handler) ListTenant(req *restful.Request, resp *restful.Response)

func (*Handler) ListTenantMember

func (h *Handler) ListTenantMember(req *restful.Request, resp *restful.Response)

func (*Handler) ListTenantProject

func (h *Handler) ListTenantProject(req *restful.Request, resp *restful.Response)

func (*Handler) ModifyProjectEnvironment

func (h *Handler) ModifyProjectEnvironment(req *restful.Request, resp *restful.Response)

func (*Handler) ModifyTenant

func (h *Handler) ModifyTenant(req *restful.Request, resp *restful.Response)

func (*Handler) ModifyTenantMember

func (h *Handler) ModifyTenantMember(req *restful.Request, resp *restful.Response)

func (*Handler) Regist

func (h *Handler) Regist(container *restful.Container)

func (*Handler) RetrieveProjectEnvironment

func (h *Handler) RetrieveProjectEnvironment(req *restful.Request, resp *restful.Response)

func (*Handler) RetrieveTenant

func (h *Handler) RetrieveTenant(req *restful.Request, resp *restful.Response)

func (*Handler) RetrieveTenantProject

func (h *Handler) RetrieveTenantProject(req *restful.Request, resp *restful.Response)

func (*Handler) SwitchEnvironmentNetworkIsolate

func (h *Handler) SwitchEnvironmentNetworkIsolate(req *restful.Request, resp *restful.Response)

type ProjectCreateForm

type ProjectCreateForm struct {
	Name          string `json:"name" validate:"required"`
	Remark        string `json:"remark" validate:"required"`
	ResourceQuota string `json:"quota" validate:"json"`
}

type ProjectListResp

type ProjectListResp struct {
	handlers.ListBase
	Data []models.Project `json:"list"`
}

type ProjectResp

type ProjectResp struct {
	handlers.RespBase
	Data models.Project `json:"data"`
}

type TenantCommonResp

type TenantCommonResp struct {
	handlers.RespBase
	Data models.TenantCommon `json:"data"`
}

type TenantCreateResp

type TenantCreateResp struct {
	handlers.RespBase
	Data models.TenantSimple `json:"data"`
}

type TenantListResp

type TenantListResp struct {
	handlers.ListBase
	Data []models.TenantSimple `json:"list"`
}

type TenantUserCreateForm

type TenantUserCreateForm struct {
	Tenant string `json:"tenant" validate:"required"`
	User   string `json:"user" validate:"required"`
	Role   string `json:"role" validate:"required"`
}

type TenantUserCreateResp

type TenantUserCreateResp struct {
	handlers.RespBase
	Data TenantUserCreateForm `json:"data"`
}

type UserSimpleListResp

type UserSimpleListResp struct {
	handlers.ListBase
	Data []models.UserSimple `json:"list"`
}

Jump to

Keyboard shortcuts

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