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

# Functions

BuildCompilePayload builds the payload for the PolicyTemplate compile endpoint from CLI flags.
BuildDeletePayload builds the payload for the PolicyTemplate delete endpoint from CLI flags.
BuildIndexPayload builds the payload for the PolicyTemplate index endpoint from CLI flags.
BuildRetrieveDataPayload builds the payload for the PolicyTemplate retrieve_data endpoint from CLI flags.
BuildShowPayload builds the payload for the PolicyTemplate show endpoint from CLI flags.
BuildUpdatePayload builds the payload for the PolicyTemplate update endpoint from CLI flags.
BuildUploadPayload builds the payload for the PolicyTemplate upload endpoint from CLI flags.
CompilePolicyTemplatePath returns the URL path to the PolicyTemplate service compile HTTP endpoint.
DecodeCompileResponse returns a decoder for responses returned by the PolicyTemplate compile endpoint.
DecodeDeleteResponse returns a decoder for responses returned by the PolicyTemplate delete endpoint.
DecodeIndexResponse returns a decoder for responses returned by the PolicyTemplate index endpoint.
DecodeRetrieveDataResponse returns a decoder for responses returned by the PolicyTemplate retrieve_data endpoint.
DecodeShowResponse returns a decoder for responses returned by the PolicyTemplate show endpoint.
DecodeUpdateResponse returns a decoder for responses returned by the PolicyTemplate update endpoint.
DecodeUploadResponse returns a decoder for responses returned by the PolicyTemplate upload endpoint.
DeletePolicyTemplatePath returns the URL path to the PolicyTemplate service delete HTTP endpoint.
EncodeCompileRequest returns an encoder for requests sent to the PolicyTemplate compile server.
EncodeDeleteRequest returns an encoder for requests sent to the PolicyTemplate delete server.
EncodeIndexRequest returns an encoder for requests sent to the PolicyTemplate index server.
EncodeRetrieveDataRequest returns an encoder for requests sent to the PolicyTemplate retrieve_data server.
EncodeShowRequest returns an encoder for requests sent to the PolicyTemplate show server.
EncodeUpdateRequest returns an encoder for requests sent to the PolicyTemplate update server.
EncodeUploadRequest returns an encoder for requests sent to the PolicyTemplate upload server.
IndexPolicyTemplatePath returns the URL path to the PolicyTemplate service index HTTP endpoint.
NewClient instantiates HTTP clients for all the PolicyTemplate service servers.
NewCompileBadGateway builds a PolicyTemplate service compile endpoint bad_gateway error.
NewCompileBadRequest builds a PolicyTemplate service compile endpoint bad_request error.
NewCompileForbidden builds a PolicyTemplate service compile endpoint forbidden error.
NewCompileInternalError builds a PolicyTemplate service compile endpoint internal_error error.
NewCompileInvalidTemplate builds a PolicyTemplate service compile endpoint invalid_template error.
NewCompileRequestBody builds the HTTP request body from the payload of the "compile" endpoint of the "PolicyTemplate" service.
NewCompileUnauthorized builds a PolicyTemplate service compile endpoint unauthorized error.
NewDeleteBadGateway builds a PolicyTemplate service delete endpoint bad_gateway error.
NewDeleteBadRequest builds a PolicyTemplate service delete endpoint bad_request error.
NewDeleteForbidden builds a PolicyTemplate service delete endpoint forbidden error.
NewDeleteInternalError builds a PolicyTemplate service delete endpoint internal_error error.
NewDeleteNotFound builds a PolicyTemplate service delete endpoint not_found error.
NewDeleteUnauthorized builds a PolicyTemplate service delete endpoint unauthorized error.
NewIndexBadGateway builds a PolicyTemplate service index endpoint bad_gateway error.
NewIndexBadRequest builds a PolicyTemplate service index endpoint bad_request error.
NewIndexForbidden builds a PolicyTemplate service index endpoint forbidden error.
NewIndexInternalError builds a PolicyTemplate service index endpoint internal_error error.
NewIndexPolicyTemplateListNotModified builds a "PolicyTemplate" service "index" endpoint result from a HTTP "NotModified" response.
NewIndexPolicyTemplateListOK builds a "PolicyTemplate" service "index" endpoint result from a HTTP "OK" response.
NewIndexUnauthorized builds a PolicyTemplate service index endpoint unauthorized error.
NewRetrieveDataBadGateway builds a PolicyTemplate service retrieve_data endpoint bad_gateway error.
NewRetrieveDataBadRequest builds a PolicyTemplate service retrieve_data endpoint bad_request error.
NewRetrieveDataDataOK builds a "PolicyTemplate" service "retrieve_data" endpoint result from a HTTP "OK" response.
NewRetrieveDataForbidden builds a PolicyTemplate service retrieve_data endpoint forbidden error.
NewRetrieveDataInternalError builds a PolicyTemplate service retrieve_data endpoint internal_error error.
NewRetrieveDataRequestBody builds the HTTP request body from the payload of the "retrieve_data" endpoint of the "PolicyTemplate" service.
NewRetrieveDataUnauthorized builds a PolicyTemplate service retrieve_data endpoint unauthorized error.
NewRetrieveDataUnprocessableEntity builds a PolicyTemplate service retrieve_data endpoint unprocessable_entity error.
NewShowBadGateway builds a PolicyTemplate service show endpoint bad_gateway error.
NewShowBadRequest builds a PolicyTemplate service show endpoint bad_request error.
NewShowForbidden builds a PolicyTemplate service show endpoint forbidden error.
NewShowInternalError builds a PolicyTemplate service show endpoint internal_error error.
NewShowNotFound builds a PolicyTemplate service show endpoint not_found error.
NewShowPolicyTemplateOK builds a "PolicyTemplate" service "show" endpoint result from a HTTP "OK" response.
NewShowUnauthorized builds a PolicyTemplate service show endpoint unauthorized error.
NewUpdateBadGateway builds a PolicyTemplate service update endpoint bad_gateway error.
NewUpdateBadRequest builds a PolicyTemplate service update endpoint bad_request error.
NewUpdateForbidden builds a PolicyTemplate service update endpoint forbidden error.
NewUpdateInternalError builds a PolicyTemplate service update endpoint internal_error error.
NewUpdateInvalidTemplate builds a PolicyTemplate service update endpoint invalid_template error.
NewUpdateNotFound builds a PolicyTemplate service update endpoint not_found error.
NewUpdatePolicyTemplateOK builds a "PolicyTemplate" service "update" endpoint result from a HTTP "OK" response.
NewUpdateRequestBody builds the HTTP request body from the payload of the "update" endpoint of the "PolicyTemplate" service.
NewUpdateUnauthorized builds a PolicyTemplate service update endpoint unauthorized error.
NewUploadBadGateway builds a PolicyTemplate service upload endpoint bad_gateway error.
NewUploadBadRequest builds a PolicyTemplate service upload endpoint bad_request error.
NewUploadConflict builds a PolicyTemplate service upload endpoint conflict error.
NewUploadForbidden builds a PolicyTemplate service upload endpoint forbidden error.
NewUploadInternalError builds a PolicyTemplate service upload endpoint internal_error error.
NewUploadInvalidTemplate builds a PolicyTemplate service upload endpoint invalid_template error.
NewUploadPolicyTemplateOK builds a "PolicyTemplate" service "upload" endpoint result from a HTTP "OK" response.
NewUploadRequestBody builds the HTTP request body from the payload of the "upload" endpoint of the "PolicyTemplate" service.
NewUploadUnauthorized builds a PolicyTemplate service upload endpoint unauthorized error.
RetrieveDataPolicyTemplatePath returns the URL path to the PolicyTemplate service retrieve_data HTTP endpoint.
ShowPolicyTemplatePath returns the URL path to the PolicyTemplate service show HTTP endpoint.
UpdatePolicyTemplatePath returns the URL path to the PolicyTemplate service update HTTP endpoint.
UploadPolicyTemplatePath returns the URL path to the PolicyTemplate service upload HTTP endpoint.
ValidateCompilationErrorResponseBody runs the validations defined on CompilationErrorResponseBody.
ValidateCompileBadGatewayResponseBody runs the validations defined on compile_bad_gateway_response_body.
ValidateCompileBadRequestResponseBody runs the validations defined on compile_bad_request_response_body.
ValidateCompileForbiddenResponseBody runs the validations defined on compile_forbidden_response_body.
ValidateCompileInternalErrorResponseBody runs the validations defined on compile_internal_error_response_body.
ValidateCompileInvalidTemplateResponseBody runs the validations defined on compile_invalid_template_response_body.
ValidateCompileUnauthorizedResponseBody runs the validations defined on compile_unauthorized_response_body.
ValidateConfigurationOptionCreateTypeRequestBody runs the validations defined on ConfigurationOptionCreateTypeRequestBody.
ValidateCredentialsResponseBody runs the validations defined on CredentialsResponseBody.
ValidateCredentialsTagResponseBody runs the validations defined on CredentialsTagResponseBody.
ValidateDataResponse runs the validations defined on DataResponse.
ValidateDeleteBadGatewayResponseBody runs the validations defined on delete_bad_gateway_response_body.
ValidateDeleteBadRequestResponseBody runs the validations defined on delete_bad_request_response_body.
ValidateDeleteForbiddenResponseBody runs the validations defined on delete_forbidden_response_body.
ValidateDeleteInternalErrorResponseBody runs the validations defined on delete_internal_error_response_body.
ValidateDeleteNotFoundResponseBody runs the validations defined on delete_not_found_response_body.
ValidateDeleteUnauthorizedResponseBody runs the validations defined on delete_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.
ValidatePermissionResponseBody runs the validations defined on PermissionResponseBody.
ValidatePolicyTemplateCollectionResponseBody runs the validations defined on PolicyTemplateCollectionResponseBody.
ValidatePolicyTemplateResponseBody runs the validations defined on PolicyTemplateResponseBody.
ValidateRegexpResponseBody runs the validations defined on RegexpResponseBody.
ValidateRetrieveDataBadGatewayResponseBody runs the validations defined on retrieve_data_bad_gateway_response_body.
ValidateRetrieveDataBadRequestResponseBody runs the validations defined on retrieve_data_bad_request_response_body.
ValidateRetrieveDataForbiddenResponseBody runs the validations defined on retrieve_data_forbidden_response_body.
ValidateRetrieveDataInternalErrorResponseBody runs the validations defined on retrieve_data_internal_error_response_body.
ValidateRetrieveDataUnauthorizedResponseBody runs the validations defined on retrieve_data_unauthorized_response_body.
ValidateRetrieveDataUnprocessableEntityResponseBody runs the validations defined on retrieve_data_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.
ValidateUpdateBadGatewayResponseBody runs the validations defined on update_bad_gateway_response_body.
ValidateUpdateBadRequestResponseBody runs the validations defined on update_bad_request_response_body.
ValidateUpdateForbiddenResponseBody runs the validations defined on update_forbidden_response_body.
ValidateUpdateInternalErrorResponseBody runs the validations defined on update_internal_error_response_body.
ValidateUpdateInvalidTemplateResponseBody runs the validations defined on update_invalid_template_response_body.
ValidateUpdateNotFoundResponseBody runs the validations defined on update_not_found_response_body.
ValidateUpdateUnauthorizedResponseBody runs the validations defined on update_unauthorized_response_body.
ValidateUploadBadGatewayResponseBody runs the validations defined on upload_bad_gateway_response_body.
ValidateUploadBadRequestResponseBody runs the validations defined on upload_bad_request_response_body.
ValidateUploadConflictResponseBody runs the validations defined on upload_conflict_response_body.
ValidateUploadForbiddenResponseBody runs the validations defined on upload_forbidden_response_body.
ValidateUploadInternalErrorResponseBody runs the validations defined on upload_internal_error_response_body.
ValidateUploadInvalidTemplateResponseBody runs the validations defined on upload_invalid_template_response_body.
ValidateUploadUnauthorizedResponseBody runs the validations defined on upload_unauthorized_response_body.
ValidateUserResponseBody runs the validations defined on UserResponseBody.

# Structs

Client lists the PolicyTemplate service endpoint HTTP clients.
CompilationErrorResponseBody is used to define fields on response body types.
CompileBadGatewayResponseBody is the type of the "PolicyTemplate" service "compile" endpoint HTTP response body for the "bad_gateway" error.
CompileBadRequestResponseBody is the type of the "PolicyTemplate" service "compile" endpoint HTTP response body for the "bad_request" error.
CompileForbiddenResponseBody is the type of the "PolicyTemplate" service "compile" endpoint HTTP response body for the "forbidden" error.
CompileInternalErrorResponseBody is the type of the "PolicyTemplate" service "compile" endpoint HTTP response body for the "internal_error" error.
CompileInvalidTemplateResponseBody is the type of the "PolicyTemplate" service "compile" endpoint HTTP response body for the "invalid_template" error.
CompileRequestBody is the type of the "PolicyTemplate" service "compile" endpoint HTTP request body.
CompileUnauthorizedResponseBody is the type of the "PolicyTemplate" service "compile" endpoint HTTP response body for the "unauthorized" error.
ConfigurationOptionCreateTypeRequestBody is used to define fields on request body types.
CredentialsResponseBody is used to define fields on response body types.
CredentialsTagResponseBody is used to define fields on response body types.
DataResponse is used to define fields on response body types.
DeleteBadGatewayResponseBody is the type of the "PolicyTemplate" service "delete" endpoint HTTP response body for the "bad_gateway" error.
DeleteBadRequestResponseBody is the type of the "PolicyTemplate" service "delete" endpoint HTTP response body for the "bad_request" error.
DeleteForbiddenResponseBody is the type of the "PolicyTemplate" service "delete" endpoint HTTP response body for the "forbidden" error.
DeleteInternalErrorResponseBody is the type of the "PolicyTemplate" service "delete" endpoint HTTP response body for the "internal_error" error.
DeleteNotFoundResponseBody is the type of the "PolicyTemplate" service "delete" endpoint HTTP response body for the "not_found" error.
DeleteUnauthorizedResponseBody is the type of the "PolicyTemplate" service "delete" endpoint HTTP response body for the "unauthorized" error.
IndexBadGatewayResponseBody is the type of the "PolicyTemplate" service "index" endpoint HTTP response body for the "bad_gateway" error.
IndexBadRequestResponseBody is the type of the "PolicyTemplate" service "index" endpoint HTTP response body for the "bad_request" error.
IndexForbiddenResponseBody is the type of the "PolicyTemplate" service "index" endpoint HTTP response body for the "forbidden" error.
IndexInternalErrorResponseBody is the type of the "PolicyTemplate" service "index" endpoint HTTP response body for the "internal_error" error.
IndexOKResponseBody is the type of the "PolicyTemplate" service "index" endpoint HTTP response body.
IndexUnauthorizedResponseBody is the type of the "PolicyTemplate" 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.
RegexpResponseBody is used to define fields on response body types.
RetrieveDataBadGatewayResponseBody is the type of the "PolicyTemplate" service "retrieve_data" endpoint HTTP response body for the "bad_gateway" error.
RetrieveDataBadRequestResponseBody is the type of the "PolicyTemplate" service "retrieve_data" endpoint HTTP response body for the "bad_request" error.
RetrieveDataForbiddenResponseBody is the type of the "PolicyTemplate" service "retrieve_data" endpoint HTTP response body for the "forbidden" error.
RetrieveDataInternalErrorResponseBody is the type of the "PolicyTemplate" service "retrieve_data" endpoint HTTP response body for the "internal_error" error.
RetrieveDataRequestBody is the type of the "PolicyTemplate" service "retrieve_data" endpoint HTTP request body.
RetrieveDataUnauthorizedResponseBody is the type of the "PolicyTemplate" service "retrieve_data" endpoint HTTP response body for the "unauthorized" error.
RetrieveDataUnprocessableEntityResponseBody is the type of the "PolicyTemplate" service "retrieve_data" endpoint HTTP response body for the "unprocessable_entity" error.
ShowBadGatewayResponseBody is the type of the "PolicyTemplate" service "show" endpoint HTTP response body for the "bad_gateway" error.
ShowBadRequestResponseBody is the type of the "PolicyTemplate" service "show" endpoint HTTP response body for the "bad_request" error.
ShowForbiddenResponseBody is the type of the "PolicyTemplate" service "show" endpoint HTTP response body for the "forbidden" error.
ShowInternalErrorResponseBody is the type of the "PolicyTemplate" service "show" endpoint HTTP response body for the "internal_error" error.
ShowNotFoundResponseBody is the type of the "PolicyTemplate" service "show" endpoint HTTP response body for the "not_found" error.
ShowResponseBody is the type of the "PolicyTemplate" service "show" endpoint HTTP response body.
ShowUnauthorizedResponseBody is the type of the "PolicyTemplate" service "show" endpoint HTTP response body for the "unauthorized" error.
UpdateBadGatewayResponseBody is the type of the "PolicyTemplate" service "update" endpoint HTTP response body for the "bad_gateway" error.
UpdateBadRequestResponseBody is the type of the "PolicyTemplate" service "update" endpoint HTTP response body for the "bad_request" error.
UpdateForbiddenResponseBody is the type of the "PolicyTemplate" service "update" endpoint HTTP response body for the "forbidden" error.
UpdateInternalErrorResponseBody is the type of the "PolicyTemplate" service "update" endpoint HTTP response body for the "internal_error" error.
UpdateInvalidTemplateResponseBody is the type of the "PolicyTemplate" service "update" endpoint HTTP response body for the "invalid_template" error.
UpdateNotFoundResponseBody is the type of the "PolicyTemplate" service "update" endpoint HTTP response body for the "not_found" error.
UpdateRequestBody is the type of the "PolicyTemplate" service "update" endpoint HTTP request body.
UpdateResponseBody is the type of the "PolicyTemplate" service "update" endpoint HTTP response body.
UpdateUnauthorizedResponseBody is the type of the "PolicyTemplate" service "update" endpoint HTTP response body for the "unauthorized" error.
UploadBadGatewayResponseBody is the type of the "PolicyTemplate" service "upload" endpoint HTTP response body for the "bad_gateway" error.
UploadBadRequestResponseBody is the type of the "PolicyTemplate" service "upload" endpoint HTTP response body for the "bad_request" error.
UploadConflictResponseBody is the type of the "PolicyTemplate" service "upload" endpoint HTTP response body for the "conflict" error.
UploadForbiddenResponseBody is the type of the "PolicyTemplate" service "upload" endpoint HTTP response body for the "forbidden" error.
UploadInternalErrorResponseBody is the type of the "PolicyTemplate" service "upload" endpoint HTTP response body for the "internal_error" error.
UploadInvalidTemplateResponseBody is the type of the "PolicyTemplate" service "upload" endpoint HTTP response body for the "invalid_template" error.
UploadRequestBody is the type of the "PolicyTemplate" service "upload" endpoint HTTP request body.
UploadResponseBody is the type of the "PolicyTemplate" service "upload" endpoint HTTP response body.
UploadUnauthorizedResponseBody is the type of the "PolicyTemplate" service "upload" endpoint HTTP response body for the "unauthorized" error.
UserResponseBody is used to define fields on response body types.

# Type aliases

PolicyTemplateCollectionResponseBody is used to define fields on response body types.
RetrieveDataResponseBody is the type of the "PolicyTemplate" service "retrieve_data" endpoint HTTP response body.