Documentation ¶
Index ¶
- Constants
- type AddPolicy
- type AddPolicyBadRequest
- type AddPolicyConflict
- type AddPolicyCreated
- type AddPolicyDefault
- func (o *AddPolicyDefault) SetPayload(payload *v1.Error)
- func (o *AddPolicyDefault) SetStatusCode(code int)
- func (o *AddPolicyDefault) WithPayload(payload *v1.Error) *AddPolicyDefault
- func (o *AddPolicyDefault) WithStatusCode(code int) *AddPolicyDefault
- func (o *AddPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddPolicyForbidden
- type AddPolicyHandler
- type AddPolicyHandlerFunc
- type AddPolicyParams
- type AddPolicyURL
- func (o *AddPolicyURL) Build() (*url.URL, error)
- func (o *AddPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddPolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *AddPolicyURL) SetBasePath(bp string)
- func (o *AddPolicyURL) String() string
- func (o *AddPolicyURL) StringFull(scheme, host string) string
- func (o *AddPolicyURL) WithBasePath(bp string) *AddPolicyURL
- type AddPolicyUnauthorized
- type DeletePolicy
- type DeletePolicyBadRequest
- type DeletePolicyDefault
- func (o *DeletePolicyDefault) SetPayload(payload *v1.Error)
- func (o *DeletePolicyDefault) SetStatusCode(code int)
- func (o *DeletePolicyDefault) WithPayload(payload *v1.Error) *DeletePolicyDefault
- func (o *DeletePolicyDefault) WithStatusCode(code int) *DeletePolicyDefault
- func (o *DeletePolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeletePolicyForbidden
- type DeletePolicyHandler
- type DeletePolicyHandlerFunc
- type DeletePolicyNotFound
- type DeletePolicyOK
- type DeletePolicyParams
- type DeletePolicyURL
- func (o *DeletePolicyURL) Build() (*url.URL, error)
- func (o *DeletePolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeletePolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *DeletePolicyURL) SetBasePath(bp string)
- func (o *DeletePolicyURL) String() string
- func (o *DeletePolicyURL) StringFull(scheme, host string) string
- func (o *DeletePolicyURL) WithBasePath(bp string) *DeletePolicyURL
- type DeletePolicyUnauthorized
- type GetPolicies
- type GetPoliciesDefault
- func (o *GetPoliciesDefault) SetPayload(payload *v1.Error)
- func (o *GetPoliciesDefault) SetStatusCode(code int)
- func (o *GetPoliciesDefault) WithPayload(payload *v1.Error) *GetPoliciesDefault
- func (o *GetPoliciesDefault) WithStatusCode(code int) *GetPoliciesDefault
- func (o *GetPoliciesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetPoliciesForbidden
- type GetPoliciesHandler
- type GetPoliciesHandlerFunc
- type GetPoliciesOK
- type GetPoliciesParams
- type GetPoliciesURL
- func (o *GetPoliciesURL) Build() (*url.URL, error)
- func (o *GetPoliciesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetPoliciesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetPoliciesURL) SetBasePath(bp string)
- func (o *GetPoliciesURL) String() string
- func (o *GetPoliciesURL) StringFull(scheme, host string) string
- func (o *GetPoliciesURL) WithBasePath(bp string) *GetPoliciesURL
- type GetPoliciesUnauthorized
- type GetPolicy
- type GetPolicyBadRequest
- type GetPolicyDefault
- func (o *GetPolicyDefault) SetPayload(payload *v1.Error)
- func (o *GetPolicyDefault) SetStatusCode(code int)
- func (o *GetPolicyDefault) WithPayload(payload *v1.Error) *GetPolicyDefault
- func (o *GetPolicyDefault) WithStatusCode(code int) *GetPolicyDefault
- func (o *GetPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetPolicyForbidden
- type GetPolicyHandler
- type GetPolicyHandlerFunc
- type GetPolicyNotFound
- type GetPolicyOK
- type GetPolicyParams
- type GetPolicyURL
- func (o *GetPolicyURL) Build() (*url.URL, error)
- func (o *GetPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetPolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *GetPolicyURL) SetBasePath(bp string)
- func (o *GetPolicyURL) String() string
- func (o *GetPolicyURL) StringFull(scheme, host string) string
- func (o *GetPolicyURL) WithBasePath(bp string) *GetPolicyURL
- type GetPolicyUnauthorized
- type UpdatePolicy
- type UpdatePolicyBadRequest
- type UpdatePolicyDefault
- func (o *UpdatePolicyDefault) SetPayload(payload *v1.Error)
- func (o *UpdatePolicyDefault) SetStatusCode(code int)
- func (o *UpdatePolicyDefault) WithPayload(payload *v1.Error) *UpdatePolicyDefault
- func (o *UpdatePolicyDefault) WithStatusCode(code int) *UpdatePolicyDefault
- func (o *UpdatePolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdatePolicyForbidden
- type UpdatePolicyHandler
- type UpdatePolicyHandlerFunc
- type UpdatePolicyNotFound
- type UpdatePolicyOK
- type UpdatePolicyParams
- type UpdatePolicyURL
- func (o *UpdatePolicyURL) Build() (*url.URL, error)
- func (o *UpdatePolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdatePolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdatePolicyURL) SetBasePath(bp string)
- func (o *UpdatePolicyURL) String() string
- func (o *UpdatePolicyURL) StringFull(scheme, host string) string
- func (o *UpdatePolicyURL) WithBasePath(bp string) *UpdatePolicyURL
- type UpdatePolicyUnauthorized
Constants ¶
const AddPolicyBadRequestCode int = 400
AddPolicyBadRequestCode is the HTTP code returned for type AddPolicyBadRequest
const AddPolicyConflictCode int = 409
AddPolicyConflictCode is the HTTP code returned for type AddPolicyConflict
const AddPolicyCreatedCode int = 201
AddPolicyCreatedCode is the HTTP code returned for type AddPolicyCreated
const AddPolicyForbiddenCode int = 403
AddPolicyForbiddenCode is the HTTP code returned for type AddPolicyForbidden
AddPolicyUnauthorizedCode is the HTTP code returned for type AddPolicyUnauthorized
const DeletePolicyBadRequestCode int = 400
DeletePolicyBadRequestCode is the HTTP code returned for type DeletePolicyBadRequest
const DeletePolicyForbiddenCode int = 403
DeletePolicyForbiddenCode is the HTTP code returned for type DeletePolicyForbidden
const DeletePolicyNotFoundCode int = 404
DeletePolicyNotFoundCode is the HTTP code returned for type DeletePolicyNotFound
const DeletePolicyOKCode int = 200
DeletePolicyOKCode is the HTTP code returned for type DeletePolicyOK
DeletePolicyUnauthorizedCode is the HTTP code returned for type DeletePolicyUnauthorized
const GetPoliciesForbiddenCode int = 403
GetPoliciesForbiddenCode is the HTTP code returned for type GetPoliciesForbidden
const GetPoliciesOKCode int = 200
GetPoliciesOKCode is the HTTP code returned for type GetPoliciesOK
GetPoliciesUnauthorizedCode is the HTTP code returned for type GetPoliciesUnauthorized
const GetPolicyBadRequestCode int = 400
GetPolicyBadRequestCode is the HTTP code returned for type GetPolicyBadRequest
const GetPolicyForbiddenCode int = 403
GetPolicyForbiddenCode is the HTTP code returned for type GetPolicyForbidden
const GetPolicyNotFoundCode int = 404
GetPolicyNotFoundCode is the HTTP code returned for type GetPolicyNotFound
const GetPolicyOKCode int = 200
GetPolicyOKCode is the HTTP code returned for type GetPolicyOK
GetPolicyUnauthorizedCode is the HTTP code returned for type GetPolicyUnauthorized
const UpdatePolicyBadRequestCode int = 400
UpdatePolicyBadRequestCode is the HTTP code returned for type UpdatePolicyBadRequest
const UpdatePolicyForbiddenCode int = 403
UpdatePolicyForbiddenCode is the HTTP code returned for type UpdatePolicyForbidden
const UpdatePolicyNotFoundCode int = 404
UpdatePolicyNotFoundCode is the HTTP code returned for type UpdatePolicyNotFound
const UpdatePolicyOKCode int = 200
UpdatePolicyOKCode is the HTTP code returned for type UpdatePolicyOK
UpdatePolicyUnauthorizedCode is the HTTP code returned for type UpdatePolicyUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPolicy ¶
type AddPolicy struct { Context *middleware.Context Handler AddPolicyHandler }
AddPolicy swagger:route POST /v1/iam/policy policy addPolicy
Add a new policy
func NewAddPolicy ¶
func NewAddPolicy(ctx *middleware.Context, handler AddPolicyHandler) *AddPolicy
NewAddPolicy creates a new http.Handler for the add policy operation
type AddPolicyBadRequest ¶
AddPolicyBadRequest Invalid input
swagger:response addPolicyBadRequest
func NewAddPolicyBadRequest ¶
func NewAddPolicyBadRequest() *AddPolicyBadRequest
NewAddPolicyBadRequest creates AddPolicyBadRequest with default headers values
func (*AddPolicyBadRequest) SetPayload ¶
func (o *AddPolicyBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add policy bad request response
func (*AddPolicyBadRequest) WithPayload ¶
func (o *AddPolicyBadRequest) WithPayload(payload *v1.Error) *AddPolicyBadRequest
WithPayload adds the payload to the add policy bad request response
func (*AddPolicyBadRequest) WriteResponse ¶
func (o *AddPolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPolicyConflict ¶
AddPolicyConflict Already Exists
swagger:response addPolicyConflict
func NewAddPolicyConflict ¶
func NewAddPolicyConflict() *AddPolicyConflict
NewAddPolicyConflict creates AddPolicyConflict with default headers values
func (*AddPolicyConflict) SetPayload ¶
func (o *AddPolicyConflict) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add policy conflict response
func (*AddPolicyConflict) WithPayload ¶
func (o *AddPolicyConflict) WithPayload(payload *v1.Error) *AddPolicyConflict
WithPayload adds the payload to the add policy conflict response
func (*AddPolicyConflict) WriteResponse ¶
func (o *AddPolicyConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPolicyCreated ¶
AddPolicyCreated created
swagger:response addPolicyCreated
func NewAddPolicyCreated ¶
func NewAddPolicyCreated() *AddPolicyCreated
NewAddPolicyCreated creates AddPolicyCreated with default headers values
func (*AddPolicyCreated) SetPayload ¶
func (o *AddPolicyCreated) SetPayload(payload *v1.Policy)
SetPayload sets the payload to the add policy created response
func (*AddPolicyCreated) WithPayload ¶
func (o *AddPolicyCreated) WithPayload(payload *v1.Policy) *AddPolicyCreated
WithPayload adds the payload to the add policy created response
func (*AddPolicyCreated) WriteResponse ¶
func (o *AddPolicyCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPolicyDefault ¶
type AddPolicyDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
AddPolicyDefault Generic error response
swagger:response addPolicyDefault
func NewAddPolicyDefault ¶
func NewAddPolicyDefault(code int) *AddPolicyDefault
NewAddPolicyDefault creates AddPolicyDefault with default headers values
func (*AddPolicyDefault) SetPayload ¶
func (o *AddPolicyDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add policy default response
func (*AddPolicyDefault) SetStatusCode ¶
func (o *AddPolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the add policy default response
func (*AddPolicyDefault) WithPayload ¶
func (o *AddPolicyDefault) WithPayload(payload *v1.Error) *AddPolicyDefault
WithPayload adds the payload to the add policy default response
func (*AddPolicyDefault) WithStatusCode ¶
func (o *AddPolicyDefault) WithStatusCode(code int) *AddPolicyDefault
WithStatusCode adds the status to the add policy default response
func (*AddPolicyDefault) WriteResponse ¶
func (o *AddPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPolicyForbidden ¶ added in v0.1.18
AddPolicyForbidden access to this resource is forbidden
swagger:response addPolicyForbidden
func NewAddPolicyForbidden ¶ added in v0.1.18
func NewAddPolicyForbidden() *AddPolicyForbidden
NewAddPolicyForbidden creates AddPolicyForbidden with default headers values
func (*AddPolicyForbidden) SetPayload ¶ added in v0.1.18
func (o *AddPolicyForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add policy forbidden response
func (*AddPolicyForbidden) WithPayload ¶ added in v0.1.18
func (o *AddPolicyForbidden) WithPayload(payload *v1.Error) *AddPolicyForbidden
WithPayload adds the payload to the add policy forbidden response
func (*AddPolicyForbidden) WriteResponse ¶ added in v0.1.18
func (o *AddPolicyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPolicyHandler ¶
type AddPolicyHandler interface {
Handle(AddPolicyParams, interface{}) middleware.Responder
}
AddPolicyHandler interface for that can handle valid add policy params
type AddPolicyHandlerFunc ¶
type AddPolicyHandlerFunc func(AddPolicyParams, interface{}) middleware.Responder
AddPolicyHandlerFunc turns a function with the right signature into a add policy handler
func (AddPolicyHandlerFunc) Handle ¶
func (fn AddPolicyHandlerFunc) Handle(params AddPolicyParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type AddPolicyParams ¶
type AddPolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: header */ XDispatchOrg string /*Policy Object Required: true In: body */ Body *v1.Policy }
AddPolicyParams contains all the bound params for the add policy operation typically these are obtained from a http.Request
swagger:parameters addPolicy
func NewAddPolicyParams ¶
func NewAddPolicyParams() AddPolicyParams
NewAddPolicyParams creates a new AddPolicyParams object no default values defined in spec.
func (*AddPolicyParams) BindRequest ¶
func (o *AddPolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddPolicyParams() beforehand.
type AddPolicyURL ¶
type AddPolicyURL struct {
// contains filtered or unexported fields
}
AddPolicyURL generates an URL for the add policy operation
func (*AddPolicyURL) Build ¶
func (o *AddPolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddPolicyURL) BuildFull ¶
func (o *AddPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddPolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddPolicyURL) SetBasePath ¶
func (o *AddPolicyURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddPolicyURL) String ¶
func (o *AddPolicyURL) String() string
String returns the string representation of the path with query string
func (*AddPolicyURL) StringFull ¶
func (o *AddPolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddPolicyURL) WithBasePath ¶
func (o *AddPolicyURL) WithBasePath(bp string) *AddPolicyURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AddPolicyUnauthorized ¶ added in v0.1.18
AddPolicyUnauthorized Unauthorized Request
swagger:response addPolicyUnauthorized
func NewAddPolicyUnauthorized ¶ added in v0.1.18
func NewAddPolicyUnauthorized() *AddPolicyUnauthorized
NewAddPolicyUnauthorized creates AddPolicyUnauthorized with default headers values
func (*AddPolicyUnauthorized) SetPayload ¶ added in v0.1.18
func (o *AddPolicyUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the add policy unauthorized response
func (*AddPolicyUnauthorized) WithPayload ¶ added in v0.1.18
func (o *AddPolicyUnauthorized) WithPayload(payload *v1.Error) *AddPolicyUnauthorized
WithPayload adds the payload to the add policy unauthorized response
func (*AddPolicyUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *AddPolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePolicy ¶
type DeletePolicy struct { Context *middleware.Context Handler DeletePolicyHandler }
DeletePolicy swagger:route DELETE /v1/iam/policy/{policyName} policy deletePolicy
Deletes an Policy
func NewDeletePolicy ¶
func NewDeletePolicy(ctx *middleware.Context, handler DeletePolicyHandler) *DeletePolicy
NewDeletePolicy creates a new http.Handler for the delete policy operation
func (*DeletePolicy) ServeHTTP ¶
func (o *DeletePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeletePolicyBadRequest ¶
DeletePolicyBadRequest Invalid Name supplied
swagger:response deletePolicyBadRequest
func NewDeletePolicyBadRequest ¶
func NewDeletePolicyBadRequest() *DeletePolicyBadRequest
NewDeletePolicyBadRequest creates DeletePolicyBadRequest with default headers values
func (*DeletePolicyBadRequest) SetPayload ¶
func (o *DeletePolicyBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete policy bad request response
func (*DeletePolicyBadRequest) WithPayload ¶
func (o *DeletePolicyBadRequest) WithPayload(payload *v1.Error) *DeletePolicyBadRequest
WithPayload adds the payload to the delete policy bad request response
func (*DeletePolicyBadRequest) WriteResponse ¶
func (o *DeletePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePolicyDefault ¶ added in v0.1.18
type DeletePolicyDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeletePolicyDefault Unknown error
swagger:response deletePolicyDefault
func NewDeletePolicyDefault ¶ added in v0.1.18
func NewDeletePolicyDefault(code int) *DeletePolicyDefault
NewDeletePolicyDefault creates DeletePolicyDefault with default headers values
func (*DeletePolicyDefault) SetPayload ¶ added in v0.1.18
func (o *DeletePolicyDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete policy default response
func (*DeletePolicyDefault) SetStatusCode ¶ added in v0.1.18
func (o *DeletePolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete policy default response
func (*DeletePolicyDefault) WithPayload ¶ added in v0.1.18
func (o *DeletePolicyDefault) WithPayload(payload *v1.Error) *DeletePolicyDefault
WithPayload adds the payload to the delete policy default response
func (*DeletePolicyDefault) WithStatusCode ¶ added in v0.1.18
func (o *DeletePolicyDefault) WithStatusCode(code int) *DeletePolicyDefault
WithStatusCode adds the status to the delete policy default response
func (*DeletePolicyDefault) WriteResponse ¶ added in v0.1.18
func (o *DeletePolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePolicyForbidden ¶ added in v0.1.18
DeletePolicyForbidden access to this resource is forbidden
swagger:response deletePolicyForbidden
func NewDeletePolicyForbidden ¶ added in v0.1.18
func NewDeletePolicyForbidden() *DeletePolicyForbidden
NewDeletePolicyForbidden creates DeletePolicyForbidden with default headers values
func (*DeletePolicyForbidden) SetPayload ¶ added in v0.1.18
func (o *DeletePolicyForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete policy forbidden response
func (*DeletePolicyForbidden) WithPayload ¶ added in v0.1.18
func (o *DeletePolicyForbidden) WithPayload(payload *v1.Error) *DeletePolicyForbidden
WithPayload adds the payload to the delete policy forbidden response
func (*DeletePolicyForbidden) WriteResponse ¶ added in v0.1.18
func (o *DeletePolicyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePolicyHandler ¶
type DeletePolicyHandler interface {
Handle(DeletePolicyParams, interface{}) middleware.Responder
}
DeletePolicyHandler interface for that can handle valid delete policy params
type DeletePolicyHandlerFunc ¶
type DeletePolicyHandlerFunc func(DeletePolicyParams, interface{}) middleware.Responder
DeletePolicyHandlerFunc turns a function with the right signature into a delete policy handler
func (DeletePolicyHandlerFunc) Handle ¶
func (fn DeletePolicyHandlerFunc) Handle(params DeletePolicyParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeletePolicyNotFound ¶
DeletePolicyNotFound Policy not found
swagger:response deletePolicyNotFound
func NewDeletePolicyNotFound ¶
func NewDeletePolicyNotFound() *DeletePolicyNotFound
NewDeletePolicyNotFound creates DeletePolicyNotFound with default headers values
func (*DeletePolicyNotFound) SetPayload ¶
func (o *DeletePolicyNotFound) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete policy not found response
func (*DeletePolicyNotFound) WithPayload ¶
func (o *DeletePolicyNotFound) WithPayload(payload *v1.Error) *DeletePolicyNotFound
WithPayload adds the payload to the delete policy not found response
func (*DeletePolicyNotFound) WriteResponse ¶
func (o *DeletePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePolicyOK ¶
DeletePolicyOK Successful operation
swagger:response deletePolicyOK
func NewDeletePolicyOK ¶
func NewDeletePolicyOK() *DeletePolicyOK
NewDeletePolicyOK creates DeletePolicyOK with default headers values
func (*DeletePolicyOK) SetPayload ¶
func (o *DeletePolicyOK) SetPayload(payload *v1.Policy)
SetPayload sets the payload to the delete policy o k response
func (*DeletePolicyOK) WithPayload ¶
func (o *DeletePolicyOK) WithPayload(payload *v1.Policy) *DeletePolicyOK
WithPayload adds the payload to the delete policy o k response
func (*DeletePolicyOK) WriteResponse ¶
func (o *DeletePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePolicyParams ¶
type DeletePolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: header */ XDispatchOrg string /*Name of Policy to work on Required: true Pattern: ^[\w\d\-]+$ In: path */ PolicyName string }
DeletePolicyParams contains all the bound params for the delete policy operation typically these are obtained from a http.Request
swagger:parameters deletePolicy
func NewDeletePolicyParams ¶
func NewDeletePolicyParams() DeletePolicyParams
NewDeletePolicyParams creates a new DeletePolicyParams object no default values defined in spec.
func (*DeletePolicyParams) BindRequest ¶
func (o *DeletePolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeletePolicyParams() beforehand.
type DeletePolicyURL ¶
type DeletePolicyURL struct { PolicyName string // contains filtered or unexported fields }
DeletePolicyURL generates an URL for the delete policy operation
func (*DeletePolicyURL) Build ¶
func (o *DeletePolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeletePolicyURL) BuildFull ¶
func (o *DeletePolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeletePolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeletePolicyURL) SetBasePath ¶
func (o *DeletePolicyURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeletePolicyURL) String ¶
func (o *DeletePolicyURL) String() string
String returns the string representation of the path with query string
func (*DeletePolicyURL) StringFull ¶
func (o *DeletePolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeletePolicyURL) WithBasePath ¶
func (o *DeletePolicyURL) WithBasePath(bp string) *DeletePolicyURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeletePolicyUnauthorized ¶ added in v0.1.18
DeletePolicyUnauthorized Unauthorized Request
swagger:response deletePolicyUnauthorized
func NewDeletePolicyUnauthorized ¶ added in v0.1.18
func NewDeletePolicyUnauthorized() *DeletePolicyUnauthorized
NewDeletePolicyUnauthorized creates DeletePolicyUnauthorized with default headers values
func (*DeletePolicyUnauthorized) SetPayload ¶ added in v0.1.18
func (o *DeletePolicyUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the delete policy unauthorized response
func (*DeletePolicyUnauthorized) WithPayload ¶ added in v0.1.18
func (o *DeletePolicyUnauthorized) WithPayload(payload *v1.Error) *DeletePolicyUnauthorized
WithPayload adds the payload to the delete policy unauthorized response
func (*DeletePolicyUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *DeletePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicies ¶
type GetPolicies struct { Context *middleware.Context Handler GetPoliciesHandler }
GetPolicies swagger:route GET /v1/iam/policy policy getPolicies
List all existing policies
func NewGetPolicies ¶
func NewGetPolicies(ctx *middleware.Context, handler GetPoliciesHandler) *GetPolicies
NewGetPolicies creates a new http.Handler for the get policies operation
func (*GetPolicies) ServeHTTP ¶
func (o *GetPolicies) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetPoliciesDefault ¶
type GetPoliciesDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetPoliciesDefault Unexpected Error
swagger:response getPoliciesDefault
func NewGetPoliciesDefault ¶
func NewGetPoliciesDefault(code int) *GetPoliciesDefault
NewGetPoliciesDefault creates GetPoliciesDefault with default headers values
func (*GetPoliciesDefault) SetPayload ¶
func (o *GetPoliciesDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get policies default response
func (*GetPoliciesDefault) SetStatusCode ¶
func (o *GetPoliciesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get policies default response
func (*GetPoliciesDefault) WithPayload ¶
func (o *GetPoliciesDefault) WithPayload(payload *v1.Error) *GetPoliciesDefault
WithPayload adds the payload to the get policies default response
func (*GetPoliciesDefault) WithStatusCode ¶
func (o *GetPoliciesDefault) WithStatusCode(code int) *GetPoliciesDefault
WithStatusCode adds the status to the get policies default response
func (*GetPoliciesDefault) WriteResponse ¶
func (o *GetPoliciesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPoliciesForbidden ¶ added in v0.1.18
GetPoliciesForbidden access to this resource is forbidden
swagger:response getPoliciesForbidden
func NewGetPoliciesForbidden ¶ added in v0.1.18
func NewGetPoliciesForbidden() *GetPoliciesForbidden
NewGetPoliciesForbidden creates GetPoliciesForbidden with default headers values
func (*GetPoliciesForbidden) SetPayload ¶ added in v0.1.18
func (o *GetPoliciesForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get policies forbidden response
func (*GetPoliciesForbidden) WithPayload ¶ added in v0.1.18
func (o *GetPoliciesForbidden) WithPayload(payload *v1.Error) *GetPoliciesForbidden
WithPayload adds the payload to the get policies forbidden response
func (*GetPoliciesForbidden) WriteResponse ¶ added in v0.1.18
func (o *GetPoliciesForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPoliciesHandler ¶
type GetPoliciesHandler interface {
Handle(GetPoliciesParams, interface{}) middleware.Responder
}
GetPoliciesHandler interface for that can handle valid get policies params
type GetPoliciesHandlerFunc ¶
type GetPoliciesHandlerFunc func(GetPoliciesParams, interface{}) middleware.Responder
GetPoliciesHandlerFunc turns a function with the right signature into a get policies handler
func (GetPoliciesHandlerFunc) Handle ¶
func (fn GetPoliciesHandlerFunc) Handle(params GetPoliciesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetPoliciesOK ¶
GetPoliciesOK Successful operation
swagger:response getPoliciesOK
func NewGetPoliciesOK ¶
func NewGetPoliciesOK() *GetPoliciesOK
NewGetPoliciesOK creates GetPoliciesOK with default headers values
func (*GetPoliciesOK) SetPayload ¶
func (o *GetPoliciesOK) SetPayload(payload []*v1.Policy)
SetPayload sets the payload to the get policies o k response
func (*GetPoliciesOK) WithPayload ¶
func (o *GetPoliciesOK) WithPayload(payload []*v1.Policy) *GetPoliciesOK
WithPayload adds the payload to the get policies o k response
func (*GetPoliciesOK) WriteResponse ¶
func (o *GetPoliciesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPoliciesParams ¶
type GetPoliciesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: header */ XDispatchOrg string }
GetPoliciesParams contains all the bound params for the get policies operation typically these are obtained from a http.Request
swagger:parameters getPolicies
func NewGetPoliciesParams ¶
func NewGetPoliciesParams() GetPoliciesParams
NewGetPoliciesParams creates a new GetPoliciesParams object no default values defined in spec.
func (*GetPoliciesParams) BindRequest ¶
func (o *GetPoliciesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetPoliciesParams() beforehand.
type GetPoliciesURL ¶
type GetPoliciesURL struct {
// contains filtered or unexported fields
}
GetPoliciesURL generates an URL for the get policies operation
func (*GetPoliciesURL) Build ¶
func (o *GetPoliciesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetPoliciesURL) BuildFull ¶
func (o *GetPoliciesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetPoliciesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetPoliciesURL) SetBasePath ¶
func (o *GetPoliciesURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetPoliciesURL) String ¶
func (o *GetPoliciesURL) String() string
String returns the string representation of the path with query string
func (*GetPoliciesURL) StringFull ¶
func (o *GetPoliciesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetPoliciesURL) WithBasePath ¶
func (o *GetPoliciesURL) WithBasePath(bp string) *GetPoliciesURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetPoliciesUnauthorized ¶ added in v0.1.18
GetPoliciesUnauthorized Unauthorized Request
swagger:response getPoliciesUnauthorized
func NewGetPoliciesUnauthorized ¶ added in v0.1.18
func NewGetPoliciesUnauthorized() *GetPoliciesUnauthorized
NewGetPoliciesUnauthorized creates GetPoliciesUnauthorized with default headers values
func (*GetPoliciesUnauthorized) SetPayload ¶ added in v0.1.18
func (o *GetPoliciesUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get policies unauthorized response
func (*GetPoliciesUnauthorized) WithPayload ¶ added in v0.1.18
func (o *GetPoliciesUnauthorized) WithPayload(payload *v1.Error) *GetPoliciesUnauthorized
WithPayload adds the payload to the get policies unauthorized response
func (*GetPoliciesUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *GetPoliciesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicy ¶
type GetPolicy struct { Context *middleware.Context Handler GetPolicyHandler }
GetPolicy swagger:route GET /v1/iam/policy/{policyName} policy getPolicy
Find Policy by name ¶
get an Policy by name
func NewGetPolicy ¶
func NewGetPolicy(ctx *middleware.Context, handler GetPolicyHandler) *GetPolicy
NewGetPolicy creates a new http.Handler for the get policy operation
type GetPolicyBadRequest ¶
GetPolicyBadRequest Invalid Name supplied
swagger:response getPolicyBadRequest
func NewGetPolicyBadRequest ¶
func NewGetPolicyBadRequest() *GetPolicyBadRequest
NewGetPolicyBadRequest creates GetPolicyBadRequest with default headers values
func (*GetPolicyBadRequest) SetPayload ¶
func (o *GetPolicyBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get policy bad request response
func (*GetPolicyBadRequest) WithPayload ¶
func (o *GetPolicyBadRequest) WithPayload(payload *v1.Error) *GetPolicyBadRequest
WithPayload adds the payload to the get policy bad request response
func (*GetPolicyBadRequest) WriteResponse ¶
func (o *GetPolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyDefault ¶ added in v0.1.18
type GetPolicyDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetPolicyDefault Unknown error
swagger:response getPolicyDefault
func NewGetPolicyDefault ¶ added in v0.1.18
func NewGetPolicyDefault(code int) *GetPolicyDefault
NewGetPolicyDefault creates GetPolicyDefault with default headers values
func (*GetPolicyDefault) SetPayload ¶ added in v0.1.18
func (o *GetPolicyDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get policy default response
func (*GetPolicyDefault) SetStatusCode ¶ added in v0.1.18
func (o *GetPolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get policy default response
func (*GetPolicyDefault) WithPayload ¶ added in v0.1.18
func (o *GetPolicyDefault) WithPayload(payload *v1.Error) *GetPolicyDefault
WithPayload adds the payload to the get policy default response
func (*GetPolicyDefault) WithStatusCode ¶ added in v0.1.18
func (o *GetPolicyDefault) WithStatusCode(code int) *GetPolicyDefault
WithStatusCode adds the status to the get policy default response
func (*GetPolicyDefault) WriteResponse ¶ added in v0.1.18
func (o *GetPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyForbidden ¶ added in v0.1.18
GetPolicyForbidden access to this resource is forbidden
swagger:response getPolicyForbidden
func NewGetPolicyForbidden ¶ added in v0.1.18
func NewGetPolicyForbidden() *GetPolicyForbidden
NewGetPolicyForbidden creates GetPolicyForbidden with default headers values
func (*GetPolicyForbidden) SetPayload ¶ added in v0.1.18
func (o *GetPolicyForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get policy forbidden response
func (*GetPolicyForbidden) WithPayload ¶ added in v0.1.18
func (o *GetPolicyForbidden) WithPayload(payload *v1.Error) *GetPolicyForbidden
WithPayload adds the payload to the get policy forbidden response
func (*GetPolicyForbidden) WriteResponse ¶ added in v0.1.18
func (o *GetPolicyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyHandler ¶
type GetPolicyHandler interface {
Handle(GetPolicyParams, interface{}) middleware.Responder
}
GetPolicyHandler interface for that can handle valid get policy params
type GetPolicyHandlerFunc ¶
type GetPolicyHandlerFunc func(GetPolicyParams, interface{}) middleware.Responder
GetPolicyHandlerFunc turns a function with the right signature into a get policy handler
func (GetPolicyHandlerFunc) Handle ¶
func (fn GetPolicyHandlerFunc) Handle(params GetPolicyParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetPolicyNotFound ¶
GetPolicyNotFound Policy not found
swagger:response getPolicyNotFound
func NewGetPolicyNotFound ¶
func NewGetPolicyNotFound() *GetPolicyNotFound
NewGetPolicyNotFound creates GetPolicyNotFound with default headers values
func (*GetPolicyNotFound) SetPayload ¶
func (o *GetPolicyNotFound) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get policy not found response
func (*GetPolicyNotFound) WithPayload ¶
func (o *GetPolicyNotFound) WithPayload(payload *v1.Error) *GetPolicyNotFound
WithPayload adds the payload to the get policy not found response
func (*GetPolicyNotFound) WriteResponse ¶
func (o *GetPolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyOK ¶
GetPolicyOK Successful operation
swagger:response getPolicyOK
func NewGetPolicyOK ¶
func NewGetPolicyOK() *GetPolicyOK
NewGetPolicyOK creates GetPolicyOK with default headers values
func (*GetPolicyOK) SetPayload ¶
func (o *GetPolicyOK) SetPayload(payload *v1.Policy)
SetPayload sets the payload to the get policy o k response
func (*GetPolicyOK) WithPayload ¶
func (o *GetPolicyOK) WithPayload(payload *v1.Policy) *GetPolicyOK
WithPayload adds the payload to the get policy o k response
func (*GetPolicyOK) WriteResponse ¶
func (o *GetPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPolicyParams ¶
type GetPolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: header */ XDispatchOrg string /*Name of Policy to work on Required: true Pattern: ^[\w\d\-]+$ In: path */ PolicyName string }
GetPolicyParams contains all the bound params for the get policy operation typically these are obtained from a http.Request
swagger:parameters getPolicy
func NewGetPolicyParams ¶
func NewGetPolicyParams() GetPolicyParams
NewGetPolicyParams creates a new GetPolicyParams object no default values defined in spec.
func (*GetPolicyParams) BindRequest ¶
func (o *GetPolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetPolicyParams() beforehand.
type GetPolicyURL ¶
type GetPolicyURL struct { PolicyName string // contains filtered or unexported fields }
GetPolicyURL generates an URL for the get policy operation
func (*GetPolicyURL) Build ¶
func (o *GetPolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetPolicyURL) BuildFull ¶
func (o *GetPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetPolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetPolicyURL) SetBasePath ¶
func (o *GetPolicyURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetPolicyURL) String ¶
func (o *GetPolicyURL) String() string
String returns the string representation of the path with query string
func (*GetPolicyURL) StringFull ¶
func (o *GetPolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetPolicyURL) WithBasePath ¶
func (o *GetPolicyURL) WithBasePath(bp string) *GetPolicyURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetPolicyUnauthorized ¶ added in v0.1.18
GetPolicyUnauthorized Unauthorized Request
swagger:response getPolicyUnauthorized
func NewGetPolicyUnauthorized ¶ added in v0.1.18
func NewGetPolicyUnauthorized() *GetPolicyUnauthorized
NewGetPolicyUnauthorized creates GetPolicyUnauthorized with default headers values
func (*GetPolicyUnauthorized) SetPayload ¶ added in v0.1.18
func (o *GetPolicyUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the get policy unauthorized response
func (*GetPolicyUnauthorized) WithPayload ¶ added in v0.1.18
func (o *GetPolicyUnauthorized) WithPayload(payload *v1.Error) *GetPolicyUnauthorized
WithPayload adds the payload to the get policy unauthorized response
func (*GetPolicyUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *GetPolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePolicy ¶
type UpdatePolicy struct { Context *middleware.Context Handler UpdatePolicyHandler }
UpdatePolicy swagger:route PUT /v1/iam/policy/{policyName} policy updatePolicy
Update a Policy
func NewUpdatePolicy ¶
func NewUpdatePolicy(ctx *middleware.Context, handler UpdatePolicyHandler) *UpdatePolicy
NewUpdatePolicy creates a new http.Handler for the update policy operation
func (*UpdatePolicy) ServeHTTP ¶
func (o *UpdatePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdatePolicyBadRequest ¶
UpdatePolicyBadRequest Invalid input
swagger:response updatePolicyBadRequest
func NewUpdatePolicyBadRequest ¶
func NewUpdatePolicyBadRequest() *UpdatePolicyBadRequest
NewUpdatePolicyBadRequest creates UpdatePolicyBadRequest with default headers values
func (*UpdatePolicyBadRequest) SetPayload ¶
func (o *UpdatePolicyBadRequest) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update policy bad request response
func (*UpdatePolicyBadRequest) WithPayload ¶
func (o *UpdatePolicyBadRequest) WithPayload(payload *v1.Error) *UpdatePolicyBadRequest
WithPayload adds the payload to the update policy bad request response
func (*UpdatePolicyBadRequest) WriteResponse ¶
func (o *UpdatePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePolicyDefault ¶ added in v0.1.18
type UpdatePolicyDefault struct { /* In: Body */ Payload *v1.Error `json:"body,omitempty"` // contains filtered or unexported fields }
UpdatePolicyDefault Unknown error
swagger:response updatePolicyDefault
func NewUpdatePolicyDefault ¶ added in v0.1.18
func NewUpdatePolicyDefault(code int) *UpdatePolicyDefault
NewUpdatePolicyDefault creates UpdatePolicyDefault with default headers values
func (*UpdatePolicyDefault) SetPayload ¶ added in v0.1.18
func (o *UpdatePolicyDefault) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update policy default response
func (*UpdatePolicyDefault) SetStatusCode ¶ added in v0.1.18
func (o *UpdatePolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the update policy default response
func (*UpdatePolicyDefault) WithPayload ¶ added in v0.1.18
func (o *UpdatePolicyDefault) WithPayload(payload *v1.Error) *UpdatePolicyDefault
WithPayload adds the payload to the update policy default response
func (*UpdatePolicyDefault) WithStatusCode ¶ added in v0.1.18
func (o *UpdatePolicyDefault) WithStatusCode(code int) *UpdatePolicyDefault
WithStatusCode adds the status to the update policy default response
func (*UpdatePolicyDefault) WriteResponse ¶ added in v0.1.18
func (o *UpdatePolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePolicyForbidden ¶ added in v0.1.18
UpdatePolicyForbidden access to this resource is forbidden
swagger:response updatePolicyForbidden
func NewUpdatePolicyForbidden ¶ added in v0.1.18
func NewUpdatePolicyForbidden() *UpdatePolicyForbidden
NewUpdatePolicyForbidden creates UpdatePolicyForbidden with default headers values
func (*UpdatePolicyForbidden) SetPayload ¶ added in v0.1.18
func (o *UpdatePolicyForbidden) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update policy forbidden response
func (*UpdatePolicyForbidden) WithPayload ¶ added in v0.1.18
func (o *UpdatePolicyForbidden) WithPayload(payload *v1.Error) *UpdatePolicyForbidden
WithPayload adds the payload to the update policy forbidden response
func (*UpdatePolicyForbidden) WriteResponse ¶ added in v0.1.18
func (o *UpdatePolicyForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePolicyHandler ¶
type UpdatePolicyHandler interface {
Handle(UpdatePolicyParams, interface{}) middleware.Responder
}
UpdatePolicyHandler interface for that can handle valid update policy params
type UpdatePolicyHandlerFunc ¶
type UpdatePolicyHandlerFunc func(UpdatePolicyParams, interface{}) middleware.Responder
UpdatePolicyHandlerFunc turns a function with the right signature into a update policy handler
func (UpdatePolicyHandlerFunc) Handle ¶
func (fn UpdatePolicyHandlerFunc) Handle(params UpdatePolicyParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type UpdatePolicyNotFound ¶
UpdatePolicyNotFound Policy not found
swagger:response updatePolicyNotFound
func NewUpdatePolicyNotFound ¶
func NewUpdatePolicyNotFound() *UpdatePolicyNotFound
NewUpdatePolicyNotFound creates UpdatePolicyNotFound with default headers values
func (*UpdatePolicyNotFound) SetPayload ¶
func (o *UpdatePolicyNotFound) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update policy not found response
func (*UpdatePolicyNotFound) WithPayload ¶
func (o *UpdatePolicyNotFound) WithPayload(payload *v1.Error) *UpdatePolicyNotFound
WithPayload adds the payload to the update policy not found response
func (*UpdatePolicyNotFound) WriteResponse ¶
func (o *UpdatePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePolicyOK ¶
UpdatePolicyOK Successful update
swagger:response updatePolicyOK
func NewUpdatePolicyOK ¶
func NewUpdatePolicyOK() *UpdatePolicyOK
NewUpdatePolicyOK creates UpdatePolicyOK with default headers values
func (*UpdatePolicyOK) SetPayload ¶
func (o *UpdatePolicyOK) SetPayload(payload *v1.Policy)
SetPayload sets the payload to the update policy o k response
func (*UpdatePolicyOK) WithPayload ¶
func (o *UpdatePolicyOK) WithPayload(payload *v1.Policy) *UpdatePolicyOK
WithPayload adds the payload to the update policy o k response
func (*UpdatePolicyOK) WriteResponse ¶
func (o *UpdatePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePolicyParams ¶
type UpdatePolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: header */ XDispatchOrg string /*Policy object Required: true In: body */ Body *v1.Policy /*Name of Policy to work on Required: true Pattern: ^[\w\d\-]+$ In: path */ PolicyName string }
UpdatePolicyParams contains all the bound params for the update policy operation typically these are obtained from a http.Request
swagger:parameters updatePolicy
func NewUpdatePolicyParams ¶
func NewUpdatePolicyParams() UpdatePolicyParams
NewUpdatePolicyParams creates a new UpdatePolicyParams object no default values defined in spec.
func (*UpdatePolicyParams) BindRequest ¶
func (o *UpdatePolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewUpdatePolicyParams() beforehand.
type UpdatePolicyURL ¶
type UpdatePolicyURL struct { PolicyName string // contains filtered or unexported fields }
UpdatePolicyURL generates an URL for the update policy operation
func (*UpdatePolicyURL) Build ¶
func (o *UpdatePolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdatePolicyURL) BuildFull ¶
func (o *UpdatePolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdatePolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdatePolicyURL) SetBasePath ¶
func (o *UpdatePolicyURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*UpdatePolicyURL) String ¶
func (o *UpdatePolicyURL) String() string
String returns the string representation of the path with query string
func (*UpdatePolicyURL) StringFull ¶
func (o *UpdatePolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdatePolicyURL) WithBasePath ¶
func (o *UpdatePolicyURL) WithBasePath(bp string) *UpdatePolicyURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type UpdatePolicyUnauthorized ¶ added in v0.1.18
UpdatePolicyUnauthorized Unauthorized Request
swagger:response updatePolicyUnauthorized
func NewUpdatePolicyUnauthorized ¶ added in v0.1.18
func NewUpdatePolicyUnauthorized() *UpdatePolicyUnauthorized
NewUpdatePolicyUnauthorized creates UpdatePolicyUnauthorized with default headers values
func (*UpdatePolicyUnauthorized) SetPayload ¶ added in v0.1.18
func (o *UpdatePolicyUnauthorized) SetPayload(payload *v1.Error)
SetPayload sets the payload to the update policy unauthorized response
func (*UpdatePolicyUnauthorized) WithPayload ¶ added in v0.1.18
func (o *UpdatePolicyUnauthorized) WithPayload(payload *v1.Error) *UpdatePolicyUnauthorized
WithPayload adds the payload to the update policy unauthorized response
func (*UpdatePolicyUnauthorized) WriteResponse ¶ added in v0.1.18
func (o *UpdatePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- add_policy.go
- add_policy_parameters.go
- add_policy_responses.go
- add_policy_urlbuilder.go
- delete_policy.go
- delete_policy_parameters.go
- delete_policy_responses.go
- delete_policy_urlbuilder.go
- get_policies.go
- get_policies_parameters.go
- get_policies_responses.go
- get_policies_urlbuilder.go
- get_policy.go
- get_policy_parameters.go
- get_policy_responses.go
- get_policy_urlbuilder.go
- update_policy.go
- update_policy_parameters.go
- update_policy_responses.go
- update_policy_urlbuilder.go