client

package
v0.28.9 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCreatePayload

func BuildCreatePayload(orderCreateBody string, orderCreateJWT string) (*order.CreatePayload, error)

BuildCreatePayload builds the payload for the order create endpoint from CLI flags.

func BuildListPayload

func BuildListPayload(orderListLimit string, orderListPage string, orderListFilter string, orderListOrderBy string, orderListOrderDesc string, orderListAtTime string, orderListJWT string) (*order.ListPayload, error)

BuildListPayload builds the payload for the order list endpoint from CLI flags.

func BuildLogsPayload added in v0.28.3

func BuildLogsPayload(orderLogsBody string, orderLogsJWT string) (*order.LogsPayload, error)

BuildLogsPayload builds the payload for the order logs endpoint from CLI flags.

func BuildReadPayload

func BuildReadPayload(orderReadID string, orderReadJWT string) (*order.ReadPayload, error)

BuildReadPayload builds the payload for the order read endpoint from CLI flags.

func BuildTopPayload added in v0.28.5

func BuildTopPayload(orderTopBody string, orderTopJWT string) (*order.TopPayload, error)

BuildTopPayload builds the payload for the order top endpoint from CLI flags.

func CreateOrderPath

func CreateOrderPath() string

CreateOrderPath returns the URL path to the order service create HTTP endpoint.

func DecodeCreateResponse

func DecodeCreateResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeCreateResponse returns a decoder for responses returned by the order create endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCreateResponse may return the following errors:

  • "bad-request" (type *order.BadRequestT): http.StatusBadRequest
  • "invalid-credential" (type *order.InvalidCredentialsT): http.StatusBadRequest
  • "invalid-parameter" (type *order.InvalidParameterValue): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *order.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *order.NotImplementedT): http.StatusNotImplemented
  • "not-found" (type *order.ResourceNotFoundT): http.StatusNotFound
  • "not-available" (type *order.ServiceNotAvailableT): http.StatusServiceUnavailable
  • "not-authorized" (type *order.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func DecodeListResponse

func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeListResponse returns a decoder for responses returned by the order list endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListResponse may return the following errors:

  • "bad-request" (type *order.BadRequestT): http.StatusBadRequest
  • "invalid-credential" (type *order.InvalidCredentialsT): http.StatusBadRequest
  • "invalid-parameter" (type *order.InvalidParameterValue): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *order.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *order.NotImplementedT): http.StatusNotImplemented
  • "not-authorized" (type *order.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func DecodeLogsResponse added in v0.28.3

func DecodeLogsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeLogsResponse returns a decoder for responses returned by the order logs endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeLogsResponse may return the following errors:

  • "bad-request" (type *order.BadRequestT): http.StatusBadRequest
  • "invalid-credential" (type *order.InvalidCredentialsT): http.StatusBadRequest
  • "invalid-parameter" (type *order.InvalidParameterValue): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *order.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *order.NotImplementedT): http.StatusNotImplemented
  • "not-found" (type *order.ResourceNotFoundT): http.StatusNotFound
  • "not-authorized" (type *order.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func DecodeReadResponse

func DecodeReadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeReadResponse returns a decoder for responses returned by the order read endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeReadResponse may return the following errors:

  • "bad-request" (type *order.BadRequestT): http.StatusBadRequest
  • "invalid-credential" (type *order.InvalidCredentialsT): http.StatusBadRequest
  • "invalid-scopes" (type *order.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *order.NotImplementedT): http.StatusNotImplemented
  • "not-found" (type *order.ResourceNotFoundT): http.StatusNotFound
  • "not-authorized" (type *order.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func DecodeTopResponse added in v0.28.5

func DecodeTopResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)

DecodeTopResponse returns a decoder for responses returned by the order top endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeTopResponse may return the following errors:

  • "bad-request" (type *order.BadRequestT): http.StatusBadRequest
  • "invalid-credential" (type *order.InvalidCredentialsT): http.StatusBadRequest
  • "invalid-parameter" (type *order.InvalidParameterValue): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *order.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *order.NotImplementedT): http.StatusNotImplemented
  • "not-found" (type *order.ResourceNotFoundT): http.StatusNotFound
  • "not-authorized" (type *order.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func EncodeCreateRequest

func EncodeCreateRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeCreateRequest returns an encoder for requests sent to the order create server.

func EncodeListRequest

func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeListRequest returns an encoder for requests sent to the order list server.

func EncodeLogsRequest added in v0.28.3

func EncodeLogsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeLogsRequest returns an encoder for requests sent to the order logs server.

func EncodeReadRequest

func EncodeReadRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeReadRequest returns an encoder for requests sent to the order read server.

func EncodeTopRequest added in v0.28.5

func EncodeTopRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error

EncodeTopRequest returns an encoder for requests sent to the order top server.

func ListOrderPath

func ListOrderPath() string

ListOrderPath returns the URL path to the order service list HTTP endpoint.

func LogsOrderPath added in v0.28.3

func LogsOrderPath() string

LogsOrderPath returns the URL path to the order service logs HTTP endpoint.

func NewCreateBadRequest

func NewCreateBadRequest(body *CreateBadRequestResponseBody) *order.BadRequestT

NewCreateBadRequest builds a order service create endpoint bad-request error.

func NewCreateInvalidCredential

func NewCreateInvalidCredential() *order.InvalidCredentialsT

NewCreateInvalidCredential builds a order service create endpoint invalid-credential error.

func NewCreateInvalidParameter

func NewCreateInvalidParameter(body *CreateInvalidParameterResponseBody) *order.InvalidParameterValue

NewCreateInvalidParameter builds a order service create endpoint invalid-parameter error.

func NewCreateInvalidScopes

func NewCreateInvalidScopes(body *CreateInvalidScopesResponseBody) *order.InvalidScopesT

NewCreateInvalidScopes builds a order service create endpoint invalid-scopes error.

func NewCreateNotAuthorized

func NewCreateNotAuthorized() *order.UnauthorizedT

NewCreateNotAuthorized builds a order service create endpoint not-authorized error.

func NewCreateNotAvailable

func NewCreateNotAvailable() *order.ServiceNotAvailableT

NewCreateNotAvailable builds a order service create endpoint not-available error.

func NewCreateNotFound

func NewCreateNotFound(body *CreateNotFoundResponseBody) *order.ResourceNotFoundT

NewCreateNotFound builds a order service create endpoint not-found error.

func NewCreateNotImplemented

func NewCreateNotImplemented(body *CreateNotImplementedResponseBody) *order.NotImplementedT

NewCreateNotImplemented builds a order service create endpoint not-implemented error.

func NewCreateOrderStatusRTOK

func NewCreateOrderStatusRTOK(body *CreateResponseBody) *orderviews.OrderStatusRTView

NewCreateOrderStatusRTOK builds a "order" service "create" endpoint result from a HTTP "OK" response.

func NewListBadRequest

func NewListBadRequest(body *ListBadRequestResponseBody) *order.BadRequestT

NewListBadRequest builds a order service list endpoint bad-request error.

func NewListInvalidCredential

func NewListInvalidCredential() *order.InvalidCredentialsT

NewListInvalidCredential builds a order service list endpoint invalid-credential error.

func NewListInvalidParameter added in v0.25.0

func NewListInvalidParameter(body *ListInvalidParameterResponseBody) *order.InvalidParameterValue

NewListInvalidParameter builds a order service list endpoint invalid-parameter error.

func NewListInvalidScopes

func NewListInvalidScopes(body *ListInvalidScopesResponseBody) *order.InvalidScopesT

NewListInvalidScopes builds a order service list endpoint invalid-scopes error.

func NewListNotAuthorized

func NewListNotAuthorized() *order.UnauthorizedT

NewListNotAuthorized builds a order service list endpoint not-authorized error.

func NewListNotImplemented

func NewListNotImplemented(body *ListNotImplementedResponseBody) *order.NotImplementedT

NewListNotImplemented builds a order service list endpoint not-implemented error.

func NewListOrderListRTOK

func NewListOrderListRTOK(body *ListResponseBody) *orderviews.OrderListRTView

NewListOrderListRTOK builds a "order" service "list" endpoint result from a HTTP "OK" response.

func NewLogsBadRequest added in v0.28.3

func NewLogsBadRequest(body *LogsBadRequestResponseBody) *order.BadRequestT

NewLogsBadRequest builds a order service logs endpoint bad-request error.

func NewLogsInvalidCredential added in v0.28.3

func NewLogsInvalidCredential() *order.InvalidCredentialsT

NewLogsInvalidCredential builds a order service logs endpoint invalid-credential error.

func NewLogsInvalidParameter added in v0.28.3

func NewLogsInvalidParameter(body *LogsInvalidParameterResponseBody) *order.InvalidParameterValue

NewLogsInvalidParameter builds a order service logs endpoint invalid-parameter error.

func NewLogsInvalidScopes added in v0.28.3

func NewLogsInvalidScopes(body *LogsInvalidScopesResponseBody) *order.InvalidScopesT

NewLogsInvalidScopes builds a order service logs endpoint invalid-scopes error.

func NewLogsNotAuthorized added in v0.28.3

func NewLogsNotAuthorized() *order.UnauthorizedT

NewLogsNotAuthorized builds a order service logs endpoint not-authorized error.

func NewLogsNotFound added in v0.28.3

func NewLogsNotFound(body *LogsNotFoundResponseBody) *order.ResourceNotFoundT

NewLogsNotFound builds a order service logs endpoint not-found error.

func NewLogsNotImplemented added in v0.28.3

func NewLogsNotImplemented(body *LogsNotImplementedResponseBody) *order.NotImplementedT

NewLogsNotImplemented builds a order service logs endpoint not-implemented error.

func NewReadBadRequest

func NewReadBadRequest(body *ReadBadRequestResponseBody) *order.BadRequestT

NewReadBadRequest builds a order service read endpoint bad-request error.

func NewReadInvalidCredential

func NewReadInvalidCredential() *order.InvalidCredentialsT

NewReadInvalidCredential builds a order service read endpoint invalid-credential error.

func NewReadInvalidScopes

func NewReadInvalidScopes(body *ReadInvalidScopesResponseBody) *order.InvalidScopesT

NewReadInvalidScopes builds a order service read endpoint invalid-scopes error.

func NewReadNotAuthorized

func NewReadNotAuthorized() *order.UnauthorizedT

NewReadNotAuthorized builds a order service read endpoint not-authorized error.

func NewReadNotFound

func NewReadNotFound(body *ReadNotFoundResponseBody) *order.ResourceNotFoundT

NewReadNotFound builds a order service read endpoint not-found error.

func NewReadNotImplemented

func NewReadNotImplemented(body *ReadNotImplementedResponseBody) *order.NotImplementedT

NewReadNotImplemented builds a order service read endpoint not-implemented error.

func NewReadOrderStatusRTOK

func NewReadOrderStatusRTOK(body *ReadResponseBody) *orderviews.OrderStatusRTView

NewReadOrderStatusRTOK builds a "order" service "read" endpoint result from a HTTP "OK" response.

func NewTopBadRequest added in v0.28.5

func NewTopBadRequest(body *TopBadRequestResponseBody) *order.BadRequestT

NewTopBadRequest builds a order service top endpoint bad-request error.

func NewTopInvalidCredential added in v0.28.5

func NewTopInvalidCredential() *order.InvalidCredentialsT

NewTopInvalidCredential builds a order service top endpoint invalid-credential error.

func NewTopInvalidParameter added in v0.28.5

func NewTopInvalidParameter(body *TopInvalidParameterResponseBody) *order.InvalidParameterValue

NewTopInvalidParameter builds a order service top endpoint invalid-parameter error.

func NewTopInvalidScopes added in v0.28.5

func NewTopInvalidScopes(body *TopInvalidScopesResponseBody) *order.InvalidScopesT

NewTopInvalidScopes builds a order service top endpoint invalid-scopes error.

func NewTopNotAuthorized added in v0.28.5

func NewTopNotAuthorized() *order.UnauthorizedT

NewTopNotAuthorized builds a order service top endpoint not-authorized error.

func NewTopNotFound added in v0.28.5

func NewTopNotFound(body *TopNotFoundResponseBody) *order.ResourceNotFoundT

NewTopNotFound builds a order service top endpoint not-found error.

func NewTopNotImplemented added in v0.28.5

func NewTopNotImplemented(body *TopNotImplementedResponseBody) *order.NotImplementedT

NewTopNotImplemented builds a order service top endpoint not-implemented error.

func NewTopOrderTopResultItemCollectionOK added in v0.28.5

func NewTopOrderTopResultItemCollectionOK(body TopResponseBody) orderviews.OrderTopResultItemCollectionView

NewTopOrderTopResultItemCollectionOK builds a "order" service "top" endpoint result from a HTTP "OK" response.

func ReadOrderPath

func ReadOrderPath(id string) string

ReadOrderPath returns the URL path to the order service read HTTP endpoint.

func TopOrderPath added in v0.28.5

func TopOrderPath() string

TopOrderPath returns the URL path to the order service top HTTP endpoint.

func ValidateCreateBadRequestResponseBody

func ValidateCreateBadRequestResponseBody(body *CreateBadRequestResponseBody) (err error)

ValidateCreateBadRequestResponseBody runs the validations defined on create_bad-request_response_body

func ValidateCreateInvalidParameterResponseBody

func ValidateCreateInvalidParameterResponseBody(body *CreateInvalidParameterResponseBody) (err error)

ValidateCreateInvalidParameterResponseBody runs the validations defined on create_invalid-parameter_response_body

func ValidateCreateInvalidScopesResponseBody

func ValidateCreateInvalidScopesResponseBody(body *CreateInvalidScopesResponseBody) (err error)

ValidateCreateInvalidScopesResponseBody runs the validations defined on create_invalid-scopes_response_body

func ValidateCreateNotFoundResponseBody

func ValidateCreateNotFoundResponseBody(body *CreateNotFoundResponseBody) (err error)

ValidateCreateNotFoundResponseBody runs the validations defined on create_not-found_response_body

func ValidateCreateNotImplementedResponseBody

func ValidateCreateNotImplementedResponseBody(body *CreateNotImplementedResponseBody) (err error)

ValidateCreateNotImplementedResponseBody runs the validations defined on create_not-implemented_response_body

func ValidateDescribedByTResponseBody

func ValidateDescribedByTResponseBody(body *DescribedByTResponseBody) (err error)

ValidateDescribedByTResponseBody runs the validations defined on DescribedByTResponseBody

func ValidateListBadRequestResponseBody

func ValidateListBadRequestResponseBody(body *ListBadRequestResponseBody) (err error)

ValidateListBadRequestResponseBody runs the validations defined on list_bad-request_response_body

func ValidateListInvalidParameterResponseBody added in v0.25.0

func ValidateListInvalidParameterResponseBody(body *ListInvalidParameterResponseBody) (err error)

ValidateListInvalidParameterResponseBody runs the validations defined on list_invalid-parameter_response_body

func ValidateListInvalidScopesResponseBody

func ValidateListInvalidScopesResponseBody(body *ListInvalidScopesResponseBody) (err error)

ValidateListInvalidScopesResponseBody runs the validations defined on list_invalid-scopes_response_body

func ValidateListNotImplementedResponseBody

func ValidateListNotImplementedResponseBody(body *ListNotImplementedResponseBody) (err error)

ValidateListNotImplementedResponseBody runs the validations defined on list_not-implemented_response_body

func ValidateLogsBadRequestResponseBody added in v0.28.3

func ValidateLogsBadRequestResponseBody(body *LogsBadRequestResponseBody) (err error)

ValidateLogsBadRequestResponseBody runs the validations defined on logs_bad-request_response_body

func ValidateLogsInvalidParameterResponseBody added in v0.28.3

func ValidateLogsInvalidParameterResponseBody(body *LogsInvalidParameterResponseBody) (err error)

ValidateLogsInvalidParameterResponseBody runs the validations defined on logs_invalid-parameter_response_body

func ValidateLogsInvalidScopesResponseBody added in v0.28.3

func ValidateLogsInvalidScopesResponseBody(body *LogsInvalidScopesResponseBody) (err error)

ValidateLogsInvalidScopesResponseBody runs the validations defined on logs_invalid-scopes_response_body

func ValidateLogsNotFoundResponseBody added in v0.28.3

func ValidateLogsNotFoundResponseBody(body *LogsNotFoundResponseBody) (err error)

ValidateLogsNotFoundResponseBody runs the validations defined on logs_not-found_response_body

func ValidateLogsNotImplementedResponseBody added in v0.28.3

func ValidateLogsNotImplementedResponseBody(body *LogsNotImplementedResponseBody) (err error)

ValidateLogsNotImplementedResponseBody runs the validations defined on logs_not-implemented_response_body

func ValidateNavTResponseBody

func ValidateNavTResponseBody(body *NavTResponseBody) (err error)

ValidateNavTResponseBody runs the validations defined on NavTResponseBody

func ValidateOrderListItemResponseBody

func ValidateOrderListItemResponseBody(body *OrderListItemResponseBody) (err error)

ValidateOrderListItemResponseBody runs the validations defined on OrderListItemResponseBody

func ValidateOrderTopResultItemResponse added in v0.28.5

func ValidateOrderTopResultItemResponse(body *OrderTopResultItemResponse) (err error)

ValidateOrderTopResultItemResponse runs the validations defined on OrderTopResultItemResponse

func ValidateProductTResponseBody

func ValidateProductTResponseBody(body *ProductTResponseBody) (err error)

ValidateProductTResponseBody runs the validations defined on ProductTResponseBody

func ValidateReadBadRequestResponseBody

func ValidateReadBadRequestResponseBody(body *ReadBadRequestResponseBody) (err error)

ValidateReadBadRequestResponseBody runs the validations defined on read_bad-request_response_body

func ValidateReadInvalidScopesResponseBody

func ValidateReadInvalidScopesResponseBody(body *ReadInvalidScopesResponseBody) (err error)

ValidateReadInvalidScopesResponseBody runs the validations defined on read_invalid-scopes_response_body

func ValidateReadNotFoundResponseBody

func ValidateReadNotFoundResponseBody(body *ReadNotFoundResponseBody) (err error)

ValidateReadNotFoundResponseBody runs the validations defined on read_not-found_response_body

func ValidateReadNotImplementedResponseBody

func ValidateReadNotImplementedResponseBody(body *ReadNotImplementedResponseBody) (err error)

ValidateReadNotImplementedResponseBody runs the validations defined on read_not-implemented_response_body

func ValidateRefTResponseBody

func ValidateRefTResponseBody(body *RefTResponseBody) (err error)

ValidateRefTResponseBody runs the validations defined on RefTResponseBody

func ValidateSelfTResponseBody

func ValidateSelfTResponseBody(body *SelfTResponseBody) (err error)

ValidateSelfTResponseBody runs the validations defined on SelfTResponseBody

func ValidateSelfWithDataTResponseBody

func ValidateSelfWithDataTResponseBody(body *SelfWithDataTResponseBody) (err error)

ValidateSelfWithDataTResponseBody runs the validations defined on SelfWithDataTResponseBody

func ValidateTopBadRequestResponseBody added in v0.28.5

func ValidateTopBadRequestResponseBody(body *TopBadRequestResponseBody) (err error)

ValidateTopBadRequestResponseBody runs the validations defined on top_bad-request_response_body

func ValidateTopInvalidParameterResponseBody added in v0.28.5

func ValidateTopInvalidParameterResponseBody(body *TopInvalidParameterResponseBody) (err error)

ValidateTopInvalidParameterResponseBody runs the validations defined on top_invalid-parameter_response_body

func ValidateTopInvalidScopesResponseBody added in v0.28.5

func ValidateTopInvalidScopesResponseBody(body *TopInvalidScopesResponseBody) (err error)

ValidateTopInvalidScopesResponseBody runs the validations defined on top_invalid-scopes_response_body

func ValidateTopNotFoundResponseBody added in v0.28.5

func ValidateTopNotFoundResponseBody(body *TopNotFoundResponseBody) (err error)

ValidateTopNotFoundResponseBody runs the validations defined on top_not-found_response_body

func ValidateTopNotImplementedResponseBody added in v0.28.5

func ValidateTopNotImplementedResponseBody(body *TopNotImplementedResponseBody) (err error)

ValidateTopNotImplementedResponseBody runs the validations defined on top_not-implemented_response_body

Types

type Client

type Client struct {
	// Read Doer is the HTTP client used to make requests to the read endpoint.
	ReadDoer goahttp.Doer

	// List Doer is the HTTP client used to make requests to the list endpoint.
	ListDoer goahttp.Doer

	// Create Doer is the HTTP client used to make requests to the create endpoint.
	CreateDoer goahttp.Doer

	// Logs Doer is the HTTP client used to make requests to the logs endpoint.
	LogsDoer goahttp.Doer

	// Top Doer is the HTTP client used to make requests to the top endpoint.
	TopDoer goahttp.Doer

	// CORS Doer is the HTTP client used to make requests to the  endpoint.
	CORSDoer 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 order 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 order service servers.

func (*Client) BuildCreateRequest

func (c *Client) BuildCreateRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildCreateRequest instantiates a HTTP request object with method and path set to call the "order" service "create" endpoint

func (*Client) BuildListRequest

func (c *Client) BuildListRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildListRequest instantiates a HTTP request object with method and path set to call the "order" service "list" endpoint

func (*Client) BuildLogsRequest added in v0.28.3

func (c *Client) BuildLogsRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildLogsRequest instantiates a HTTP request object with method and path set to call the "order" service "logs" endpoint

func (*Client) BuildReadRequest

func (c *Client) BuildReadRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildReadRequest instantiates a HTTP request object with method and path set to call the "order" service "read" endpoint

func (*Client) BuildTopRequest added in v0.28.5

func (c *Client) BuildTopRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildTopRequest instantiates a HTTP request object with method and path set to call the "order" service "top" endpoint

func (*Client) Create

func (c *Client) Create() goa.Endpoint

Create returns an endpoint that makes HTTP requests to the order service create server.

func (*Client) List

func (c *Client) List() goa.Endpoint

List returns an endpoint that makes HTTP requests to the order service list server.

func (*Client) Logs added in v0.28.3

func (c *Client) Logs() goa.Endpoint

Logs returns an endpoint that makes HTTP requests to the order service logs server.

func (*Client) Read

func (c *Client) Read() goa.Endpoint

Read returns an endpoint that makes HTTP requests to the order service read server.

func (*Client) Top added in v0.28.5

func (c *Client) Top() goa.Endpoint

Top returns an endpoint that makes HTTP requests to the order service top server.

type CreateBadRequestResponseBody

type CreateBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CreateBadRequestResponseBody is the type of the "order" service "create" endpoint HTTP response body for the "bad-request" error.

type CreateInvalidParameterResponseBody

type CreateInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

CreateInvalidParameterResponseBody is the type of the "order" service "create" endpoint HTTP response body for the "invalid-parameter" error.

type CreateInvalidScopesResponseBody

type CreateInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CreateInvalidScopesResponseBody is the type of the "order" service "create" endpoint HTTP response body for the "invalid-scopes" error.

type CreateNotFoundResponseBody

type CreateNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CreateNotFoundResponseBody is the type of the "order" service "create" endpoint HTTP response body for the "not-found" error.

type CreateNotImplementedResponseBody

type CreateNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

CreateNotImplementedResponseBody is the type of the "order" service "create" endpoint HTTP response body for the "not-implemented" error.

type CreateRequestBody

type CreateRequestBody struct {
	// Reference to service requested
	ServiceID string `json:"service-id,omitempty"`
	// Policy to control access to record an all generated artifacts
	PolicyID *string `json:"policy-id,omitempty"`
	// Optional customer provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Optional customer provided tags
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// Service parameters
	Parameters []*ParameterT `form:"parameters" json:"parameters" xml:"parameters"`
}

CreateRequestBody is the type of the "order" service "create" endpoint HTTP request body.

func NewCreateRequestBody

func NewCreateRequestBody(p *order.CreatePayload) *CreateRequestBody

NewCreateRequestBody builds the HTTP request body from the payload of the "create" endpoint of the "order" service.

type CreateResponseBody

type CreateResponseBody struct {
	// Order ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Order status
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// DateTime order was placed
	OrderedAt *string `form:"ordered-at,omitempty" json:"ordered-at,omitempty" xml:"ordered-at,omitempty"`
	// DateTime order processing started
	StartedAt *string `form:"started-at,omitempty" json:"started-at,omitempty" xml:"started-at,omitempty"`
	// DateTime order processing finished
	FinishedAt *string `form:"finished-at,omitempty" json:"finished-at,omitempty" xml:"finished-at,omitempty"`
	// Products delivered for this order
	Products []*ProductTResponseBody `form:"products,omitempty" json:"products,omitempty" xml:"products,omitempty"`
	// Reference to service requested
	Service *RefTResponseBody `form:"service,omitempty" json:"service,omitempty" xml:"service,omitempty"`
	// Reference to billable account
	Account *RefTResponseBody  `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"`
	Links   *SelfTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
	// Product metadata links
	ProductLinks *NavTResponseBody `form:"product-links,omitempty" json:"product-links,omitempty" xml:"product-links,omitempty"`
	// Optional customer provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Optional customer provided tags
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// Service parameters
	Parameters []*ParameterTResponseBody `form:"parameters,omitempty" json:"parameters,omitempty" xml:"parameters,omitempty"`
}

CreateResponseBody is the type of the "order" service "create" endpoint HTTP response body.

type DescribedByTResponseBody

type DescribedByTResponseBody struct {
	Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"`
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
}

DescribedByTResponseBody is used to define fields on response body types.

type ListBadRequestResponseBody

type ListBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListBadRequestResponseBody is the type of the "order" service "list" endpoint HTTP response body for the "bad-request" error.

type ListInvalidParameterResponseBody added in v0.25.0

type ListInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

ListInvalidParameterResponseBody is the type of the "order" service "list" endpoint HTTP response body for the "invalid-parameter" error.

type ListInvalidScopesResponseBody

type ListInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListInvalidScopesResponseBody is the type of the "order" service "list" endpoint HTTP response body for the "invalid-scopes" error.

type ListNotImplementedResponseBody

type ListNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListNotImplementedResponseBody is the type of the "order" service "list" endpoint HTTP response body for the "not-implemented" error.

type ListResponseBody

type ListResponseBody struct {
	// Orders
	Orders []*OrderListItemResponseBody `form:"orders,omitempty" json:"orders,omitempty" xml:"orders,omitempty"`
	// Time at which this list was valid
	AtTime *string `form:"at-time,omitempty" json:"at-time,omitempty" xml:"at-time,omitempty"`
	// Navigation links
	Links *NavTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
}

ListResponseBody is the type of the "order" service "list" endpoint HTTP response body.

type LogsBadRequestResponseBody added in v0.28.3

type LogsBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

LogsBadRequestResponseBody is the type of the "order" service "logs" endpoint HTTP response body for the "bad-request" error.

type LogsInvalidParameterResponseBody added in v0.28.3

type LogsInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

LogsInvalidParameterResponseBody is the type of the "order" service "logs" endpoint HTTP response body for the "invalid-parameter" error.

type LogsInvalidScopesResponseBody added in v0.28.3

type LogsInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

LogsInvalidScopesResponseBody is the type of the "order" service "logs" endpoint HTTP response body for the "invalid-scopes" error.

type LogsNotFoundResponseBody added in v0.28.3

type LogsNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

LogsNotFoundResponseBody is the type of the "order" service "logs" endpoint HTTP response body for the "not-found" error.

type LogsNotImplementedResponseBody added in v0.28.3

type LogsNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

LogsNotImplementedResponseBody is the type of the "order" service "logs" endpoint HTTP response body for the "not-implemented" error.

type LogsRequestBody added in v0.28.3

type LogsRequestBody struct {
	// From unix time, seconds since 1970-01-01
	From *int64 `form:"from,omitempty" json:"from,omitempty" xml:"from,omitempty"`
	// To unix time, seconds since 1970-01-01
	To *int64 `form:"to,omitempty" json:"to,omitempty" xml:"to,omitempty"`
	// Reference to namespace name
	NamespaceName *string `json:"namespace-name,omitempty"`
	// Reference to container name
	ContainerName *string `json:"container-name,omitempty"`
	// Reference to order requested
	OrderID string `json:"order-id,omitempty"`
	// Policy to control access to record an all generated artifacts
	PolicyID *string `json:"policy-id,omitempty"`
}

LogsRequestBody is the type of the "order" service "logs" endpoint HTTP request body.

func NewLogsRequestBody added in v0.28.3

func NewLogsRequestBody(p *order.LogsPayload) *LogsRequestBody

NewLogsRequestBody builds the HTTP request body from the payload of the "logs" endpoint of the "order" service.

type NavTResponseBody struct {
	Self  *string `form:"self,omitempty" json:"self,omitempty" xml:"self,omitempty"`
	First *string `form:"first,omitempty" json:"first,omitempty" xml:"first,omitempty"`
	Next  *string `form:"next,omitempty" json:"next,omitempty" xml:"next,omitempty"`
}

NavTResponseBody is used to define fields on response body types.

type OrderListItemResponseBody

type OrderListItemResponseBody struct {
	// Order ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Optional customer provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Order status
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// DateTime order was placed
	OrderedAt *string `form:"ordered-at,omitempty" json:"ordered-at,omitempty" xml:"ordered-at,omitempty"`
	// DateTime processing of order started
	StartedAt *string `form:"started-at,omitempty" json:"started-at,omitempty" xml:"started-at,omitempty"`
	// DateTime order was finished
	FinishedAt *string `form:"finished-at,omitempty" json:"finished-at,omitempty" xml:"finished-at,omitempty"`
	// ID of ordered service
	ServiceID *string `form:"service-id,omitempty" json:"service-id,omitempty" xml:"service-id,omitempty"`
	// ID of ordered service
	AccountID *string            `form:"account-id,omitempty" json:"account-id,omitempty" xml:"account-id,omitempty"`
	Links     *SelfTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
}

OrderListItemResponseBody is used to define fields on response body types.

type OrderTopResultItemResponse added in v0.28.5

type OrderTopResultItemResponse struct {
	// container
	Container *string `form:"container,omitempty" json:"container,omitempty" xml:"container,omitempty"`
	// cpu
	CPU *string `form:"cpu,omitempty" json:"cpu,omitempty" xml:"cpu,omitempty"`
	// memory
	Memory *string `form:"memory,omitempty" json:"memory,omitempty" xml:"memory,omitempty"`
	// storage
	Storage *string `form:"storage,omitempty" json:"storage,omitempty" xml:"storage,omitempty"`
	// ephemeral-storage
	EphemeralStorage *string `form:"ephemeral-storage,omitempty" json:"ephemeral-storage,omitempty" xml:"ephemeral-storage,omitempty"`
}

OrderTopResultItemResponse is used to define fields on response body types.

type ParameterT

type ParameterT struct {
	Name  *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

ParameterT is used to define fields on request body types.

type ParameterTResponseBody

type ParameterTResponseBody struct {
	Name  *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

ParameterTResponseBody is used to define fields on response body types.

type ProductTResponseBody

type ProductTResponseBody struct {
	ID       *string                    `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	Name     *string                    `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	Status   *string                    `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	MimeType *string                    `json:"mime-type,omitempty"`
	Size     *int64                     `form:"size,omitempty" json:"size,omitempty" xml:"size,omitempty"`
	Links    *SelfWithDataTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
	Etag     *string                    `json:"etag,omitempty"`
}

ProductTResponseBody is used to define fields on response body types.

type ReadBadRequestResponseBody

type ReadBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ReadBadRequestResponseBody is the type of the "order" service "read" endpoint HTTP response body for the "bad-request" error.

type ReadInvalidScopesResponseBody

type ReadInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ReadInvalidScopesResponseBody is the type of the "order" service "read" endpoint HTTP response body for the "invalid-scopes" error.

type ReadNotFoundResponseBody

type ReadNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ReadNotFoundResponseBody is the type of the "order" service "read" endpoint HTTP response body for the "not-found" error.

type ReadNotImplementedResponseBody

type ReadNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ReadNotImplementedResponseBody is the type of the "order" service "read" endpoint HTTP response body for the "not-implemented" error.

type ReadResponseBody

type ReadResponseBody struct {
	// Order ID
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Order status
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// DateTime order was placed
	OrderedAt *string `form:"ordered-at,omitempty" json:"ordered-at,omitempty" xml:"ordered-at,omitempty"`
	// DateTime order processing started
	StartedAt *string `form:"started-at,omitempty" json:"started-at,omitempty" xml:"started-at,omitempty"`
	// DateTime order processing finished
	FinishedAt *string `form:"finished-at,omitempty" json:"finished-at,omitempty" xml:"finished-at,omitempty"`
	// Products delivered for this order
	Products []*ProductTResponseBody `form:"products,omitempty" json:"products,omitempty" xml:"products,omitempty"`
	// Reference to service requested
	Service *RefTResponseBody `form:"service,omitempty" json:"service,omitempty" xml:"service,omitempty"`
	// Reference to billable account
	Account *RefTResponseBody  `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"`
	Links   *SelfTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
	// Product metadata links
	ProductLinks *NavTResponseBody `form:"product-links,omitempty" json:"product-links,omitempty" xml:"product-links,omitempty"`
	// Optional customer provided name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Optional customer provided tags
	Tags []string `form:"tags,omitempty" json:"tags,omitempty" xml:"tags,omitempty"`
	// Service parameters
	Parameters []*ParameterTResponseBody `form:"parameters,omitempty" json:"parameters,omitempty" xml:"parameters,omitempty"`
}

ReadResponseBody is the type of the "order" service "read" endpoint HTTP response body.

type RefTResponseBody

type RefTResponseBody struct {
	ID    *string            `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	Links *SelfTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
}

RefTResponseBody is used to define fields on response body types.

type SelfTResponseBody

type SelfTResponseBody struct {
	Self        *string                   `form:"self,omitempty" json:"self,omitempty" xml:"self,omitempty"`
	DescribedBy *DescribedByTResponseBody `form:"describedBy,omitempty" json:"describedBy,omitempty" xml:"describedBy,omitempty"`
}

SelfTResponseBody is used to define fields on response body types.

type SelfWithDataTResponseBody

type SelfWithDataTResponseBody struct {
	Self        *string                   `form:"self,omitempty" json:"self,omitempty" xml:"self,omitempty"`
	DescribedBy *DescribedByTResponseBody `form:"describedBy,omitempty" json:"describedBy,omitempty" xml:"describedBy,omitempty"`
	Data        *string                   `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"`
}

SelfWithDataTResponseBody is used to define fields on response body types.

type TopBadRequestResponseBody added in v0.28.5

type TopBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

TopBadRequestResponseBody is the type of the "order" service "top" endpoint HTTP response body for the "bad-request" error.

type TopInvalidParameterResponseBody added in v0.28.5

type TopInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

TopInvalidParameterResponseBody is the type of the "order" service "top" endpoint HTTP response body for the "invalid-parameter" error.

type TopInvalidScopesResponseBody added in v0.28.5

type TopInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

TopInvalidScopesResponseBody is the type of the "order" service "top" endpoint HTTP response body for the "invalid-scopes" error.

type TopNotFoundResponseBody added in v0.28.5

type TopNotFoundResponseBody struct {
	// ID of missing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

TopNotFoundResponseBody is the type of the "order" service "top" endpoint HTTP response body for the "not-found" error.

type TopNotImplementedResponseBody added in v0.28.5

type TopNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

TopNotImplementedResponseBody is the type of the "order" service "top" endpoint HTTP response body for the "not-implemented" error.

type TopRequestBody added in v0.28.5

type TopRequestBody struct {
	// Reference to order requested
	OrderID string `json:"order-id,omitempty"`
	// Reference to namespace name
	NamespaceName *string `json:"namespace-name,omitempty"`
	// Policy to control access to record an all generated artifacts
	PolicyID *string `json:"policy-id,omitempty"`
}

TopRequestBody is the type of the "order" service "top" endpoint HTTP request body.

func NewTopRequestBody added in v0.28.5

func NewTopRequestBody(p *order.TopPayload) *TopRequestBody

NewTopRequestBody builds the HTTP request body from the payload of the "top" endpoint of the "order" service.

type TopResponseBody added in v0.28.5

type TopResponseBody []*OrderTopResultItemResponse

TopResponseBody is the type of the "order" service "top" endpoint HTTP response body.

Jump to

Keyboard shortcuts

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