Documentation ¶
Overview ¶
Code generated by genservices. DO NOT EDIT.
Code generated by genservices. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(svc Service, r *mux.Router, regCtx *endpointutil.HandlerRegContext)
Types ¶
type BasicService ¶
type BasicService struct {
// contains filtered or unexported fields
}
func NewBasicService ¶
func NewBasicService(orgPolicy *policy.Organization) *BasicService
func (*BasicService) Get ¶
func (s *BasicService) Get(rc *request.AuthorizedContext, reqOrg *request.Org) (*models.Org, error)
func (BasicService) Update ¶
func (s BasicService) Update(rc *request.AuthorizedContext, reqOrg *request.Org, payload *UpdatePayload) (*models.Org, error)
type GetRequest ¶
type GetResponse ¶
type Service ¶
type Service interface { //url:/v1/orgs/{provider}/{name} method:PUT Update(rc *request.AuthorizedContext, reqOrg *request.Org, payload *UpdatePayload) (*models.Org, error) //url:/v1/orgs/{provider}/{name} Get(rc *request.AuthorizedContext, reqOrg *request.Org) (*models.Org, error) }
type UpdatePayload ¶
type UpdatePayload struct { Settings *models.OrgSettings `json:"settings"` Version int `json:"version"` }
func (UpdatePayload) FillLogContext ¶
func (p UpdatePayload) FillLogContext(lctx logutil.Context)
type UpdateRequest ¶
type UpdateRequest struct { ReqOrg *request.Org Payload *UpdatePayload }
type UpdateResponse ¶
Click to show internal directories.
Click to hide internal directories.