organization

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

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 GetRequest struct {
	ReqOrg *request.Org
}

type GetResponse

type GetResponse struct {
	*models.Org
	// contains filtered or unexported fields
}

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

type UpdateResponse struct {
	*models.Org
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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