Documentation ¶
Index ¶
- func AccountsAggregatePath() string
- func BuildAccountsPayload(aggregateAccountsUsername string, aggregateAccountsPassword string) (*aggregate.AccountsPayload, error)
- func BuildGroupsPayload(aggregateGroupsUsername string, aggregateGroupsPassword string) (*aggregate.GroupsPayload, error)
- func DecodeAccountsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeGroupsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func EncodeAccountsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeGroupsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func GroupsAggregatePath() string
- func NewAccountsAccountOK(body []*AccountResponse) []*aggregate.Account
- func NewAccountsPermissionDenied(body *AccountsPermissionDeniedResponseBody) *goa.ServiceError
- func NewGroupsGroupOK(body []*GroupResponse) []*aggregate.Group
- func NewGroupsPermissionDenied(body *GroupsPermissionDeniedResponseBody) *goa.ServiceError
- func ValidateAccountResponse(body *AccountResponse) (err error)
- func ValidateAccountsPermissionDeniedResponseBody(body *AccountsPermissionDeniedResponseBody) (err error)
- func ValidateGroupsPermissionDeniedResponseBody(body *GroupsPermissionDeniedResponseBody) (err error)
- type AccountResponse
- type AccountsPermissionDeniedResponseBody
- type AccountsResponseBody
- type Client
- type GroupResponse
- type GroupsPermissionDeniedResponseBody
- type GroupsResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountsAggregatePath ¶
func AccountsAggregatePath() string
AccountsAggregatePath returns the URL path to the aggregate service accounts HTTP endpoint.
func BuildAccountsPayload ¶
func BuildAccountsPayload(aggregateAccountsUsername string, aggregateAccountsPassword string) (*aggregate.AccountsPayload, error)
BuildAccountsPayload builds the payload for the aggregate accounts endpoint from CLI flags.
func BuildGroupsPayload ¶
func BuildGroupsPayload(aggregateGroupsUsername string, aggregateGroupsPassword string) (*aggregate.GroupsPayload, error)
BuildGroupsPayload builds the payload for the aggregate groups endpoint from CLI flags.
func DecodeAccountsResponse ¶
func DecodeAccountsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeAccountsResponse returns a decoder for responses returned by the aggregate accounts endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeAccountsResponse may return the following errors:
- "PermissionDenied" (type *goa.ServiceError): http.StatusForbidden
- error: internal error
func DecodeGroupsResponse ¶
func DecodeGroupsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeGroupsResponse returns a decoder for responses returned by the aggregate groups endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGroupsResponse may return the following errors:
- "PermissionDenied" (type *goa.ServiceError): http.StatusForbidden
- error: internal error
func EncodeAccountsRequest ¶
func EncodeAccountsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeAccountsRequest returns an encoder for requests sent to the aggregate accounts server.
func EncodeGroupsRequest ¶
func EncodeGroupsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeGroupsRequest returns an encoder for requests sent to the aggregate groups server.
func GroupsAggregatePath ¶
func GroupsAggregatePath() string
GroupsAggregatePath returns the URL path to the aggregate service groups HTTP endpoint.
func NewAccountsAccountOK ¶
func NewAccountsAccountOK(body []*AccountResponse) []*aggregate.Account
NewAccountsAccountOK builds a "aggregate" service "accounts" endpoint result from a HTTP "OK" response.
func NewAccountsPermissionDenied ¶
func NewAccountsPermissionDenied(body *AccountsPermissionDeniedResponseBody) *goa.ServiceError
NewAccountsPermissionDenied builds a aggregate service accounts endpoint PermissionDenied error.
func NewGroupsGroupOK ¶
func NewGroupsGroupOK(body []*GroupResponse) []*aggregate.Group
NewGroupsGroupOK builds a "aggregate" service "groups" endpoint result from a HTTP "OK" response.
func NewGroupsPermissionDenied ¶
func NewGroupsPermissionDenied(body *GroupsPermissionDeniedResponseBody) *goa.ServiceError
NewGroupsPermissionDenied builds a aggregate service groups endpoint PermissionDenied error.
func ValidateAccountResponse ¶
func ValidateAccountResponse(body *AccountResponse) (err error)
ValidateAccountResponse runs the validations defined on AccountResponse
func ValidateAccountsPermissionDeniedResponseBody ¶
func ValidateAccountsPermissionDeniedResponseBody(body *AccountsPermissionDeniedResponseBody) (err error)
ValidateAccountsPermissionDeniedResponseBody runs the validations defined on accounts_PermissionDenied_response_body
func ValidateGroupsPermissionDeniedResponseBody ¶
func ValidateGroupsPermissionDeniedResponseBody(body *GroupsPermissionDeniedResponseBody) (err error)
ValidateGroupsPermissionDeniedResponseBody runs the validations defined on groups_PermissionDenied_response_body
Types ¶
type AccountResponse ¶
type AccountResponse struct { // Temporary account identifier ID *int64 `gorm:"autoIncrement" json:"id,omitempty"` // IDP account identifier GUID *string `json:"guid,omitempty"` // Name of user Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Login of user Login *string `gorm:"uniqueIndex" json:"login"` // Email of user Email *string `form:"email,omitempty" json:"email,omitempty" xml:"email,omitempty"` // Status of account Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` }
AccountResponse is used to define fields on response body types.
type AccountsPermissionDeniedResponseBody ¶
type AccountsPermissionDeniedResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
AccountsPermissionDeniedResponseBody is the type of the "aggregate" service "accounts" endpoint HTTP response body for the "PermissionDenied" error.
type AccountsResponseBody ¶
type AccountsResponseBody []*AccountResponse
AccountsResponseBody is the type of the "aggregate" service "accounts" endpoint HTTP response body.
type Client ¶
type Client struct { // Accounts Doer is the HTTP client used to make requests to the accounts // endpoint. AccountsDoer goahttp.Doer // Groups Doer is the HTTP client used to make requests to the groups endpoint. GroupsDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the aggregate service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the aggregate service servers.
func (*Client) Accounts ¶
Accounts returns an endpoint that makes HTTP requests to the aggregate service accounts server.
func (*Client) BuildAccountsRequest ¶
BuildAccountsRequest instantiates a HTTP request object with method and path set to call the "aggregate" service "accounts" endpoint
func (*Client) BuildGroupsRequest ¶
BuildGroupsRequest instantiates a HTTP request object with method and path set to call the "aggregate" service "groups" endpoint
type GroupResponse ¶
type GroupResponse struct { // Name of group Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID of group ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` }
GroupResponse is used to define fields on response body types.
type GroupsPermissionDeniedResponseBody ¶
type GroupsPermissionDeniedResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
GroupsPermissionDeniedResponseBody is the type of the "aggregate" service "groups" endpoint HTTP response body for the "PermissionDenied" error.
type GroupsResponseBody ¶
type GroupsResponseBody []*GroupResponse
GroupsResponseBody is the type of the "aggregate" service "groups" endpoint HTTP response body.