Documentation ¶
Index ¶
- Constants
- type AddPolicy
- type AddPolicyCreated
- type AddPolicyDefault
- func (o *AddPolicyDefault) SetPayload(payload *models.Error)
- func (o *AddPolicyDefault) SetStatusCode(code int)
- func (o *AddPolicyDefault) WithPayload(payload *models.Error) *AddPolicyDefault
- func (o *AddPolicyDefault) WithStatusCode(code int) *AddPolicyDefault
- func (o *AddPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- 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 GetSAUserPolicy
- type GetSAUserPolicyDefault
- func (o *GetSAUserPolicyDefault) SetPayload(payload *models.Error)
- func (o *GetSAUserPolicyDefault) SetStatusCode(code int)
- func (o *GetSAUserPolicyDefault) WithPayload(payload *models.Error) *GetSAUserPolicyDefault
- func (o *GetSAUserPolicyDefault) WithStatusCode(code int) *GetSAUserPolicyDefault
- func (o *GetSAUserPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSAUserPolicyHandler
- type GetSAUserPolicyHandlerFunc
- type GetSAUserPolicyOK
- type GetSAUserPolicyParams
- type GetSAUserPolicyURL
- func (o *GetSAUserPolicyURL) Build() (*url.URL, error)
- func (o *GetSAUserPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSAUserPolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSAUserPolicyURL) SetBasePath(bp string)
- func (o *GetSAUserPolicyURL) String() string
- func (o *GetSAUserPolicyURL) StringFull(scheme, host string) string
- func (o *GetSAUserPolicyURL) WithBasePath(bp string) *GetSAUserPolicyURL
- type GetUserPolicy
- type GetUserPolicyDefault
- func (o *GetUserPolicyDefault) SetPayload(payload *models.Error)
- func (o *GetUserPolicyDefault) SetStatusCode(code int)
- func (o *GetUserPolicyDefault) WithPayload(payload *models.Error) *GetUserPolicyDefault
- func (o *GetUserPolicyDefault) WithStatusCode(code int) *GetUserPolicyDefault
- func (o *GetUserPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUserPolicyHandler
- type GetUserPolicyHandlerFunc
- type GetUserPolicyOK
- type GetUserPolicyParams
- type GetUserPolicyURL
- func (o *GetUserPolicyURL) Build() (*url.URL, error)
- func (o *GetUserPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUserPolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUserPolicyURL) SetBasePath(bp string)
- func (o *GetUserPolicyURL) String() string
- func (o *GetUserPolicyURL) StringFull(scheme, host string) string
- func (o *GetUserPolicyURL) WithBasePath(bp string) *GetUserPolicyURL
- type ListGroupsForPolicy
- type ListGroupsForPolicyDefault
- func (o *ListGroupsForPolicyDefault) SetPayload(payload *models.Error)
- func (o *ListGroupsForPolicyDefault) SetStatusCode(code int)
- func (o *ListGroupsForPolicyDefault) WithPayload(payload *models.Error) *ListGroupsForPolicyDefault
- func (o *ListGroupsForPolicyDefault) WithStatusCode(code int) *ListGroupsForPolicyDefault
- func (o *ListGroupsForPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListGroupsForPolicyHandler
- type ListGroupsForPolicyHandlerFunc
- type ListGroupsForPolicyOK
- type ListGroupsForPolicyParams
- type ListGroupsForPolicyURL
- func (o *ListGroupsForPolicyURL) Build() (*url.URL, error)
- func (o *ListGroupsForPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListGroupsForPolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *ListGroupsForPolicyURL) SetBasePath(bp string)
- func (o *ListGroupsForPolicyURL) String() string
- func (o *ListGroupsForPolicyURL) StringFull(scheme, host string) string
- func (o *ListGroupsForPolicyURL) WithBasePath(bp string) *ListGroupsForPolicyURL
- type ListPolicies
- type ListPoliciesDefault
- func (o *ListPoliciesDefault) SetPayload(payload *models.Error)
- func (o *ListPoliciesDefault) SetStatusCode(code int)
- func (o *ListPoliciesDefault) WithPayload(payload *models.Error) *ListPoliciesDefault
- func (o *ListPoliciesDefault) WithStatusCode(code int) *ListPoliciesDefault
- func (o *ListPoliciesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListPoliciesHandler
- type ListPoliciesHandlerFunc
- type ListPoliciesOK
- type ListPoliciesParams
- type ListPoliciesURL
- func (o *ListPoliciesURL) Build() (*url.URL, error)
- func (o *ListPoliciesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListPoliciesURL) Must(u *url.URL, err error) *url.URL
- func (o *ListPoliciesURL) SetBasePath(bp string)
- func (o *ListPoliciesURL) String() string
- func (o *ListPoliciesURL) StringFull(scheme, host string) string
- func (o *ListPoliciesURL) WithBasePath(bp string) *ListPoliciesURL
- type ListUsersForPolicy
- type ListUsersForPolicyDefault
- func (o *ListUsersForPolicyDefault) SetPayload(payload *models.Error)
- func (o *ListUsersForPolicyDefault) SetStatusCode(code int)
- func (o *ListUsersForPolicyDefault) WithPayload(payload *models.Error) *ListUsersForPolicyDefault
- func (o *ListUsersForPolicyDefault) WithStatusCode(code int) *ListUsersForPolicyDefault
- func (o *ListUsersForPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListUsersForPolicyHandler
- type ListUsersForPolicyHandlerFunc
- type ListUsersForPolicyOK
- type ListUsersForPolicyParams
- type ListUsersForPolicyURL
- func (o *ListUsersForPolicyURL) Build() (*url.URL, error)
- func (o *ListUsersForPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListUsersForPolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *ListUsersForPolicyURL) SetBasePath(bp string)
- func (o *ListUsersForPolicyURL) String() string
- func (o *ListUsersForPolicyURL) StringFull(scheme, host string) string
- func (o *ListUsersForPolicyURL) WithBasePath(bp string) *ListUsersForPolicyURL
- type PolicyInfo
- type PolicyInfoDefault
- func (o *PolicyInfoDefault) SetPayload(payload *models.Error)
- func (o *PolicyInfoDefault) SetStatusCode(code int)
- func (o *PolicyInfoDefault) WithPayload(payload *models.Error) *PolicyInfoDefault
- func (o *PolicyInfoDefault) WithStatusCode(code int) *PolicyInfoDefault
- func (o *PolicyInfoDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PolicyInfoHandler
- type PolicyInfoHandlerFunc
- type PolicyInfoOK
- type PolicyInfoParams
- type PolicyInfoURL
- func (o *PolicyInfoURL) Build() (*url.URL, error)
- func (o *PolicyInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PolicyInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *PolicyInfoURL) SetBasePath(bp string)
- func (o *PolicyInfoURL) String() string
- func (o *PolicyInfoURL) StringFull(scheme, host string) string
- func (o *PolicyInfoURL) WithBasePath(bp string) *PolicyInfoURL
- type RemovePolicy
- type RemovePolicyDefault
- func (o *RemovePolicyDefault) SetPayload(payload *models.Error)
- func (o *RemovePolicyDefault) SetStatusCode(code int)
- func (o *RemovePolicyDefault) WithPayload(payload *models.Error) *RemovePolicyDefault
- func (o *RemovePolicyDefault) WithStatusCode(code int) *RemovePolicyDefault
- func (o *RemovePolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RemovePolicyHandler
- type RemovePolicyHandlerFunc
- type RemovePolicyNoContent
- type RemovePolicyParams
- type RemovePolicyURL
- func (o *RemovePolicyURL) Build() (*url.URL, error)
- func (o *RemovePolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemovePolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *RemovePolicyURL) SetBasePath(bp string)
- func (o *RemovePolicyURL) String() string
- func (o *RemovePolicyURL) StringFull(scheme, host string) string
- func (o *RemovePolicyURL) WithBasePath(bp string) *RemovePolicyURL
- type SetPolicy
- type SetPolicyDefault
- func (o *SetPolicyDefault) SetPayload(payload *models.Error)
- func (o *SetPolicyDefault) SetStatusCode(code int)
- func (o *SetPolicyDefault) WithPayload(payload *models.Error) *SetPolicyDefault
- func (o *SetPolicyDefault) WithStatusCode(code int) *SetPolicyDefault
- func (o *SetPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SetPolicyHandler
- type SetPolicyHandlerFunc
- type SetPolicyMultiple
- type SetPolicyMultipleDefault
- func (o *SetPolicyMultipleDefault) SetPayload(payload *models.Error)
- func (o *SetPolicyMultipleDefault) SetStatusCode(code int)
- func (o *SetPolicyMultipleDefault) WithPayload(payload *models.Error) *SetPolicyMultipleDefault
- func (o *SetPolicyMultipleDefault) WithStatusCode(code int) *SetPolicyMultipleDefault
- func (o *SetPolicyMultipleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SetPolicyMultipleHandler
- type SetPolicyMultipleHandlerFunc
- type SetPolicyMultipleNoContent
- type SetPolicyMultipleParams
- type SetPolicyMultipleURL
- func (o *SetPolicyMultipleURL) Build() (*url.URL, error)
- func (o *SetPolicyMultipleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SetPolicyMultipleURL) Must(u *url.URL, err error) *url.URL
- func (o *SetPolicyMultipleURL) SetBasePath(bp string)
- func (o *SetPolicyMultipleURL) String() string
- func (o *SetPolicyMultipleURL) StringFull(scheme, host string) string
- func (o *SetPolicyMultipleURL) WithBasePath(bp string) *SetPolicyMultipleURL
- type SetPolicyNoContent
- type SetPolicyParams
- type SetPolicyURL
- func (o *SetPolicyURL) Build() (*url.URL, error)
- func (o *SetPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SetPolicyURL) Must(u *url.URL, err error) *url.URL
- func (o *SetPolicyURL) SetBasePath(bp string)
- func (o *SetPolicyURL) String() string
- func (o *SetPolicyURL) StringFull(scheme, host string) string
- func (o *SetPolicyURL) WithBasePath(bp string) *SetPolicyURL
Constants ¶
const AddPolicyCreatedCode int = 201
AddPolicyCreatedCode is the HTTP code returned for type AddPolicyCreated
const GetSAUserPolicyOKCode int = 200
GetSAUserPolicyOKCode is the HTTP code returned for type GetSAUserPolicyOK
const GetUserPolicyOKCode int = 200
GetUserPolicyOKCode is the HTTP code returned for type GetUserPolicyOK
const ListGroupsForPolicyOKCode int = 200
ListGroupsForPolicyOKCode is the HTTP code returned for type ListGroupsForPolicyOK
const ListPoliciesOKCode int = 200
ListPoliciesOKCode is the HTTP code returned for type ListPoliciesOK
const ListUsersForPolicyOKCode int = 200
ListUsersForPolicyOKCode is the HTTP code returned for type ListUsersForPolicyOK
const PolicyInfoOKCode int = 200
PolicyInfoOKCode is the HTTP code returned for type PolicyInfoOK
const RemovePolicyNoContentCode int = 204
RemovePolicyNoContentCode is the HTTP code returned for type RemovePolicyNoContent
const SetPolicyMultipleNoContentCode int = 204
SetPolicyMultipleNoContentCode is the HTTP code returned for type SetPolicyMultipleNoContent
const SetPolicyNoContentCode int = 204
SetPolicyNoContentCode is the HTTP code returned for type SetPolicyNoContent
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 /policies Policy addPolicy
Add Policy
func NewAddPolicy ¶
func NewAddPolicy(ctx *middleware.Context, handler AddPolicyHandler) *AddPolicy
NewAddPolicy creates a new http.Handler for the add policy operation
type AddPolicyCreated ¶
AddPolicyCreated A successful response.
swagger:response addPolicyCreated
func NewAddPolicyCreated ¶
func NewAddPolicyCreated() *AddPolicyCreated
NewAddPolicyCreated creates AddPolicyCreated with default headers values
func (*AddPolicyCreated) SetPayload ¶
func (o *AddPolicyCreated) SetPayload(payload *models.Policy)
SetPayload sets the payload to the add policy created response
func (*AddPolicyCreated) WithPayload ¶
func (o *AddPolicyCreated) WithPayload(payload *models.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 *models.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 *models.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 *models.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 AddPolicyHandler ¶
type AddPolicyHandler interface {
Handle(AddPolicyParams, *models.Principal) middleware.Responder
}
AddPolicyHandler interface for that can handle valid add policy params
type AddPolicyHandlerFunc ¶
type AddPolicyHandlerFunc func(AddPolicyParams, *models.Principal) 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 *models.Principal) 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: body */ Body *models.AddPolicyRequest }
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
There are no default values defined in the 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 GetSAUserPolicy ¶
type GetSAUserPolicy struct { Context *middleware.Context Handler GetSAUserPolicyHandler }
GetSAUserPolicy swagger:route GET /user/{name}/policies Policy getSAUserPolicy
returns policies assigned for a specified user
func NewGetSAUserPolicy ¶
func NewGetSAUserPolicy(ctx *middleware.Context, handler GetSAUserPolicyHandler) *GetSAUserPolicy
NewGetSAUserPolicy creates a new http.Handler for the get s a user policy operation
func (*GetSAUserPolicy) ServeHTTP ¶
func (o *GetSAUserPolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSAUserPolicyDefault ¶
type GetSAUserPolicyDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetSAUserPolicyDefault Generic error response.
swagger:response getSAUserPolicyDefault
func NewGetSAUserPolicyDefault ¶
func NewGetSAUserPolicyDefault(code int) *GetSAUserPolicyDefault
NewGetSAUserPolicyDefault creates GetSAUserPolicyDefault with default headers values
func (*GetSAUserPolicyDefault) SetPayload ¶
func (o *GetSAUserPolicyDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get s a user policy default response
func (*GetSAUserPolicyDefault) SetStatusCode ¶
func (o *GetSAUserPolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get s a user policy default response
func (*GetSAUserPolicyDefault) WithPayload ¶
func (o *GetSAUserPolicyDefault) WithPayload(payload *models.Error) *GetSAUserPolicyDefault
WithPayload adds the payload to the get s a user policy default response
func (*GetSAUserPolicyDefault) WithStatusCode ¶
func (o *GetSAUserPolicyDefault) WithStatusCode(code int) *GetSAUserPolicyDefault
WithStatusCode adds the status to the get s a user policy default response
func (*GetSAUserPolicyDefault) WriteResponse ¶
func (o *GetSAUserPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSAUserPolicyHandler ¶
type GetSAUserPolicyHandler interface {
Handle(GetSAUserPolicyParams, *models.Principal) middleware.Responder
}
GetSAUserPolicyHandler interface for that can handle valid get s a user policy params
type GetSAUserPolicyHandlerFunc ¶
type GetSAUserPolicyHandlerFunc func(GetSAUserPolicyParams, *models.Principal) middleware.Responder
GetSAUserPolicyHandlerFunc turns a function with the right signature into a get s a user policy handler
func (GetSAUserPolicyHandlerFunc) Handle ¶
func (fn GetSAUserPolicyHandlerFunc) Handle(params GetSAUserPolicyParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetSAUserPolicyOK ¶
type GetSAUserPolicyOK struct { /* In: Body */ Payload *models.AUserPolicyResponse `json:"body,omitempty"` }
GetSAUserPolicyOK A successful response.
swagger:response getSAUserPolicyOK
func NewGetSAUserPolicyOK ¶
func NewGetSAUserPolicyOK() *GetSAUserPolicyOK
NewGetSAUserPolicyOK creates GetSAUserPolicyOK with default headers values
func (*GetSAUserPolicyOK) SetPayload ¶
func (o *GetSAUserPolicyOK) SetPayload(payload *models.AUserPolicyResponse)
SetPayload sets the payload to the get s a user policy o k response
func (*GetSAUserPolicyOK) WithPayload ¶
func (o *GetSAUserPolicyOK) WithPayload(payload *models.AUserPolicyResponse) *GetSAUserPolicyOK
WithPayload adds the payload to the get s a user policy o k response
func (*GetSAUserPolicyOK) WriteResponse ¶
func (o *GetSAUserPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSAUserPolicyParams ¶
type GetSAUserPolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Name string }
GetSAUserPolicyParams contains all the bound params for the get s a user policy operation typically these are obtained from a http.Request
swagger:parameters GetSAUserPolicy
func NewGetSAUserPolicyParams ¶
func NewGetSAUserPolicyParams() GetSAUserPolicyParams
NewGetSAUserPolicyParams creates a new GetSAUserPolicyParams object
There are no default values defined in the spec.
func (*GetSAUserPolicyParams) BindRequest ¶
func (o *GetSAUserPolicyParams) 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 NewGetSAUserPolicyParams() beforehand.
type GetSAUserPolicyURL ¶
type GetSAUserPolicyURL struct { Name string // contains filtered or unexported fields }
GetSAUserPolicyURL generates an URL for the get s a user policy operation
func (*GetSAUserPolicyURL) Build ¶
func (o *GetSAUserPolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSAUserPolicyURL) BuildFull ¶
func (o *GetSAUserPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSAUserPolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSAUserPolicyURL) SetBasePath ¶
func (o *GetSAUserPolicyURL) 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 (*GetSAUserPolicyURL) String ¶
func (o *GetSAUserPolicyURL) String() string
String returns the string representation of the path with query string
func (*GetSAUserPolicyURL) StringFull ¶
func (o *GetSAUserPolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSAUserPolicyURL) WithBasePath ¶
func (o *GetSAUserPolicyURL) WithBasePath(bp string) *GetSAUserPolicyURL
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 GetUserPolicy ¶
type GetUserPolicy struct { Context *middleware.Context Handler GetUserPolicyHandler }
GetUserPolicy swagger:route GET /user/policy Policy getUserPolicy
returns policies for logged in user
func NewGetUserPolicy ¶
func NewGetUserPolicy(ctx *middleware.Context, handler GetUserPolicyHandler) *GetUserPolicy
NewGetUserPolicy creates a new http.Handler for the get user policy operation
func (*GetUserPolicy) ServeHTTP ¶
func (o *GetUserPolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUserPolicyDefault ¶
type GetUserPolicyDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetUserPolicyDefault Generic error response.
swagger:response getUserPolicyDefault
func NewGetUserPolicyDefault ¶
func NewGetUserPolicyDefault(code int) *GetUserPolicyDefault
NewGetUserPolicyDefault creates GetUserPolicyDefault with default headers values
func (*GetUserPolicyDefault) SetPayload ¶
func (o *GetUserPolicyDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get user policy default response
func (*GetUserPolicyDefault) SetStatusCode ¶
func (o *GetUserPolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get user policy default response
func (*GetUserPolicyDefault) WithPayload ¶
func (o *GetUserPolicyDefault) WithPayload(payload *models.Error) *GetUserPolicyDefault
WithPayload adds the payload to the get user policy default response
func (*GetUserPolicyDefault) WithStatusCode ¶
func (o *GetUserPolicyDefault) WithStatusCode(code int) *GetUserPolicyDefault
WithStatusCode adds the status to the get user policy default response
func (*GetUserPolicyDefault) WriteResponse ¶
func (o *GetUserPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserPolicyHandler ¶
type GetUserPolicyHandler interface {
Handle(GetUserPolicyParams, *models.Principal) middleware.Responder
}
GetUserPolicyHandler interface for that can handle valid get user policy params
type GetUserPolicyHandlerFunc ¶
type GetUserPolicyHandlerFunc func(GetUserPolicyParams, *models.Principal) middleware.Responder
GetUserPolicyHandlerFunc turns a function with the right signature into a get user policy handler
func (GetUserPolicyHandlerFunc) Handle ¶
func (fn GetUserPolicyHandlerFunc) Handle(params GetUserPolicyParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetUserPolicyOK ¶
type GetUserPolicyOK struct { /* In: Body */ Payload string `json:"body,omitempty"` }
GetUserPolicyOK A successful response.
swagger:response getUserPolicyOK
func NewGetUserPolicyOK ¶
func NewGetUserPolicyOK() *GetUserPolicyOK
NewGetUserPolicyOK creates GetUserPolicyOK with default headers values
func (*GetUserPolicyOK) SetPayload ¶
func (o *GetUserPolicyOK) SetPayload(payload string)
SetPayload sets the payload to the get user policy o k response
func (*GetUserPolicyOK) WithPayload ¶
func (o *GetUserPolicyOK) WithPayload(payload string) *GetUserPolicyOK
WithPayload adds the payload to the get user policy o k response
func (*GetUserPolicyOK) WriteResponse ¶
func (o *GetUserPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserPolicyParams ¶
GetUserPolicyParams contains all the bound params for the get user policy operation typically these are obtained from a http.Request
swagger:parameters GetUserPolicy
func NewGetUserPolicyParams ¶
func NewGetUserPolicyParams() GetUserPolicyParams
NewGetUserPolicyParams creates a new GetUserPolicyParams object
There are no default values defined in the spec.
func (*GetUserPolicyParams) BindRequest ¶
func (o *GetUserPolicyParams) 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 NewGetUserPolicyParams() beforehand.
type GetUserPolicyURL ¶
type GetUserPolicyURL struct {
// contains filtered or unexported fields
}
GetUserPolicyURL generates an URL for the get user policy operation
func (*GetUserPolicyURL) Build ¶
func (o *GetUserPolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUserPolicyURL) BuildFull ¶
func (o *GetUserPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUserPolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUserPolicyURL) SetBasePath ¶
func (o *GetUserPolicyURL) 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 (*GetUserPolicyURL) String ¶
func (o *GetUserPolicyURL) String() string
String returns the string representation of the path with query string
func (*GetUserPolicyURL) StringFull ¶
func (o *GetUserPolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUserPolicyURL) WithBasePath ¶
func (o *GetUserPolicyURL) WithBasePath(bp string) *GetUserPolicyURL
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 ListGroupsForPolicy ¶
type ListGroupsForPolicy struct { Context *middleware.Context Handler ListGroupsForPolicyHandler }
ListGroupsForPolicy swagger:route GET /policies/{policy}/groups Policy listGroupsForPolicy
List Groups for a Policy
func NewListGroupsForPolicy ¶
func NewListGroupsForPolicy(ctx *middleware.Context, handler ListGroupsForPolicyHandler) *ListGroupsForPolicy
NewListGroupsForPolicy creates a new http.Handler for the list groups for policy operation
func (*ListGroupsForPolicy) ServeHTTP ¶
func (o *ListGroupsForPolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListGroupsForPolicyDefault ¶
type ListGroupsForPolicyDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ListGroupsForPolicyDefault Generic error response.
swagger:response listGroupsForPolicyDefault
func NewListGroupsForPolicyDefault ¶
func NewListGroupsForPolicyDefault(code int) *ListGroupsForPolicyDefault
NewListGroupsForPolicyDefault creates ListGroupsForPolicyDefault with default headers values
func (*ListGroupsForPolicyDefault) SetPayload ¶
func (o *ListGroupsForPolicyDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the list groups for policy default response
func (*ListGroupsForPolicyDefault) SetStatusCode ¶
func (o *ListGroupsForPolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the list groups for policy default response
func (*ListGroupsForPolicyDefault) WithPayload ¶
func (o *ListGroupsForPolicyDefault) WithPayload(payload *models.Error) *ListGroupsForPolicyDefault
WithPayload adds the payload to the list groups for policy default response
func (*ListGroupsForPolicyDefault) WithStatusCode ¶
func (o *ListGroupsForPolicyDefault) WithStatusCode(code int) *ListGroupsForPolicyDefault
WithStatusCode adds the status to the list groups for policy default response
func (*ListGroupsForPolicyDefault) WriteResponse ¶
func (o *ListGroupsForPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListGroupsForPolicyHandler ¶
type ListGroupsForPolicyHandler interface {
Handle(ListGroupsForPolicyParams, *models.Principal) middleware.Responder
}
ListGroupsForPolicyHandler interface for that can handle valid list groups for policy params
type ListGroupsForPolicyHandlerFunc ¶
type ListGroupsForPolicyHandlerFunc func(ListGroupsForPolicyParams, *models.Principal) middleware.Responder
ListGroupsForPolicyHandlerFunc turns a function with the right signature into a list groups for policy handler
func (ListGroupsForPolicyHandlerFunc) Handle ¶
func (fn ListGroupsForPolicyHandlerFunc) Handle(params ListGroupsForPolicyParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ListGroupsForPolicyOK ¶
type ListGroupsForPolicyOK struct { /* In: Body */ Payload []string `json:"body,omitempty"` }
ListGroupsForPolicyOK A successful response.
swagger:response listGroupsForPolicyOK
func NewListGroupsForPolicyOK ¶
func NewListGroupsForPolicyOK() *ListGroupsForPolicyOK
NewListGroupsForPolicyOK creates ListGroupsForPolicyOK with default headers values
func (*ListGroupsForPolicyOK) SetPayload ¶
func (o *ListGroupsForPolicyOK) SetPayload(payload []string)
SetPayload sets the payload to the list groups for policy o k response
func (*ListGroupsForPolicyOK) WithPayload ¶
func (o *ListGroupsForPolicyOK) WithPayload(payload []string) *ListGroupsForPolicyOK
WithPayload adds the payload to the list groups for policy o k response
func (*ListGroupsForPolicyOK) WriteResponse ¶
func (o *ListGroupsForPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListGroupsForPolicyParams ¶
type ListGroupsForPolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Policy string }
ListGroupsForPolicyParams contains all the bound params for the list groups for policy operation typically these are obtained from a http.Request
swagger:parameters ListGroupsForPolicy
func NewListGroupsForPolicyParams ¶
func NewListGroupsForPolicyParams() ListGroupsForPolicyParams
NewListGroupsForPolicyParams creates a new ListGroupsForPolicyParams object
There are no default values defined in the spec.
func (*ListGroupsForPolicyParams) BindRequest ¶
func (o *ListGroupsForPolicyParams) 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 NewListGroupsForPolicyParams() beforehand.
type ListGroupsForPolicyURL ¶
type ListGroupsForPolicyURL struct { Policy string // contains filtered or unexported fields }
ListGroupsForPolicyURL generates an URL for the list groups for policy operation
func (*ListGroupsForPolicyURL) Build ¶
func (o *ListGroupsForPolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListGroupsForPolicyURL) BuildFull ¶
func (o *ListGroupsForPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListGroupsForPolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListGroupsForPolicyURL) SetBasePath ¶
func (o *ListGroupsForPolicyURL) 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 (*ListGroupsForPolicyURL) String ¶
func (o *ListGroupsForPolicyURL) String() string
String returns the string representation of the path with query string
func (*ListGroupsForPolicyURL) StringFull ¶
func (o *ListGroupsForPolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListGroupsForPolicyURL) WithBasePath ¶
func (o *ListGroupsForPolicyURL) WithBasePath(bp string) *ListGroupsForPolicyURL
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 ListPolicies ¶
type ListPolicies struct { Context *middleware.Context Handler ListPoliciesHandler }
ListPolicies swagger:route GET /policies Policy listPolicies
List Policies
func NewListPolicies ¶
func NewListPolicies(ctx *middleware.Context, handler ListPoliciesHandler) *ListPolicies
NewListPolicies creates a new http.Handler for the list policies operation
func (*ListPolicies) ServeHTTP ¶
func (o *ListPolicies) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListPoliciesDefault ¶
type ListPoliciesDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ListPoliciesDefault Generic error response.
swagger:response listPoliciesDefault
func NewListPoliciesDefault ¶
func NewListPoliciesDefault(code int) *ListPoliciesDefault
NewListPoliciesDefault creates ListPoliciesDefault with default headers values
func (*ListPoliciesDefault) SetPayload ¶
func (o *ListPoliciesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the list policies default response
func (*ListPoliciesDefault) SetStatusCode ¶
func (o *ListPoliciesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the list policies default response
func (*ListPoliciesDefault) WithPayload ¶
func (o *ListPoliciesDefault) WithPayload(payload *models.Error) *ListPoliciesDefault
WithPayload adds the payload to the list policies default response
func (*ListPoliciesDefault) WithStatusCode ¶
func (o *ListPoliciesDefault) WithStatusCode(code int) *ListPoliciesDefault
WithStatusCode adds the status to the list policies default response
func (*ListPoliciesDefault) WriteResponse ¶
func (o *ListPoliciesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListPoliciesHandler ¶
type ListPoliciesHandler interface {
Handle(ListPoliciesParams, *models.Principal) middleware.Responder
}
ListPoliciesHandler interface for that can handle valid list policies params
type ListPoliciesHandlerFunc ¶
type ListPoliciesHandlerFunc func(ListPoliciesParams, *models.Principal) middleware.Responder
ListPoliciesHandlerFunc turns a function with the right signature into a list policies handler
func (ListPoliciesHandlerFunc) Handle ¶
func (fn ListPoliciesHandlerFunc) Handle(params ListPoliciesParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ListPoliciesOK ¶
type ListPoliciesOK struct { /* In: Body */ Payload *models.ListPoliciesResponse `json:"body,omitempty"` }
ListPoliciesOK A successful response.
swagger:response listPoliciesOK
func NewListPoliciesOK ¶
func NewListPoliciesOK() *ListPoliciesOK
NewListPoliciesOK creates ListPoliciesOK with default headers values
func (*ListPoliciesOK) SetPayload ¶
func (o *ListPoliciesOK) SetPayload(payload *models.ListPoliciesResponse)
SetPayload sets the payload to the list policies o k response
func (*ListPoliciesOK) WithPayload ¶
func (o *ListPoliciesOK) WithPayload(payload *models.ListPoliciesResponse) *ListPoliciesOK
WithPayload adds the payload to the list policies o k response
func (*ListPoliciesOK) WriteResponse ¶
func (o *ListPoliciesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListPoliciesParams ¶
type ListPoliciesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Limit *int32 /* In: query */ Offset *int32 }
ListPoliciesParams contains all the bound params for the list policies operation typically these are obtained from a http.Request
swagger:parameters ListPolicies
func NewListPoliciesParams ¶
func NewListPoliciesParams() ListPoliciesParams
NewListPoliciesParams creates a new ListPoliciesParams object
There are no default values defined in the spec.
func (*ListPoliciesParams) BindRequest ¶
func (o *ListPoliciesParams) 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 NewListPoliciesParams() beforehand.
type ListPoliciesURL ¶
type ListPoliciesURL struct { Limit *int32 Offset *int32 // contains filtered or unexported fields }
ListPoliciesURL generates an URL for the list policies operation
func (*ListPoliciesURL) Build ¶
func (o *ListPoliciesURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListPoliciesURL) BuildFull ¶
func (o *ListPoliciesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListPoliciesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListPoliciesURL) SetBasePath ¶
func (o *ListPoliciesURL) 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 (*ListPoliciesURL) String ¶
func (o *ListPoliciesURL) String() string
String returns the string representation of the path with query string
func (*ListPoliciesURL) StringFull ¶
func (o *ListPoliciesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListPoliciesURL) WithBasePath ¶
func (o *ListPoliciesURL) WithBasePath(bp string) *ListPoliciesURL
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 ListUsersForPolicy ¶
type ListUsersForPolicy struct { Context *middleware.Context Handler ListUsersForPolicyHandler }
ListUsersForPolicy swagger:route GET /policies/{policy}/users Policy listUsersForPolicy
List Users for a Policy
func NewListUsersForPolicy ¶
func NewListUsersForPolicy(ctx *middleware.Context, handler ListUsersForPolicyHandler) *ListUsersForPolicy
NewListUsersForPolicy creates a new http.Handler for the list users for policy operation
func (*ListUsersForPolicy) ServeHTTP ¶
func (o *ListUsersForPolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListUsersForPolicyDefault ¶
type ListUsersForPolicyDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ListUsersForPolicyDefault Generic error response.
swagger:response listUsersForPolicyDefault
func NewListUsersForPolicyDefault ¶
func NewListUsersForPolicyDefault(code int) *ListUsersForPolicyDefault
NewListUsersForPolicyDefault creates ListUsersForPolicyDefault with default headers values
func (*ListUsersForPolicyDefault) SetPayload ¶
func (o *ListUsersForPolicyDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the list users for policy default response
func (*ListUsersForPolicyDefault) SetStatusCode ¶
func (o *ListUsersForPolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the list users for policy default response
func (*ListUsersForPolicyDefault) WithPayload ¶
func (o *ListUsersForPolicyDefault) WithPayload(payload *models.Error) *ListUsersForPolicyDefault
WithPayload adds the payload to the list users for policy default response
func (*ListUsersForPolicyDefault) WithStatusCode ¶
func (o *ListUsersForPolicyDefault) WithStatusCode(code int) *ListUsersForPolicyDefault
WithStatusCode adds the status to the list users for policy default response
func (*ListUsersForPolicyDefault) WriteResponse ¶
func (o *ListUsersForPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListUsersForPolicyHandler ¶
type ListUsersForPolicyHandler interface {
Handle(ListUsersForPolicyParams, *models.Principal) middleware.Responder
}
ListUsersForPolicyHandler interface for that can handle valid list users for policy params
type ListUsersForPolicyHandlerFunc ¶
type ListUsersForPolicyHandlerFunc func(ListUsersForPolicyParams, *models.Principal) middleware.Responder
ListUsersForPolicyHandlerFunc turns a function with the right signature into a list users for policy handler
func (ListUsersForPolicyHandlerFunc) Handle ¶
func (fn ListUsersForPolicyHandlerFunc) Handle(params ListUsersForPolicyParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type ListUsersForPolicyOK ¶
type ListUsersForPolicyOK struct { /* In: Body */ Payload []string `json:"body,omitempty"` }
ListUsersForPolicyOK A successful response.
swagger:response listUsersForPolicyOK
func NewListUsersForPolicyOK ¶
func NewListUsersForPolicyOK() *ListUsersForPolicyOK
NewListUsersForPolicyOK creates ListUsersForPolicyOK with default headers values
func (*ListUsersForPolicyOK) SetPayload ¶
func (o *ListUsersForPolicyOK) SetPayload(payload []string)
SetPayload sets the payload to the list users for policy o k response
func (*ListUsersForPolicyOK) WithPayload ¶
func (o *ListUsersForPolicyOK) WithPayload(payload []string) *ListUsersForPolicyOK
WithPayload adds the payload to the list users for policy o k response
func (*ListUsersForPolicyOK) WriteResponse ¶
func (o *ListUsersForPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListUsersForPolicyParams ¶
type ListUsersForPolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Policy string }
ListUsersForPolicyParams contains all the bound params for the list users for policy operation typically these are obtained from a http.Request
swagger:parameters ListUsersForPolicy
func NewListUsersForPolicyParams ¶
func NewListUsersForPolicyParams() ListUsersForPolicyParams
NewListUsersForPolicyParams creates a new ListUsersForPolicyParams object
There are no default values defined in the spec.
func (*ListUsersForPolicyParams) BindRequest ¶
func (o *ListUsersForPolicyParams) 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 NewListUsersForPolicyParams() beforehand.
type ListUsersForPolicyURL ¶
type ListUsersForPolicyURL struct { Policy string // contains filtered or unexported fields }
ListUsersForPolicyURL generates an URL for the list users for policy operation
func (*ListUsersForPolicyURL) Build ¶
func (o *ListUsersForPolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListUsersForPolicyURL) BuildFull ¶
func (o *ListUsersForPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListUsersForPolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListUsersForPolicyURL) SetBasePath ¶
func (o *ListUsersForPolicyURL) 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 (*ListUsersForPolicyURL) String ¶
func (o *ListUsersForPolicyURL) String() string
String returns the string representation of the path with query string
func (*ListUsersForPolicyURL) StringFull ¶
func (o *ListUsersForPolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListUsersForPolicyURL) WithBasePath ¶
func (o *ListUsersForPolicyURL) WithBasePath(bp string) *ListUsersForPolicyURL
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 PolicyInfo ¶
type PolicyInfo struct { Context *middleware.Context Handler PolicyInfoHandler }
PolicyInfo swagger:route GET /policy/{name} Policy policyInfo
Policy info
func NewPolicyInfo ¶
func NewPolicyInfo(ctx *middleware.Context, handler PolicyInfoHandler) *PolicyInfo
NewPolicyInfo creates a new http.Handler for the policy info operation
func (*PolicyInfo) ServeHTTP ¶
func (o *PolicyInfo) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PolicyInfoDefault ¶
type PolicyInfoDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PolicyInfoDefault Generic error response.
swagger:response policyInfoDefault
func NewPolicyInfoDefault ¶
func NewPolicyInfoDefault(code int) *PolicyInfoDefault
NewPolicyInfoDefault creates PolicyInfoDefault with default headers values
func (*PolicyInfoDefault) SetPayload ¶
func (o *PolicyInfoDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the policy info default response
func (*PolicyInfoDefault) SetStatusCode ¶
func (o *PolicyInfoDefault) SetStatusCode(code int)
SetStatusCode sets the status to the policy info default response
func (*PolicyInfoDefault) WithPayload ¶
func (o *PolicyInfoDefault) WithPayload(payload *models.Error) *PolicyInfoDefault
WithPayload adds the payload to the policy info default response
func (*PolicyInfoDefault) WithStatusCode ¶
func (o *PolicyInfoDefault) WithStatusCode(code int) *PolicyInfoDefault
WithStatusCode adds the status to the policy info default response
func (*PolicyInfoDefault) WriteResponse ¶
func (o *PolicyInfoDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PolicyInfoHandler ¶
type PolicyInfoHandler interface {
Handle(PolicyInfoParams, *models.Principal) middleware.Responder
}
PolicyInfoHandler interface for that can handle valid policy info params
type PolicyInfoHandlerFunc ¶
type PolicyInfoHandlerFunc func(PolicyInfoParams, *models.Principal) middleware.Responder
PolicyInfoHandlerFunc turns a function with the right signature into a policy info handler
func (PolicyInfoHandlerFunc) Handle ¶
func (fn PolicyInfoHandlerFunc) Handle(params PolicyInfoParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type PolicyInfoOK ¶
PolicyInfoOK A successful response.
swagger:response policyInfoOK
func NewPolicyInfoOK ¶
func NewPolicyInfoOK() *PolicyInfoOK
NewPolicyInfoOK creates PolicyInfoOK with default headers values
func (*PolicyInfoOK) SetPayload ¶
func (o *PolicyInfoOK) SetPayload(payload *models.Policy)
SetPayload sets the payload to the policy info o k response
func (*PolicyInfoOK) WithPayload ¶
func (o *PolicyInfoOK) WithPayload(payload *models.Policy) *PolicyInfoOK
WithPayload adds the payload to the policy info o k response
func (*PolicyInfoOK) WriteResponse ¶
func (o *PolicyInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PolicyInfoParams ¶
type PolicyInfoParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Name string }
PolicyInfoParams contains all the bound params for the policy info operation typically these are obtained from a http.Request
swagger:parameters PolicyInfo
func NewPolicyInfoParams ¶
func NewPolicyInfoParams() PolicyInfoParams
NewPolicyInfoParams creates a new PolicyInfoParams object
There are no default values defined in the spec.
func (*PolicyInfoParams) BindRequest ¶
func (o *PolicyInfoParams) 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 NewPolicyInfoParams() beforehand.
type PolicyInfoURL ¶
type PolicyInfoURL struct { Name string // contains filtered or unexported fields }
PolicyInfoURL generates an URL for the policy info operation
func (*PolicyInfoURL) Build ¶
func (o *PolicyInfoURL) Build() (*url.URL, error)
Build a url path and query string
func (*PolicyInfoURL) BuildFull ¶
func (o *PolicyInfoURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PolicyInfoURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PolicyInfoURL) SetBasePath ¶
func (o *PolicyInfoURL) 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 (*PolicyInfoURL) String ¶
func (o *PolicyInfoURL) String() string
String returns the string representation of the path with query string
func (*PolicyInfoURL) StringFull ¶
func (o *PolicyInfoURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PolicyInfoURL) WithBasePath ¶
func (o *PolicyInfoURL) WithBasePath(bp string) *PolicyInfoURL
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 RemovePolicy ¶
type RemovePolicy struct { Context *middleware.Context Handler RemovePolicyHandler }
RemovePolicy swagger:route DELETE /policy/{name} Policy removePolicy
Remove policy
func NewRemovePolicy ¶
func NewRemovePolicy(ctx *middleware.Context, handler RemovePolicyHandler) *RemovePolicy
NewRemovePolicy creates a new http.Handler for the remove policy operation
func (*RemovePolicy) ServeHTTP ¶
func (o *RemovePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RemovePolicyDefault ¶
type RemovePolicyDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
RemovePolicyDefault Generic error response.
swagger:response removePolicyDefault
func NewRemovePolicyDefault ¶
func NewRemovePolicyDefault(code int) *RemovePolicyDefault
NewRemovePolicyDefault creates RemovePolicyDefault with default headers values
func (*RemovePolicyDefault) SetPayload ¶
func (o *RemovePolicyDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the remove policy default response
func (*RemovePolicyDefault) SetStatusCode ¶
func (o *RemovePolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the remove policy default response
func (*RemovePolicyDefault) WithPayload ¶
func (o *RemovePolicyDefault) WithPayload(payload *models.Error) *RemovePolicyDefault
WithPayload adds the payload to the remove policy default response
func (*RemovePolicyDefault) WithStatusCode ¶
func (o *RemovePolicyDefault) WithStatusCode(code int) *RemovePolicyDefault
WithStatusCode adds the status to the remove policy default response
func (*RemovePolicyDefault) WriteResponse ¶
func (o *RemovePolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemovePolicyHandler ¶
type RemovePolicyHandler interface {
Handle(RemovePolicyParams, *models.Principal) middleware.Responder
}
RemovePolicyHandler interface for that can handle valid remove policy params
type RemovePolicyHandlerFunc ¶
type RemovePolicyHandlerFunc func(RemovePolicyParams, *models.Principal) middleware.Responder
RemovePolicyHandlerFunc turns a function with the right signature into a remove policy handler
func (RemovePolicyHandlerFunc) Handle ¶
func (fn RemovePolicyHandlerFunc) Handle(params RemovePolicyParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RemovePolicyNoContent ¶
type RemovePolicyNoContent struct { }
RemovePolicyNoContent A successful response.
swagger:response removePolicyNoContent
func NewRemovePolicyNoContent ¶
func NewRemovePolicyNoContent() *RemovePolicyNoContent
NewRemovePolicyNoContent creates RemovePolicyNoContent with default headers values
func (*RemovePolicyNoContent) WriteResponse ¶
func (o *RemovePolicyNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemovePolicyParams ¶
type RemovePolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Name string }
RemovePolicyParams contains all the bound params for the remove policy operation typically these are obtained from a http.Request
swagger:parameters RemovePolicy
func NewRemovePolicyParams ¶
func NewRemovePolicyParams() RemovePolicyParams
NewRemovePolicyParams creates a new RemovePolicyParams object
There are no default values defined in the spec.
func (*RemovePolicyParams) BindRequest ¶
func (o *RemovePolicyParams) 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 NewRemovePolicyParams() beforehand.
type RemovePolicyURL ¶
type RemovePolicyURL struct { Name string // contains filtered or unexported fields }
RemovePolicyURL generates an URL for the remove policy operation
func (*RemovePolicyURL) Build ¶
func (o *RemovePolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*RemovePolicyURL) BuildFull ¶
func (o *RemovePolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RemovePolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RemovePolicyURL) SetBasePath ¶
func (o *RemovePolicyURL) 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 (*RemovePolicyURL) String ¶
func (o *RemovePolicyURL) String() string
String returns the string representation of the path with query string
func (*RemovePolicyURL) StringFull ¶
func (o *RemovePolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RemovePolicyURL) WithBasePath ¶
func (o *RemovePolicyURL) WithBasePath(bp string) *RemovePolicyURL
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 SetPolicy ¶
type SetPolicy struct { Context *middleware.Context Handler SetPolicyHandler }
SetPolicy swagger:route PUT /set-policy Policy setPolicy
Set policy
func NewSetPolicy ¶
func NewSetPolicy(ctx *middleware.Context, handler SetPolicyHandler) *SetPolicy
NewSetPolicy creates a new http.Handler for the set policy operation
type SetPolicyDefault ¶
type SetPolicyDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
SetPolicyDefault Generic error response.
swagger:response setPolicyDefault
func NewSetPolicyDefault ¶
func NewSetPolicyDefault(code int) *SetPolicyDefault
NewSetPolicyDefault creates SetPolicyDefault with default headers values
func (*SetPolicyDefault) SetPayload ¶
func (o *SetPolicyDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the set policy default response
func (*SetPolicyDefault) SetStatusCode ¶
func (o *SetPolicyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the set policy default response
func (*SetPolicyDefault) WithPayload ¶
func (o *SetPolicyDefault) WithPayload(payload *models.Error) *SetPolicyDefault
WithPayload adds the payload to the set policy default response
func (*SetPolicyDefault) WithStatusCode ¶
func (o *SetPolicyDefault) WithStatusCode(code int) *SetPolicyDefault
WithStatusCode adds the status to the set policy default response
func (*SetPolicyDefault) WriteResponse ¶
func (o *SetPolicyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetPolicyHandler ¶
type SetPolicyHandler interface {
Handle(SetPolicyParams, *models.Principal) middleware.Responder
}
SetPolicyHandler interface for that can handle valid set policy params
type SetPolicyHandlerFunc ¶
type SetPolicyHandlerFunc func(SetPolicyParams, *models.Principal) middleware.Responder
SetPolicyHandlerFunc turns a function with the right signature into a set policy handler
func (SetPolicyHandlerFunc) Handle ¶
func (fn SetPolicyHandlerFunc) Handle(params SetPolicyParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type SetPolicyMultiple ¶
type SetPolicyMultiple struct { Context *middleware.Context Handler SetPolicyMultipleHandler }
SetPolicyMultiple swagger:route PUT /set-policy-multi Policy setPolicyMultiple
Set policy to multiple users/groups
func NewSetPolicyMultiple ¶
func NewSetPolicyMultiple(ctx *middleware.Context, handler SetPolicyMultipleHandler) *SetPolicyMultiple
NewSetPolicyMultiple creates a new http.Handler for the set policy multiple operation
func (*SetPolicyMultiple) ServeHTTP ¶
func (o *SetPolicyMultiple) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SetPolicyMultipleDefault ¶
type SetPolicyMultipleDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
SetPolicyMultipleDefault Generic error response.
swagger:response setPolicyMultipleDefault
func NewSetPolicyMultipleDefault ¶
func NewSetPolicyMultipleDefault(code int) *SetPolicyMultipleDefault
NewSetPolicyMultipleDefault creates SetPolicyMultipleDefault with default headers values
func (*SetPolicyMultipleDefault) SetPayload ¶
func (o *SetPolicyMultipleDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the set policy multiple default response
func (*SetPolicyMultipleDefault) SetStatusCode ¶
func (o *SetPolicyMultipleDefault) SetStatusCode(code int)
SetStatusCode sets the status to the set policy multiple default response
func (*SetPolicyMultipleDefault) WithPayload ¶
func (o *SetPolicyMultipleDefault) WithPayload(payload *models.Error) *SetPolicyMultipleDefault
WithPayload adds the payload to the set policy multiple default response
func (*SetPolicyMultipleDefault) WithStatusCode ¶
func (o *SetPolicyMultipleDefault) WithStatusCode(code int) *SetPolicyMultipleDefault
WithStatusCode adds the status to the set policy multiple default response
func (*SetPolicyMultipleDefault) WriteResponse ¶
func (o *SetPolicyMultipleDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetPolicyMultipleHandler ¶
type SetPolicyMultipleHandler interface {
Handle(SetPolicyMultipleParams, *models.Principal) middleware.Responder
}
SetPolicyMultipleHandler interface for that can handle valid set policy multiple params
type SetPolicyMultipleHandlerFunc ¶
type SetPolicyMultipleHandlerFunc func(SetPolicyMultipleParams, *models.Principal) middleware.Responder
SetPolicyMultipleHandlerFunc turns a function with the right signature into a set policy multiple handler
func (SetPolicyMultipleHandlerFunc) Handle ¶
func (fn SetPolicyMultipleHandlerFunc) Handle(params SetPolicyMultipleParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type SetPolicyMultipleNoContent ¶
type SetPolicyMultipleNoContent struct { }
SetPolicyMultipleNoContent A successful response.
swagger:response setPolicyMultipleNoContent
func NewSetPolicyMultipleNoContent ¶
func NewSetPolicyMultipleNoContent() *SetPolicyMultipleNoContent
NewSetPolicyMultipleNoContent creates SetPolicyMultipleNoContent with default headers values
func (*SetPolicyMultipleNoContent) WriteResponse ¶
func (o *SetPolicyMultipleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetPolicyMultipleParams ¶
type SetPolicyMultipleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.SetPolicyMultipleNameRequest }
SetPolicyMultipleParams contains all the bound params for the set policy multiple operation typically these are obtained from a http.Request
swagger:parameters SetPolicyMultiple
func NewSetPolicyMultipleParams ¶
func NewSetPolicyMultipleParams() SetPolicyMultipleParams
NewSetPolicyMultipleParams creates a new SetPolicyMultipleParams object
There are no default values defined in the spec.
func (*SetPolicyMultipleParams) BindRequest ¶
func (o *SetPolicyMultipleParams) 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 NewSetPolicyMultipleParams() beforehand.
type SetPolicyMultipleURL ¶
type SetPolicyMultipleURL struct {
// contains filtered or unexported fields
}
SetPolicyMultipleURL generates an URL for the set policy multiple operation
func (*SetPolicyMultipleURL) Build ¶
func (o *SetPolicyMultipleURL) Build() (*url.URL, error)
Build a url path and query string
func (*SetPolicyMultipleURL) BuildFull ¶
func (o *SetPolicyMultipleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SetPolicyMultipleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SetPolicyMultipleURL) SetBasePath ¶
func (o *SetPolicyMultipleURL) 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 (*SetPolicyMultipleURL) String ¶
func (o *SetPolicyMultipleURL) String() string
String returns the string representation of the path with query string
func (*SetPolicyMultipleURL) StringFull ¶
func (o *SetPolicyMultipleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SetPolicyMultipleURL) WithBasePath ¶
func (o *SetPolicyMultipleURL) WithBasePath(bp string) *SetPolicyMultipleURL
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 SetPolicyNoContent ¶
type SetPolicyNoContent struct { }
SetPolicyNoContent A successful response.
swagger:response setPolicyNoContent
func NewSetPolicyNoContent ¶
func NewSetPolicyNoContent() *SetPolicyNoContent
NewSetPolicyNoContent creates SetPolicyNoContent with default headers values
func (*SetPolicyNoContent) WriteResponse ¶
func (o *SetPolicyNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SetPolicyParams ¶
type SetPolicyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.SetPolicyNameRequest }
SetPolicyParams contains all the bound params for the set policy operation typically these are obtained from a http.Request
swagger:parameters SetPolicy
func NewSetPolicyParams ¶
func NewSetPolicyParams() SetPolicyParams
NewSetPolicyParams creates a new SetPolicyParams object
There are no default values defined in the spec.
func (*SetPolicyParams) BindRequest ¶
func (o *SetPolicyParams) 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 NewSetPolicyParams() beforehand.
type SetPolicyURL ¶
type SetPolicyURL struct {
// contains filtered or unexported fields
}
SetPolicyURL generates an URL for the set policy operation
func (*SetPolicyURL) Build ¶
func (o *SetPolicyURL) Build() (*url.URL, error)
Build a url path and query string
func (*SetPolicyURL) BuildFull ¶
func (o *SetPolicyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SetPolicyURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SetPolicyURL) SetBasePath ¶
func (o *SetPolicyURL) 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 (*SetPolicyURL) String ¶
func (o *SetPolicyURL) String() string
String returns the string representation of the path with query string
func (*SetPolicyURL) StringFull ¶
func (o *SetPolicyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SetPolicyURL) WithBasePath ¶
func (o *SetPolicyURL) WithBasePath(bp string) *SetPolicyURL
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
Source Files ¶
- add_policy.go
- add_policy_parameters.go
- add_policy_responses.go
- add_policy_urlbuilder.go
- get_s_a_user_policy.go
- get_s_a_user_policy_parameters.go
- get_s_a_user_policy_responses.go
- get_s_a_user_policy_urlbuilder.go
- get_user_policy.go
- get_user_policy_parameters.go
- get_user_policy_responses.go
- get_user_policy_urlbuilder.go
- list_groups_for_policy.go
- list_groups_for_policy_parameters.go
- list_groups_for_policy_responses.go
- list_groups_for_policy_urlbuilder.go
- list_policies.go
- list_policies_parameters.go
- list_policies_responses.go
- list_policies_urlbuilder.go
- list_users_for_policy.go
- list_users_for_policy_parameters.go
- list_users_for_policy_responses.go
- list_users_for_policy_urlbuilder.go
- policy_info.go
- policy_info_parameters.go
- policy_info_responses.go
- policy_info_urlbuilder.go
- remove_policy.go
- remove_policy_parameters.go
- remove_policy_responses.go
- remove_policy_urlbuilder.go
- set_policy.go
- set_policy_multiple.go
- set_policy_multiple_parameters.go
- set_policy_multiple_responses.go
- set_policy_multiple_urlbuilder.go
- set_policy_parameters.go
- set_policy_responses.go
- set_policy_urlbuilder.go