package
0.2.0-alpha
Repository: https://github.com/vmware-archive/dispatch.git
Documentation: pkg.go.dev
# Functions
NewAddPolicy creates a new http.Handler for the add policy operation.
NewAddPolicyBadRequest creates AddPolicyBadRequest with default headers values.
NewAddPolicyConflict creates AddPolicyConflict with default headers values.
NewAddPolicyCreated creates AddPolicyCreated with default headers values.
NewAddPolicyDefault creates AddPolicyDefault with default headers values.
NewAddPolicyForbidden creates AddPolicyForbidden with default headers values.
NewAddPolicyParams creates a new AddPolicyParams object no default values defined in spec.
NewAddPolicyUnauthorized creates AddPolicyUnauthorized with default headers values.
NewDeletePolicy creates a new http.Handler for the delete policy operation.
NewDeletePolicyBadRequest creates DeletePolicyBadRequest with default headers values.
NewDeletePolicyDefault creates DeletePolicyDefault with default headers values.
NewDeletePolicyForbidden creates DeletePolicyForbidden with default headers values.
NewDeletePolicyNotFound creates DeletePolicyNotFound with default headers values.
NewDeletePolicyOK creates DeletePolicyOK with default headers values.
NewDeletePolicyParams creates a new DeletePolicyParams object no default values defined in spec.
NewDeletePolicyUnauthorized creates DeletePolicyUnauthorized with default headers values.
NewGetPolicies creates a new http.Handler for the get policies operation.
NewGetPoliciesDefault creates GetPoliciesDefault with default headers values.
NewGetPoliciesForbidden creates GetPoliciesForbidden with default headers values.
NewGetPoliciesOK creates GetPoliciesOK with default headers values.
NewGetPoliciesParams creates a new GetPoliciesParams object no default values defined in spec.
NewGetPoliciesUnauthorized creates GetPoliciesUnauthorized with default headers values.
NewGetPolicy creates a new http.Handler for the get policy operation.
NewGetPolicyBadRequest creates GetPolicyBadRequest with default headers values.
NewGetPolicyDefault creates GetPolicyDefault with default headers values.
NewGetPolicyForbidden creates GetPolicyForbidden with default headers values.
NewGetPolicyNotFound creates GetPolicyNotFound with default headers values.
NewGetPolicyOK creates GetPolicyOK with default headers values.
NewGetPolicyParams creates a new GetPolicyParams object no default values defined in spec.
NewGetPolicyUnauthorized creates GetPolicyUnauthorized with default headers values.
NewUpdatePolicy creates a new http.Handler for the update policy operation.
NewUpdatePolicyBadRequest creates UpdatePolicyBadRequest with default headers values.
NewUpdatePolicyDefault creates UpdatePolicyDefault with default headers values.
NewUpdatePolicyForbidden creates UpdatePolicyForbidden with default headers values.
NewUpdatePolicyNotFound creates UpdatePolicyNotFound with default headers values.
NewUpdatePolicyOK creates UpdatePolicyOK with default headers values.
NewUpdatePolicyParams creates a new UpdatePolicyParams object no default values defined in spec.
NewUpdatePolicyUnauthorized creates UpdatePolicyUnauthorized with default headers values.
# Constants
AddPolicyBadRequestCode is the HTTP code returned for type AddPolicyBadRequest.
AddPolicyConflictCode is the HTTP code returned for type AddPolicyConflict.
AddPolicyCreatedCode is the HTTP code returned for type AddPolicyCreated.
AddPolicyForbiddenCode is the HTTP code returned for type AddPolicyForbidden.
AddPolicyUnauthorizedCode is the HTTP code returned for type AddPolicyUnauthorized.
DeletePolicyBadRequestCode is the HTTP code returned for type DeletePolicyBadRequest.
DeletePolicyForbiddenCode is the HTTP code returned for type DeletePolicyForbidden.
DeletePolicyNotFoundCode is the HTTP code returned for type DeletePolicyNotFound.
DeletePolicyOKCode is the HTTP code returned for type DeletePolicyOK.
DeletePolicyUnauthorizedCode is the HTTP code returned for type DeletePolicyUnauthorized.
GetPoliciesForbiddenCode is the HTTP code returned for type GetPoliciesForbidden.
GetPoliciesOKCode is the HTTP code returned for type GetPoliciesOK.
GetPoliciesUnauthorizedCode is the HTTP code returned for type GetPoliciesUnauthorized.
GetPolicyBadRequestCode is the HTTP code returned for type GetPolicyBadRequest.
GetPolicyForbiddenCode is the HTTP code returned for type GetPolicyForbidden.
GetPolicyNotFoundCode is the HTTP code returned for type GetPolicyNotFound.
GetPolicyOKCode is the HTTP code returned for type GetPolicyOK.
GetPolicyUnauthorizedCode is the HTTP code returned for type GetPolicyUnauthorized.
UpdatePolicyBadRequestCode is the HTTP code returned for type UpdatePolicyBadRequest.
UpdatePolicyForbiddenCode is the HTTP code returned for type UpdatePolicyForbidden.
UpdatePolicyNotFoundCode is the HTTP code returned for type UpdatePolicyNotFound.
UpdatePolicyOKCode is the HTTP code returned for type UpdatePolicyOK.
UpdatePolicyUnauthorizedCode is the HTTP code returned for type UpdatePolicyUnauthorized.
# Structs
AddPolicy swagger:route POST /v1/iam/policy policy addPolicy
Add a new policy
*/.
AddPolicyBadRequest Invalid input
swagger:response addPolicyBadRequest
*/.
AddPolicyConflict Already Exists
swagger:response addPolicyConflict
*/.
AddPolicyCreated created
swagger:response addPolicyCreated
*/.
AddPolicyDefault Generic error response
swagger:response addPolicyDefault
*/.
AddPolicyForbidden access to this resource is forbidden
swagger:response addPolicyForbidden
*/.
AddPolicyParams contains all the bound params for the add policy operation typically these are obtained from a http.Request
swagger:parameters addPolicy.
AddPolicyUnauthorized Unauthorized Request
swagger:response addPolicyUnauthorized
*/.
AddPolicyURL generates an URL for the add policy operation.
DeletePolicy swagger:route DELETE /v1/iam/policy/{policyName} policy deletePolicy
Deletes an Policy
*/.
DeletePolicyBadRequest Invalid Name supplied
swagger:response deletePolicyBadRequest
*/.
DeletePolicyDefault Unknown error
swagger:response deletePolicyDefault
*/.
DeletePolicyForbidden access to this resource is forbidden
swagger:response deletePolicyForbidden
*/.
DeletePolicyNotFound Policy not found
swagger:response deletePolicyNotFound
*/.
DeletePolicyOK Successful operation
swagger:response deletePolicyOK
*/.
DeletePolicyParams contains all the bound params for the delete policy operation typically these are obtained from a http.Request
swagger:parameters deletePolicy.
DeletePolicyUnauthorized Unauthorized Request
swagger:response deletePolicyUnauthorized
*/.
DeletePolicyURL generates an URL for the delete policy operation.
GetPolicies swagger:route GET /v1/iam/policy policy getPolicies
List all existing policies
*/.
GetPoliciesDefault Unexpected Error
swagger:response getPoliciesDefault
*/.
GetPoliciesForbidden access to this resource is forbidden
swagger:response getPoliciesForbidden
*/.
GetPoliciesOK Successful operation
swagger:response getPoliciesOK
*/.
GetPoliciesParams contains all the bound params for the get policies operation typically these are obtained from a http.Request
swagger:parameters getPolicies.
GetPoliciesUnauthorized Unauthorized Request
swagger:response getPoliciesUnauthorized
*/.
GetPoliciesURL generates an URL for the get policies operation.
GetPolicy swagger:route GET /v1/iam/policy/{policyName} policy getPolicy
Find Policy by name
get an Policy by name
*/.
GetPolicyBadRequest Invalid Name supplied
swagger:response getPolicyBadRequest
*/.
GetPolicyDefault Unknown error
swagger:response getPolicyDefault
*/.
GetPolicyForbidden access to this resource is forbidden
swagger:response getPolicyForbidden
*/.
GetPolicyNotFound Policy not found
swagger:response getPolicyNotFound
*/.
GetPolicyOK Successful operation
swagger:response getPolicyOK
*/.
GetPolicyParams contains all the bound params for the get policy operation typically these are obtained from a http.Request
swagger:parameters getPolicy.
GetPolicyUnauthorized Unauthorized Request
swagger:response getPolicyUnauthorized
*/.
GetPolicyURL generates an URL for the get policy operation.
UpdatePolicy swagger:route PUT /v1/iam/policy/{policyName} policy updatePolicy
Update a Policy
*/.
UpdatePolicyBadRequest Invalid input
swagger:response updatePolicyBadRequest
*/.
UpdatePolicyDefault Unknown error
swagger:response updatePolicyDefault
*/.
UpdatePolicyForbidden access to this resource is forbidden
swagger:response updatePolicyForbidden
*/.
UpdatePolicyNotFound Policy not found
swagger:response updatePolicyNotFound
*/.
UpdatePolicyOK Successful update
swagger:response updatePolicyOK
*/.
UpdatePolicyParams contains all the bound params for the update policy operation typically these are obtained from a http.Request
swagger:parameters updatePolicy.
UpdatePolicyUnauthorized Unauthorized Request
swagger:response updatePolicyUnauthorized
*/.
UpdatePolicyURL generates an URL for the update policy operation.
# Interfaces
AddPolicyHandler interface for that can handle valid add policy params.
DeletePolicyHandler interface for that can handle valid delete policy params.
GetPoliciesHandler interface for that can handle valid get policies params.
GetPolicyHandler interface for that can handle valid get policy params.
UpdatePolicyHandler interface for that can handle valid update policy params.
# Type aliases
AddPolicyHandlerFunc turns a function with the right signature into a add policy handler.
DeletePolicyHandlerFunc turns a function with the right signature into a delete policy handler.
GetPoliciesHandlerFunc turns a function with the right signature into a get policies handler.
GetPolicyHandlerFunc turns a function with the right signature into a get policy handler.
UpdatePolicyHandlerFunc turns a function with the right signature into a update policy handler.