package
1.5.0
Repository: https://github.com/rightscale/policy_sdk.git
Documentation: pkg.go.dev

# Functions

ApproveApprovalPath returns the URL path to the Approval service approve HTTP endpoint.
BuildApprovePayload builds the payload for the Approval approve endpoint from CLI flags.
BuildDenyPayload builds the payload for the Approval deny endpoint from CLI flags.
BuildIndexPayload builds the payload for the Approval index endpoint from CLI flags.
BuildShowPayload builds the payload for the Approval show endpoint from CLI flags.
DecodeApproveResponse returns a decoder for responses returned by the Approval approve endpoint.
DecodeDenyResponse returns a decoder for responses returned by the Approval deny endpoint.
DecodeIndexResponse returns a decoder for responses returned by the Approval index endpoint.
DecodeShowResponse returns a decoder for responses returned by the Approval show endpoint.
DenyApprovalPath returns the URL path to the Approval service deny HTTP endpoint.
EncodeApproveRequest returns an encoder for requests sent to the Approval approve server.
EncodeDenyRequest returns an encoder for requests sent to the Approval deny server.
EncodeIndexRequest returns an encoder for requests sent to the Approval index server.
EncodeShowRequest returns an encoder for requests sent to the Approval show server.
IndexApprovalPath returns the URL path to the Approval service index HTTP endpoint.
NewApproveBadGateway builds a Approval service approve endpoint bad_gateway error.
NewApproveBadRequest builds a Approval service approve endpoint bad_request error.
NewApproveForbidden builds a Approval service approve endpoint forbidden error.
NewApproveInternalError builds a Approval service approve endpoint internal_error error.
NewApproveNotFound builds a Approval service approve endpoint not_found error.
NewApproveRequestBody builds the HTTP request body from the payload of the "approve" endpoint of the "Approval" service.
NewApproveUnauthorized builds a Approval service approve endpoint unauthorized error.
NewClient instantiates HTTP clients for all the Approval service servers.
NewDenyBadGateway builds a Approval service deny endpoint bad_gateway error.
NewDenyBadRequest builds a Approval service deny endpoint bad_request error.
NewDenyForbidden builds a Approval service deny endpoint forbidden error.
NewDenyInternalError builds a Approval service deny endpoint internal_error error.
NewDenyNotFound builds a Approval service deny endpoint not_found error.
NewDenyRequestBody builds the HTTP request body from the payload of the "deny" endpoint of the "Approval" service.
NewDenyUnauthorized builds a Approval service deny endpoint unauthorized error.
NewIndexApprovalRequestListNotModified builds a "Approval" service "index" endpoint result from a HTTP "NotModified" response.
NewIndexApprovalRequestListOK builds a "Approval" service "index" endpoint result from a HTTP "OK" response.
NewIndexBadGateway builds a Approval service index endpoint bad_gateway error.
NewIndexBadRequest builds a Approval service index endpoint bad_request error.
NewIndexForbidden builds a Approval service index endpoint forbidden error.
NewIndexInternalError builds a Approval service index endpoint internal_error error.
NewIndexUnauthorized builds a Approval service index endpoint unauthorized error.
NewShowApprovalRequestOK builds a "Approval" service "show" endpoint result from a HTTP "OK" response.
NewShowBadGateway builds a Approval service show endpoint bad_gateway error.
NewShowBadRequest builds a Approval service show endpoint bad_request error.
NewShowForbidden builds a Approval service show endpoint forbidden error.
NewShowInternalError builds a Approval service show endpoint internal_error error.
NewShowNotFound builds a Approval service show endpoint not_found error.
NewShowUnauthorized builds a Approval service show endpoint unauthorized error.
ShowApprovalPath returns the URL path to the Approval service show HTTP endpoint.
ValidateApprovalRequestCollectionResponseBody runs the validations defined on ApprovalRequestCollectionResponseBody.
ValidateApprovalRequestResponseBody runs the validations defined on ApprovalRequestResponseBody.
ValidateApprovalSubject runs the validations defined on ApprovalSubject.
ValidateApproveBadGatewayResponseBody runs the validations defined on approve_bad_gateway_response_body.
ValidateApproveBadRequestResponseBody runs the validations defined on approve_bad_request_response_body.
ValidateApproveForbiddenResponseBody runs the validations defined on approve_forbidden_response_body.
ValidateApproveInternalErrorResponseBody runs the validations defined on approve_internal_error_response_body.
ValidateApproveNotFoundResponseBody runs the validations defined on approve_not_found_response_body.
ValidateApproveUnauthorizedResponseBody runs the validations defined on approve_unauthorized_response_body.
ValidateConfigurationOptionCreateTypeRequestBody runs the validations defined on ConfigurationOptionCreateTypeRequestBody.
ValidateConfigurationOptionResponseBody runs the validations defined on ConfigurationOptionResponseBody.
ValidateDenyBadGatewayResponseBody runs the validations defined on deny_bad_gateway_response_body.
ValidateDenyBadRequestResponseBody runs the validations defined on deny_bad_request_response_body.
ValidateDenyForbiddenResponseBody runs the validations defined on deny_forbidden_response_body.
ValidateDenyInternalErrorResponseBody runs the validations defined on deny_internal_error_response_body.
ValidateDenyNotFoundResponseBody runs the validations defined on deny_not_found_response_body.
ValidateDenyUnauthorizedResponseBody runs the validations defined on deny_unauthorized_response_body.
ValidateIndexBadGatewayResponseBody runs the validations defined on index_bad_gateway_response_body.
ValidateIndexBadRequestResponseBody runs the validations defined on index_bad_request_response_body.
ValidateIndexForbiddenResponseBody runs the validations defined on index_forbidden_response_body.
ValidateIndexInternalErrorResponseBody runs the validations defined on index_internal_error_response_body.
ValidateIndexUnauthorizedResponseBody runs the validations defined on index_unauthorized_response_body.
ValidateParameterResponseBody runs the validations defined on ParameterResponseBody.
ValidateRegexpResponseBody runs the validations defined on RegexpResponseBody.
ValidateShowBadGatewayResponseBody runs the validations defined on show_bad_gateway_response_body.
ValidateShowBadRequestResponseBody runs the validations defined on show_bad_request_response_body.
ValidateShowForbiddenResponseBody runs the validations defined on show_forbidden_response_body.
ValidateShowInternalErrorResponseBody runs the validations defined on show_internal_error_response_body.
ValidateShowNotFoundResponseBody runs the validations defined on show_not_found_response_body.
ValidateShowUnauthorizedResponseBody runs the validations defined on show_unauthorized_response_body.
ValidateUserResponseBody runs the validations defined on UserResponseBody.

# Structs

ApprovalRequestResponseBody is used to define fields on response body types.
ApprovalSubject is used to define fields on response body types.
ApproveBadGatewayResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "bad_gateway" error.
ApproveBadRequestResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "bad_request" error.
ApproveForbiddenResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "forbidden" error.
ApproveInternalErrorResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "internal_error" error.
ApproveNotFoundResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "not_found" error.
ApproveRequestBody is the type of the "Approval" service "approve" endpoint HTTP request body.
ApproveUnauthorizedResponseBody is the type of the "Approval" service "approve" endpoint HTTP response body for the "unauthorized" error.
Client lists the Approval service endpoint HTTP clients.
ConfigurationOptionCreateTypeRequestBody is used to define fields on request body types.
ConfigurationOptionResponseBody is used to define fields on response body types.
DenyBadGatewayResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "bad_gateway" error.
DenyBadRequestResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "bad_request" error.
DenyForbiddenResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "forbidden" error.
DenyInternalErrorResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "internal_error" error.
DenyNotFoundResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "not_found" error.
DenyRequestBody is the type of the "Approval" service "deny" endpoint HTTP request body.
DenyUnauthorizedResponseBody is the type of the "Approval" service "deny" endpoint HTTP response body for the "unauthorized" error.
IndexBadGatewayResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "bad_gateway" error.
IndexBadRequestResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "bad_request" error.
IndexForbiddenResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "forbidden" error.
IndexInternalErrorResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "internal_error" error.
IndexOKResponseBody is the type of the "Approval" service "index" endpoint HTTP response body.
IndexUnauthorizedResponseBody is the type of the "Approval" service "index" endpoint HTTP response body for the "unauthorized" error.
ParameterResponseBody is used to define fields on response body types.
RegexpResponseBody is used to define fields on response body types.
ShowBadGatewayResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "bad_gateway" error.
ShowBadRequestResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "bad_request" error.
ShowForbiddenResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "forbidden" error.
ShowInternalErrorResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "internal_error" error.
ShowNotFoundResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "not_found" error.
ShowResponseBody is the type of the "Approval" service "show" endpoint HTTP response body.
ShowUnauthorizedResponseBody is the type of the "Approval" service "show" endpoint HTTP response body for the "unauthorized" error.
UserResponseBody is used to define fields on response body types.

# Type aliases

ApprovalRequestCollectionResponseBody is used to define fields on response body types.