policy

package
v0.2.3-mayhem Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AddPolicyCreatedCode int = 201

AddPolicyCreatedCode is the HTTP code returned for type AddPolicyCreated

View Source
const GetSAUserPolicyOKCode int = 200

GetSAUserPolicyOKCode is the HTTP code returned for type GetSAUserPolicyOK

View Source
const GetUserPolicyOKCode int = 200

GetUserPolicyOKCode is the HTTP code returned for type GetUserPolicyOK

View Source
const ListGroupsForPolicyOKCode int = 200

ListGroupsForPolicyOKCode is the HTTP code returned for type ListGroupsForPolicyOK

View Source
const ListPoliciesOKCode int = 200

ListPoliciesOKCode is the HTTP code returned for type ListPoliciesOK

View Source
const ListUsersForPolicyOKCode int = 200

ListUsersForPolicyOKCode is the HTTP code returned for type ListUsersForPolicyOK

View Source
const PolicyInfoOKCode int = 200

PolicyInfoOKCode is the HTTP code returned for type PolicyInfoOK

View Source
const RemovePolicyNoContentCode int = 204

RemovePolicyNoContentCode is the HTTP code returned for type RemovePolicyNoContent

View Source
const SetPolicyMultipleNoContentCode int = 204

SetPolicyMultipleNoContentCode is the HTTP code returned for type SetPolicyMultipleNoContent

View Source
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

func (*AddPolicy) ServeHTTP

func (o *AddPolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AddPolicyCreated

type AddPolicyCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Policy `json:"body,omitempty"`
}

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.APIError `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.APIError)

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.APIError) *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

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

func (o *AddPolicyURL) Must(u *url.URL, err error) *url.URL

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.APIError `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.APIError)

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

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

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

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

func (o *GetSAUserPolicyURL) Must(u *url.URL, err error) *url.URL

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.APIError `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.APIError)

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.APIError) *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

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

type GetUserPolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

func (o *GetUserPolicyURL) Must(u *url.URL, err error) *url.URL

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.APIError `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.APIError)

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

WithPayload adds the payload to the list groups for policy default response

func (*ListGroupsForPolicyDefault) WithStatusCode

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

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

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

func (o *ListGroupsForPolicyURL) Must(u *url.URL, err error) *url.URL

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

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.APIError `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.APIError)

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.APIError) *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

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

func (o *ListPoliciesURL) Must(u *url.URL, err error) *url.URL

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.APIError `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.APIError)

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

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

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

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

func (o *ListUsersForPolicyURL) Must(u *url.URL, err error) *url.URL

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.APIError `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.APIError)

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.APIError) *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

Handle executing the request and returning a response

type PolicyInfoOK

type PolicyInfoOK struct {

	/*
	  In: Body
	*/
	Payload *models.Policy `json:"body,omitempty"`
}

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

func (o *PolicyInfoURL) Must(u *url.URL, err error) *url.URL

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.APIError `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.APIError)

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.APIError) *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

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

func (o *RemovePolicyURL) Must(u *url.URL, err error) *url.URL

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

func (*SetPolicy) ServeHTTP

func (o *SetPolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type SetPolicyDefault

type SetPolicyDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `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.APIError)

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.APIError) *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

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.APIError `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.APIError)

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

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

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

func (o *SetPolicyMultipleURL) Must(u *url.URL, err error) *url.URL

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

func (o *SetPolicyURL) Must(u *url.URL, err error) *url.URL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL