approvehandler

package
v1.21.6 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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApproveStatusPending  = "pending"
	ApproveStatusApproved = "approved"
	ApproveStatusRejected = "rejected"

	ApplyKindQuotaApply = "clusterQuota"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyKind

type ApplyKind string

type Approve

type Approve struct {
	Title   string      `json:"title,omitempty"`
	Kind    ApplyKind   `json:"kind,omitempty"`
	KindID  uint        `json:"recordID,omitempty"`
	Content interface{} `json:"content,omitempty"`
	Time    time.Time   `json:"time,omitempty"`
	Status  string      `json:"status,omitempty"`
}

type ApproveListResp

type ApproveListResp struct {
	handlers.ListBase
	Data []Approve `json:"list"`
}

type Handler

type Handler struct {
	base.BaseHandler
}

func (*Handler) Action

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

func (*Handler) List

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

List List Approve which status is not approved

func (*Handler) Regist

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

Jump to

Keyboard shortcuts

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