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

# Functions

BuildIndexEscalationsPayload builds the payload for the Incident index_escalations endpoint from CLI flags.
BuildIndexPayload builds the payload for the Incident index endpoint from CLI flags.
BuildIndexResolutionsPayload builds the payload for the Incident index_resolutions endpoint from CLI flags.
BuildResolvePayload builds the payload for the Incident resolve endpoint from CLI flags.
BuildRunActionPayload builds the payload for the Incident run_action endpoint from CLI flags.
BuildShowPayload builds the payload for the Incident show endpoint from CLI flags.
DecodeIndexEscalationsResponse returns a decoder for responses returned by the Incident index_escalations endpoint.
DecodeIndexResolutionsResponse returns a decoder for responses returned by the Incident index_resolutions endpoint.
DecodeIndexResponse returns a decoder for responses returned by the Incident index endpoint.
DecodeResolveResponse returns a decoder for responses returned by the Incident resolve endpoint.
DecodeRunActionResponse returns a decoder for responses returned by the Incident run_action endpoint.
DecodeShowResponse returns a decoder for responses returned by the Incident show endpoint.
EncodeIndexEscalationsRequest returns an encoder for requests sent to the Incident index_escalations server.
EncodeIndexRequest returns an encoder for requests sent to the Incident index server.
EncodeIndexResolutionsRequest returns an encoder for requests sent to the Incident index_resolutions server.
EncodeResolveRequest returns an encoder for requests sent to the Incident resolve server.
EncodeRunActionRequest returns an encoder for requests sent to the Incident run_action server.
EncodeShowRequest returns an encoder for requests sent to the Incident show server.
IndexEscalationsIncidentPath returns the URL path to the Incident service index_escalations HTTP endpoint.
IndexIncidentPath returns the URL path to the Incident service index HTTP endpoint.
IndexResolutionsIncidentPath returns the URL path to the Incident service index_resolutions HTTP endpoint.
NewClient instantiates HTTP clients for all the Incident service servers.
NewIndexBadGateway builds a Incident service index endpoint bad_gateway error.
NewIndexBadRequest builds a Incident service index endpoint bad_request error.
NewIndexEscalationsBadGateway builds a Incident service index_escalations endpoint bad_gateway error.
NewIndexEscalationsBadRequest builds a Incident service index_escalations endpoint bad_request error.
NewIndexEscalationsEscalationsOK builds a "Incident" service "index_escalations" endpoint result from a HTTP "OK" response.
NewIndexEscalationsForbidden builds a Incident service index_escalations endpoint forbidden error.
NewIndexEscalationsInternalError builds a Incident service index_escalations endpoint internal_error error.
NewIndexEscalationsNotFound builds a Incident service index_escalations endpoint not_found error.
NewIndexEscalationsUnauthorized builds a Incident service index_escalations endpoint unauthorized error.
NewIndexForbidden builds a Incident service index endpoint forbidden error.
NewIndexIncidentListNotModified builds a "Incident" service "index" endpoint result from a HTTP "NotModified" response.
NewIndexIncidentListOK builds a "Incident" service "index" endpoint result from a HTTP "OK" response.
NewIndexInternalError builds a Incident service index endpoint internal_error error.
NewIndexResolutionsBadGateway builds a Incident service index_resolutions endpoint bad_gateway error.
NewIndexResolutionsBadRequest builds a Incident service index_resolutions endpoint bad_request error.
NewIndexResolutionsForbidden builds a Incident service index_resolutions endpoint forbidden error.
NewIndexResolutionsInternalError builds a Incident service index_resolutions endpoint internal_error error.
NewIndexResolutionsNotFound builds a Incident service index_resolutions endpoint not_found error.
NewIndexResolutionsResolutionsOK builds a "Incident" service "index_resolutions" endpoint result from a HTTP "OK" response.
NewIndexResolutionsUnauthorized builds a Incident service index_resolutions endpoint unauthorized error.
NewIndexResolutionsUnprocessableEntity builds a Incident service index_resolutions endpoint unprocessable_entity error.
NewIndexUnauthorized builds a Incident service index endpoint unauthorized error.
NewResolveBadGateway builds a Incident service resolve endpoint bad_gateway error.
NewResolveBadRequest builds a Incident service resolve endpoint bad_request error.
NewResolveForbidden builds a Incident service resolve endpoint forbidden error.
NewResolveInternalError builds a Incident service resolve endpoint internal_error error.
NewResolveNotFound builds a Incident service resolve endpoint not_found error.
NewResolvePreconditionFailed builds a Incident service resolve endpoint precondition_failed error.
NewResolveUnauthorized builds a Incident service resolve endpoint unauthorized error.
NewRunActionBadGateway builds a Incident service run_action endpoint bad_gateway error.
NewRunActionBadRequest builds a Incident service run_action endpoint bad_request error.
NewRunActionConflict builds a Incident service run_action endpoint conflict error.
NewRunActionForbidden builds a Incident service run_action endpoint forbidden error.
NewRunActionInternalError builds a Incident service run_action endpoint internal_error error.
NewRunActionNotFound builds a Incident service run_action endpoint not_found error.
NewRunActionRequestBody builds the HTTP request body from the payload of the "run_action" endpoint of the "Incident" service.
NewRunActionResultAccepted builds a "Incident" service "run_action" endpoint result from a HTTP "Accepted" response.
NewRunActionUnauthorized builds a Incident service run_action endpoint unauthorized error.
NewRunActionUnprocessableEntity builds a Incident service run_action endpoint unprocessable_entity error.
NewShowBadGateway builds a Incident service show endpoint bad_gateway error.
NewShowBadRequest builds a Incident service show endpoint bad_request error.
NewShowForbidden builds a Incident service show endpoint forbidden error.
NewShowIncidentNotModified builds a "Incident" service "show" endpoint result from a HTTP "NotModified" response.
NewShowIncidentOK builds a "Incident" service "show" endpoint result from a HTTP "OK" response.
NewShowInternalError builds a Incident service show endpoint internal_error error.
NewShowNotFound builds a Incident service show endpoint not_found error.
NewShowUnauthorized builds a Incident service show endpoint unauthorized error.
ResolveIncidentPath returns the URL path to the Incident service resolve HTTP endpoint.
RunActionIncidentPath returns the URL path to the Incident service run_action HTTP endpoint.
ShowIncidentPath returns the URL path to the Incident service show HTTP endpoint.
ValidateActionResponseBody runs the validations defined on ActionResponseBody.
ValidateAppliedPolicyResponseBody runs the validations defined on AppliedPolicyResponseBody.
ValidateApprovalRequestResponseBody runs the validations defined on ApprovalRequestResponseBody.
ValidateApprovalSubject runs the validations defined on ApprovalSubject.
ValidateConfigurationOptionCreateTypeRequestBody runs the validations defined on ConfigurationOptionCreateTypeRequestBody.
ValidateConfigurationOptionResponseBody runs the validations defined on ConfigurationOptionResponseBody.
ValidateCredentialsResponseBody runs the validations defined on CredentialsResponseBody.
ValidateCredentialsTagResponseBody runs the validations defined on CredentialsTagResponseBody.
ValidateDataFieldResponseBody runs the validations defined on DataFieldResponseBody.
ValidateEscalationActionResponseBody runs the validations defined on EscalationActionResponseBody.
ValidateEscalationResponseBody runs the validations defined on EscalationResponseBody.
ValidateIncidentCollectionResponseBody runs the validations defined on IncidentCollectionResponseBody.
ValidateIncidentResponseBody runs the validations defined on IncidentResponseBody.
ValidateIndexBadGatewayResponseBody runs the validations defined on index_bad_gateway_response_body.
ValidateIndexBadRequestResponseBody runs the validations defined on index_bad_request_response_body.
ValidateIndexEscalationsBadGatewayResponseBody runs the validations defined on index_escalations_bad_gateway_response_body.
ValidateIndexEscalationsBadRequestResponseBody runs the validations defined on index_escalations_bad_request_response_body.
ValidateIndexEscalationsForbiddenResponseBody runs the validations defined on index_escalations_forbidden_response_body.
ValidateIndexEscalationsInternalErrorResponseBody runs the validations defined on index_escalations_internal_error_response_body.
ValidateIndexEscalationsNotFoundResponseBody runs the validations defined on index_escalations_not_found_response_body.
ValidateIndexEscalationsUnauthorizedResponseBody runs the validations defined on index_escalations_unauthorized_response_body.
ValidateIndexForbiddenResponseBody runs the validations defined on index_forbidden_response_body.
ValidateIndexInternalErrorResponseBody runs the validations defined on index_internal_error_response_body.
ValidateIndexResolutionsBadGatewayResponseBody runs the validations defined on index_resolutions_bad_gateway_response_body.
ValidateIndexResolutionsBadRequestResponseBody runs the validations defined on index_resolutions_bad_request_response_body.
ValidateIndexResolutionsForbiddenResponseBody runs the validations defined on index_resolutions_forbidden_response_body.
ValidateIndexResolutionsInternalErrorResponseBody runs the validations defined on index_resolutions_internal_error_response_body.
ValidateIndexResolutionsNotFoundResponseBody runs the validations defined on index_resolutions_not_found_response_body.
ValidateIndexResolutionsUnauthorizedResponseBody runs the validations defined on index_resolutions_unauthorized_response_body.
ValidateIndexResolutionsUnprocessableEntityResponseBody runs the validations defined on index_resolutions_unprocessable_entity_response_body.
ValidateIndexUnauthorizedResponseBody runs the validations defined on index_unauthorized_response_body.
ValidateParameterResponseBody runs the validations defined on ParameterResponseBody.
ValidatePermissionResponseBody runs the validations defined on PermissionResponseBody.
ValidatePolicyTemplateResponseBody runs the validations defined on PolicyTemplateResponseBody.
ValidateProjectResponseBody runs the validations defined on ProjectResponseBody.
ValidatePublishedTemplateResponseBody runs the validations defined on PublishedTemplateResponseBody.
ValidateRegexpResponseBody runs the validations defined on RegexpResponseBody.
ValidateResolutionActionResponseBody runs the validations defined on ResolutionActionResponseBody.
ValidateResolutionResponseBody runs the validations defined on ResolutionResponseBody.
ValidateResolveBadGatewayResponseBody runs the validations defined on resolve_bad_gateway_response_body.
ValidateResolveBadRequestResponseBody runs the validations defined on resolve_bad_request_response_body.
ValidateResolveForbiddenResponseBody runs the validations defined on resolve_forbidden_response_body.
ValidateResolveInternalErrorResponseBody runs the validations defined on resolve_internal_error_response_body.
ValidateResolveNotFoundResponseBody runs the validations defined on resolve_not_found_response_body.
ValidateResolvePreconditionFailedResponseBody runs the validations defined on resolve_precondition_failed_response_body.
ValidateResolveUnauthorizedResponseBody runs the validations defined on resolve_unauthorized_response_body.
ValidateRunActionBadGatewayResponseBody runs the validations defined on run_action_bad_gateway_response_body.
ValidateRunActionBadRequestResponseBody runs the validations defined on run_action_bad_request_response_body.
ValidateRunActionForbiddenResponseBody runs the validations defined on run_action_forbidden_response_body.
ValidateRunActionInternalErrorResponseBody runs the validations defined on run_action_internal_error_response_body.
ValidateRunActionNotFoundResponseBody runs the validations defined on run_action_not_found_response_body.
ValidateRunActionUnauthorizedResponseBody runs the validations defined on run_action_unauthorized_response_body.
ValidateRunActionUnprocessableEntityResponseBody runs the validations defined on run_action_unprocessable_entity_response_body.
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

ActionResponseBody is used to define fields on response body types.
AppliedPolicyResponseBody is used to define fields on response body types.
ApprovalRequestResponseBody is used to define fields on response body types.
ApprovalSubject is used to define fields on response body types.
Client lists the Incident service endpoint HTTP clients.
ConfigurationOptionCreateTypeRequestBody is used to define fields on request body types.
ConfigurationOptionResponseBody is used to define fields on response body types.
CredentialsResponseBody is used to define fields on response body types.
CredentialsTagResponseBody is used to define fields on response body types.
DataFieldResponseBody is used to define fields on response body types.
EscalationActionResponseBody is used to define fields on response body types.
EscalationResponseBody is used to define fields on response body types.
IncidentResponseBody is used to define fields on response body types.
IndexBadGatewayResponseBody is the type of the "Incident" service "index" endpoint HTTP response body for the "bad_gateway" error.
IndexBadRequestResponseBody is the type of the "Incident" service "index" endpoint HTTP response body for the "bad_request" error.
IndexEscalationsBadGatewayResponseBody is the type of the "Incident" service "index_escalations" endpoint HTTP response body for the "bad_gateway" error.
IndexEscalationsBadRequestResponseBody is the type of the "Incident" service "index_escalations" endpoint HTTP response body for the "bad_request" error.
IndexEscalationsForbiddenResponseBody is the type of the "Incident" service "index_escalations" endpoint HTTP response body for the "forbidden" error.
IndexEscalationsInternalErrorResponseBody is the type of the "Incident" service "index_escalations" endpoint HTTP response body for the "internal_error" error.
IndexEscalationsNotFoundResponseBody is the type of the "Incident" service "index_escalations" endpoint HTTP response body for the "not_found" error.
IndexEscalationsResponseBody is the type of the "Incident" service "index_escalations" endpoint HTTP response body.
IndexEscalationsUnauthorizedResponseBody is the type of the "Incident" service "index_escalations" endpoint HTTP response body for the "unauthorized" error.
IndexForbiddenResponseBody is the type of the "Incident" service "index" endpoint HTTP response body for the "forbidden" error.
IndexInternalErrorResponseBody is the type of the "Incident" service "index" endpoint HTTP response body for the "internal_error" error.
IndexOKResponseBody is the type of the "Incident" service "index" endpoint HTTP response body.
IndexResolutionsBadGatewayResponseBody is the type of the "Incident" service "index_resolutions" endpoint HTTP response body for the "bad_gateway" error.
IndexResolutionsBadRequestResponseBody is the type of the "Incident" service "index_resolutions" endpoint HTTP response body for the "bad_request" error.
IndexResolutionsForbiddenResponseBody is the type of the "Incident" service "index_resolutions" endpoint HTTP response body for the "forbidden" error.
IndexResolutionsInternalErrorResponseBody is the type of the "Incident" service "index_resolutions" endpoint HTTP response body for the "internal_error" error.
IndexResolutionsNotFoundResponseBody is the type of the "Incident" service "index_resolutions" endpoint HTTP response body for the "not_found" error.
IndexResolutionsResponseBody is the type of the "Incident" service "index_resolutions" endpoint HTTP response body.
IndexResolutionsUnauthorizedResponseBody is the type of the "Incident" service "index_resolutions" endpoint HTTP response body for the "unauthorized" error.
IndexResolutionsUnprocessableEntityResponseBody is the type of the "Incident" service "index_resolutions" endpoint HTTP response body for the "unprocessable_entity" error.
IndexUnauthorizedResponseBody is the type of the "Incident" service "index" endpoint HTTP response body for the "unauthorized" error.
ParameterResponseBody is used to define fields on response body types.
PermissionResponseBody is used to define fields on response body types.
PolicyTemplateResponseBody is used to define fields on response body types.
ProjectResponseBody is used to define fields on response body types.
PublishedTemplateResponseBody is used to define fields on response body types.
RegexpResponseBody is used to define fields on response body types.
ResolutionActionResponseBody is used to define fields on response body types.
ResolutionResponseBody is used to define fields on response body types.
ResolveBadGatewayResponseBody is the type of the "Incident" service "resolve" endpoint HTTP response body for the "bad_gateway" error.
ResolveBadRequestResponseBody is the type of the "Incident" service "resolve" endpoint HTTP response body for the "bad_request" error.
ResolveForbiddenResponseBody is the type of the "Incident" service "resolve" endpoint HTTP response body for the "forbidden" error.
ResolveInternalErrorResponseBody is the type of the "Incident" service "resolve" endpoint HTTP response body for the "internal_error" error.
ResolveNotFoundResponseBody is the type of the "Incident" service "resolve" endpoint HTTP response body for the "not_found" error.
ResolvePreconditionFailedResponseBody is the type of the "Incident" service "resolve" endpoint HTTP response body for the "precondition_failed" error.
ResolveUnauthorizedResponseBody is the type of the "Incident" service "resolve" endpoint HTTP response body for the "unauthorized" error.
RunActionBadGatewayResponseBody is the type of the "Incident" service "run_action" endpoint HTTP response body for the "bad_gateway" error.
RunActionBadRequestResponseBody is the type of the "Incident" service "run_action" endpoint HTTP response body for the "bad_request" error.
RunActionConflictResponseBody is the type of the "Incident" service "run_action" endpoint HTTP response body for the "conflict" error.
RunActionForbiddenResponseBody is the type of the "Incident" service "run_action" endpoint HTTP response body for the "forbidden" error.
RunActionInternalErrorResponseBody is the type of the "Incident" service "run_action" endpoint HTTP response body for the "internal_error" error.
RunActionNotFoundResponseBody is the type of the "Incident" service "run_action" endpoint HTTP response body for the "not_found" error.
RunActionRequestBody is the type of the "Incident" service "run_action" endpoint HTTP request body.
RunActionUnauthorizedResponseBody is the type of the "Incident" service "run_action" endpoint HTTP response body for the "unauthorized" error.
RunActionUnprocessableEntityResponseBody is the type of the "Incident" service "run_action" endpoint HTTP response body for the "unprocessable_entity" error.
ShowBadGatewayResponseBody is the type of the "Incident" service "show" endpoint HTTP response body for the "bad_gateway" error.
ShowBadRequestResponseBody is the type of the "Incident" service "show" endpoint HTTP response body for the "bad_request" error.
ShowForbiddenResponseBody is the type of the "Incident" service "show" endpoint HTTP response body for the "forbidden" error.
ShowInternalErrorResponseBody is the type of the "Incident" service "show" endpoint HTTP response body for the "internal_error" error.
ShowNotFoundResponseBody is the type of the "Incident" service "show" endpoint HTTP response body for the "not_found" error.
ShowOKResponseBody is the type of the "Incident" service "show" endpoint HTTP response body.
ShowUnauthorizedResponseBody is the type of the "Incident" service "show" endpoint HTTP response body for the "unauthorized" error.
UserResponseBody is used to define fields on response body types.

# Type aliases

IncidentCollectionResponseBody is used to define fields on response body types.