domain

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateEndpoint = &xreq.Endpoint{
	Path:       "/products/{product_name}/domains",
	Method:     http.MethodPost,
	Handler:    xreq.Convert(CreateAction),
	Authorizer: iauth.FAP(iauth.FeatureDomain, iauth.ActionCreate),
}

CreateRoute route AUTO GEN BY ctrl, MODIFY AS U NEED

View Source
var DeleteEndpoint = &xreq.Endpoint{
	Path:       "/products/{product_name}/domains/{domain_name}",
	Method:     http.MethodDelete,
	Handler:    xreq.Convert(DeleteAction),
	Authorizer: iauth.FAP(iauth.FeatureDomain, iauth.ActionDelete),
}

DeleteRoute route AUTO GEN BY ctrl, MODIFY AS U NEED

View Source
var ListEndpoint = &xreq.Endpoint{
	Path:       "/products/{product_name}/domains",
	Method:     http.MethodGet,
	Handler:    xreq.Convert(ListAction),
	Authorizer: iauth.FAP(iauth.FeatureDomain, iauth.ActionRead),
}

ListRoute route AUTO GEN BY ctrl, MODIFY AS U NEED

View Source
var UseStatusEndpoint = &xreq.Endpoint{
	Path:       "/products/{product_name}/domains/{domain_name}/use-status",
	Method:     http.MethodGet,
	Handler:    xreq.Convert(UseStatusAction),
	Authorizer: iauth.FAP(iauth.FeatureDomain, iauth.ActionRead),
}

UseStatusRoute route AUTO GEN BY ctrl, MODIFY AS U NEED

Functions

func CreateAction

func CreateAction(req *http.Request) (interface{}, error)

CreateAction action AUTO GEN BY ctrl, MODIFY AS U NEED

func DeleteAction

func DeleteAction(req *http.Request) (interface{}, error)

DeleteAction action AUTO GEN BY ctrl, MODIFY AS U NEED

func ListAction

func ListAction(req *http.Request) (interface{}, error)

ListAction action AUTO GEN BY ctrl, MODIFY AS U NEED

func UseStatusAction

func UseStatusAction(req *http.Request) (interface{}, error)

UseStatusAction action AUTO GEN BY ctrl, MODIFY AS U NEED

Types

type CreateParam

type CreateParam struct {
	Name *string `json:"name" uri:"name" validate:"required,min=2"`
}

CreateParam Request Param AUTO GEN BY ctrl, MODIFY AS U NEED

type DeleteParam

type DeleteParam struct {
	DomainName string `json:"domain_name" uri:"domain_name" validate:"required,min=2"`
}

DeleteParam Request Param AUTO GEN BY ctrl, MODIFY AS U NEED

type ListRsp

type ListRsp struct {
	List []*string `json:"list" uri:"list"`
}

ListRsp Request Param AUTO GEN BY ctrl, MODIFY AS U NEED

type OneData

type OneData struct {
	Name string `json:"name" uri:"name"`
}

OneData Request Param AUTO GEN BY ctrl, MODIFY AS U NEED

func CreateActionProcess

func CreateActionProcess(req *http.Request, param *CreateParam) (*OneData, error)

type OneParam

type OneParam struct {
	DomainName string `json:"domain_name" uri:"domain_name"`
}

OneParam Request Param AUTO GEN BY ctrl, MODIFY AS U NEED

type UseStatusRsp

type UseStatusRsp struct {
	DepType string `json:"dep_type"`
	DepName string `json:"dep_name"`
	BeUsed  bool   `json:"be_used"`
}

UseStatusRsp Request Param AUTO GEN BY ctrl, MODIFY AS U NEED

Jump to

Keyboard shortcuts

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