policy

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DeletePolicyFailureCode int = 500

DeletePolicyFailureCode is the HTTP code returned for type DeletePolicyFailure

View Source
const DeletePolicyInvalidCode int = 400

DeletePolicyInvalidCode is the HTTP code returned for type DeletePolicyInvalid

View Source
const DeletePolicyNotFoundCode int = 404

DeletePolicyNotFoundCode is the HTTP code returned for type DeletePolicyNotFound

View Source
const DeletePolicyOKCode int = 200

DeletePolicyOKCode is the HTTP code returned for type DeletePolicyOK

View Source
const GetIdentityIDBadRequestCode int = 400

GetIdentityIDBadRequestCode is the HTTP code returned for type GetIdentityIDBadRequest

View Source
const GetIdentityIDInvalidStorageFormatCode int = 521

GetIdentityIDInvalidStorageFormatCode is the HTTP code returned for type GetIdentityIDInvalidStorageFormat

View Source
const GetIdentityIDNotFoundCode int = 404

GetIdentityIDNotFoundCode is the HTTP code returned for type GetIdentityIDNotFound

View Source
const GetIdentityIDOKCode int = 200

GetIdentityIDOKCode is the HTTP code returned for type GetIdentityIDOK

View Source
const GetIdentityIDUnreachableCode int = 520

GetIdentityIDUnreachableCode is the HTTP code returned for type GetIdentityIDUnreachable

View Source
const GetIdentityInvalidStorageFormatCode int = 521

GetIdentityInvalidStorageFormatCode is the HTTP code returned for type GetIdentityInvalidStorageFormat

View Source
const GetIdentityNotFoundCode int = 404

GetIdentityNotFoundCode is the HTTP code returned for type GetIdentityNotFound

View Source
const GetIdentityOKCode int = 200

GetIdentityOKCode is the HTTP code returned for type GetIdentityOK

View Source
const GetIdentityUnreachableCode int = 520

GetIdentityUnreachableCode is the HTTP code returned for type GetIdentityUnreachable

View Source
const GetPolicyNotFoundCode int = 404

GetPolicyNotFoundCode is the HTTP code returned for type GetPolicyNotFound

View Source
const GetPolicyOKCode int = 200

GetPolicyOKCode is the HTTP code returned for type GetPolicyOK

View Source
const GetPolicyResolveOKCode int = 200

GetPolicyResolveOKCode is the HTTP code returned for type GetPolicyResolveOK

View Source
const PutPolicyFailureCode int = 500

PutPolicyFailureCode is the HTTP code returned for type PutPolicyFailure

View Source
const PutPolicyInvalidPathCode int = 460

PutPolicyInvalidPathCode is the HTTP code returned for type PutPolicyInvalidPath

View Source
const PutPolicyInvalidPolicyCode int = 400

PutPolicyInvalidPolicyCode is the HTTP code returned for type PutPolicyInvalidPolicy

View Source
const PutPolicyOKCode int = 200

PutPolicyOKCode is the HTTP code returned for type PutPolicyOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletePolicy added in v0.9.0

type DeletePolicy struct {
	Context *middleware.Context
	Handler DeletePolicyHandler
}

DeletePolicy swagger:route DELETE /policy policy deletePolicy

Delete a policy (sub)tree

func NewDeletePolicy added in v0.9.0

func NewDeletePolicy(ctx *middleware.Context, handler DeletePolicyHandler) *DeletePolicy

NewDeletePolicy creates a new http.Handler for the delete policy operation

func (*DeletePolicy) ServeHTTP added in v0.9.0

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

type DeletePolicyFailure added in v0.9.0

type DeletePolicyFailure struct {

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

DeletePolicyFailure Error while deleting policy

swagger:response deletePolicyFailure

func NewDeletePolicyFailure added in v0.9.0

func NewDeletePolicyFailure() *DeletePolicyFailure

NewDeletePolicyFailure creates DeletePolicyFailure with default headers values

func (*DeletePolicyFailure) SetPayload added in v0.9.0

func (o *DeletePolicyFailure) SetPayload(payload models.Error)

SetPayload sets the payload to the delete policy failure response

func (*DeletePolicyFailure) WithPayload added in v0.9.0

func (o *DeletePolicyFailure) WithPayload(payload models.Error) *DeletePolicyFailure

WithPayload adds the payload to the delete policy failure response

func (*DeletePolicyFailure) WriteResponse added in v0.9.0

func (o *DeletePolicyFailure) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyHandler added in v0.9.0

type DeletePolicyHandler interface {
	Handle(DeletePolicyParams) middleware.Responder
}

DeletePolicyHandler interface for that can handle valid delete policy params

type DeletePolicyHandlerFunc added in v0.9.0

type DeletePolicyHandlerFunc func(DeletePolicyParams) middleware.Responder

DeletePolicyHandlerFunc turns a function with the right signature into a delete policy handler

func (DeletePolicyHandlerFunc) Handle added in v0.9.0

Handle executing the request and returning a response

type DeletePolicyInvalid added in v0.9.0

type DeletePolicyInvalid struct {

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

DeletePolicyInvalid Invalid request

swagger:response deletePolicyInvalid

func NewDeletePolicyInvalid added in v0.9.0

func NewDeletePolicyInvalid() *DeletePolicyInvalid

NewDeletePolicyInvalid creates DeletePolicyInvalid with default headers values

func (*DeletePolicyInvalid) SetPayload added in v0.9.0

func (o *DeletePolicyInvalid) SetPayload(payload models.Error)

SetPayload sets the payload to the delete policy invalid response

func (*DeletePolicyInvalid) WithPayload added in v0.9.0

func (o *DeletePolicyInvalid) WithPayload(payload models.Error) *DeletePolicyInvalid

WithPayload adds the payload to the delete policy invalid response

func (*DeletePolicyInvalid) WriteResponse added in v0.9.0

func (o *DeletePolicyInvalid) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyNotFound added in v0.9.0

type DeletePolicyNotFound struct {
}

DeletePolicyNotFound Policy not found

swagger:response deletePolicyNotFound

func NewDeletePolicyNotFound added in v0.9.0

func NewDeletePolicyNotFound() *DeletePolicyNotFound

NewDeletePolicyNotFound creates DeletePolicyNotFound with default headers values

func (*DeletePolicyNotFound) WriteResponse added in v0.9.0

func (o *DeletePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyOK added in v0.10.0

type DeletePolicyOK struct {

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

DeletePolicyOK Success

swagger:response deletePolicyOK

func NewDeletePolicyOK added in v0.10.0

func NewDeletePolicyOK() *DeletePolicyOK

NewDeletePolicyOK creates DeletePolicyOK with default headers values

func (*DeletePolicyOK) SetPayload added in v0.10.0

func (o *DeletePolicyOK) SetPayload(payload *models.Policy)

SetPayload sets the payload to the delete policy o k response

func (*DeletePolicyOK) WithPayload added in v0.10.0

func (o *DeletePolicyOK) WithPayload(payload *models.Policy) *DeletePolicyOK

WithPayload adds the payload to the delete policy o k response

func (*DeletePolicyOK) WriteResponse added in v0.10.0

func (o *DeletePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePolicyParams added in v0.9.0

type DeletePolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  In: body
	*/
	Labels models.Labels
}

DeletePolicyParams contains all the bound params for the delete policy operation typically these are obtained from a http.Request

swagger:parameters DeletePolicy

func NewDeletePolicyParams added in v0.9.0

func NewDeletePolicyParams() DeletePolicyParams

NewDeletePolicyParams creates a new DeletePolicyParams object with the default values initialized.

func (*DeletePolicyParams) BindRequest added in v0.9.0

func (o *DeletePolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type DeletePolicyURL added in v0.9.0

type DeletePolicyURL struct {
	// contains filtered or unexported fields
}

DeletePolicyURL generates an URL for the delete policy operation

func (*DeletePolicyURL) Build added in v0.9.0

func (o *DeletePolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeletePolicyURL) BuildFull added in v0.9.0

func (o *DeletePolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeletePolicyURL) Must added in v0.9.0

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

Must is a helper function to panic when the url builder returns an error

func (*DeletePolicyURL) SetBasePath added in v0.9.0

func (o *DeletePolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeletePolicyURL) String added in v0.9.0

func (o *DeletePolicyURL) String() string

String returns the string representation of the path with query string

func (*DeletePolicyURL) StringFull added in v0.9.0

func (o *DeletePolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeletePolicyURL) WithBasePath added in v0.9.0

func (o *DeletePolicyURL) WithBasePath(bp string) *DeletePolicyURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetIdentity

type GetIdentity struct {
	Context *middleware.Context
	Handler GetIdentityHandler
}

GetIdentity swagger:route GET /identity policy getIdentity

Retrieve identity by labels

func NewGetIdentity

func NewGetIdentity(ctx *middleware.Context, handler GetIdentityHandler) *GetIdentity

NewGetIdentity creates a new http.Handler for the get identity operation

func (*GetIdentity) ServeHTTP

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

type GetIdentityHandler

type GetIdentityHandler interface {
	Handle(GetIdentityParams) middleware.Responder
}

GetIdentityHandler interface for that can handle valid get identity params

type GetIdentityHandlerFunc

type GetIdentityHandlerFunc func(GetIdentityParams) middleware.Responder

GetIdentityHandlerFunc turns a function with the right signature into a get identity handler

func (GetIdentityHandlerFunc) Handle

Handle executing the request and returning a response

type GetIdentityID

type GetIdentityID struct {
	Context *middleware.Context
	Handler GetIdentityIDHandler
}

GetIdentityID swagger:route GET /identity/{id} policy getIdentityId

Retrieve identity

func NewGetIdentityID

func NewGetIdentityID(ctx *middleware.Context, handler GetIdentityIDHandler) *GetIdentityID

NewGetIdentityID creates a new http.Handler for the get identity ID operation

func (*GetIdentityID) ServeHTTP

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

type GetIdentityIDBadRequest

type GetIdentityIDBadRequest struct {
}

GetIdentityIDBadRequest Invalid identity provided

swagger:response getIdentityIdBadRequest

func NewGetIdentityIDBadRequest

func NewGetIdentityIDBadRequest() *GetIdentityIDBadRequest

NewGetIdentityIDBadRequest creates GetIdentityIDBadRequest with default headers values

func (*GetIdentityIDBadRequest) WriteResponse

func (o *GetIdentityIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetIdentityIDHandler

type GetIdentityIDHandler interface {
	Handle(GetIdentityIDParams) middleware.Responder
}

GetIdentityIDHandler interface for that can handle valid get identity ID params

type GetIdentityIDHandlerFunc

type GetIdentityIDHandlerFunc func(GetIdentityIDParams) middleware.Responder

GetIdentityIDHandlerFunc turns a function with the right signature into a get identity ID handler

func (GetIdentityIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetIdentityIDInvalidStorageFormat

type GetIdentityIDInvalidStorageFormat struct {

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

GetIdentityIDInvalidStorageFormat Invalid identity format in storage

swagger:response getIdentityIdInvalidStorageFormat

func NewGetIdentityIDInvalidStorageFormat

func NewGetIdentityIDInvalidStorageFormat() *GetIdentityIDInvalidStorageFormat

NewGetIdentityIDInvalidStorageFormat creates GetIdentityIDInvalidStorageFormat with default headers values

func (*GetIdentityIDInvalidStorageFormat) SetPayload

func (o *GetIdentityIDInvalidStorageFormat) SetPayload(payload models.Error)

SetPayload sets the payload to the get identity Id invalid storage format response

func (*GetIdentityIDInvalidStorageFormat) WithPayload

WithPayload adds the payload to the get identity Id invalid storage format response

func (*GetIdentityIDInvalidStorageFormat) WriteResponse

func (o *GetIdentityIDInvalidStorageFormat) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetIdentityIDNotFound

type GetIdentityIDNotFound struct {
}

GetIdentityIDNotFound Identity not found

swagger:response getIdentityIdNotFound

func NewGetIdentityIDNotFound

func NewGetIdentityIDNotFound() *GetIdentityIDNotFound

NewGetIdentityIDNotFound creates GetIdentityIDNotFound with default headers values

func (*GetIdentityIDNotFound) WriteResponse

func (o *GetIdentityIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetIdentityIDOK

type GetIdentityIDOK struct {

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

GetIdentityIDOK Success

swagger:response getIdentityIdOK

func NewGetIdentityIDOK

func NewGetIdentityIDOK() *GetIdentityIDOK

NewGetIdentityIDOK creates GetIdentityIDOK with default headers values

func (*GetIdentityIDOK) SetPayload

func (o *GetIdentityIDOK) SetPayload(payload *models.Identity)

SetPayload sets the payload to the get identity Id o k response

func (*GetIdentityIDOK) WithPayload

func (o *GetIdentityIDOK) WithPayload(payload *models.Identity) *GetIdentityIDOK

WithPayload adds the payload to the get identity Id o k response

func (*GetIdentityIDOK) WriteResponse

func (o *GetIdentityIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetIdentityIDParams

type GetIdentityIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Cluster wide unique identifier of a security identity.

	  Required: true
	  In: path
	*/
	ID string
}

GetIdentityIDParams contains all the bound params for the get identity ID operation typically these are obtained from a http.Request

swagger:parameters GetIdentityID

func NewGetIdentityIDParams

func NewGetIdentityIDParams() GetIdentityIDParams

NewGetIdentityIDParams creates a new GetIdentityIDParams object with the default values initialized.

func (*GetIdentityIDParams) BindRequest

func (o *GetIdentityIDParams) 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

type GetIdentityIDURL

type GetIdentityIDURL struct {
	ID string
	// contains filtered or unexported fields
}

GetIdentityIDURL generates an URL for the get identity ID operation

func (*GetIdentityIDURL) Build

func (o *GetIdentityIDURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetIdentityIDURL) BuildFull

func (o *GetIdentityIDURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetIdentityIDURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetIdentityIDURL) SetBasePath

func (o *GetIdentityIDURL) 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 (*GetIdentityIDURL) String

func (o *GetIdentityIDURL) String() string

String returns the string representation of the path with query string

func (*GetIdentityIDURL) StringFull

func (o *GetIdentityIDURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetIdentityIDURL) WithBasePath

func (o *GetIdentityIDURL) WithBasePath(bp string) *GetIdentityIDURL

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 GetIdentityIDUnreachable

type GetIdentityIDUnreachable struct {

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

GetIdentityIDUnreachable Identity storage unreachable. Likely a network problem.

swagger:response getIdentityIdUnreachable

func NewGetIdentityIDUnreachable

func NewGetIdentityIDUnreachable() *GetIdentityIDUnreachable

NewGetIdentityIDUnreachable creates GetIdentityIDUnreachable with default headers values

func (*GetIdentityIDUnreachable) SetPayload

func (o *GetIdentityIDUnreachable) SetPayload(payload models.Error)

SetPayload sets the payload to the get identity Id unreachable response

func (*GetIdentityIDUnreachable) WithPayload

WithPayload adds the payload to the get identity Id unreachable response

func (*GetIdentityIDUnreachable) WriteResponse

func (o *GetIdentityIDUnreachable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetIdentityInvalidStorageFormat

type GetIdentityInvalidStorageFormat struct {

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

GetIdentityInvalidStorageFormat Invalid identity format in storage

swagger:response getIdentityInvalidStorageFormat

func NewGetIdentityInvalidStorageFormat

func NewGetIdentityInvalidStorageFormat() *GetIdentityInvalidStorageFormat

NewGetIdentityInvalidStorageFormat creates GetIdentityInvalidStorageFormat with default headers values

func (*GetIdentityInvalidStorageFormat) SetPayload

func (o *GetIdentityInvalidStorageFormat) SetPayload(payload models.Error)

SetPayload sets the payload to the get identity invalid storage format response

func (*GetIdentityInvalidStorageFormat) WithPayload

WithPayload adds the payload to the get identity invalid storage format response

func (*GetIdentityInvalidStorageFormat) WriteResponse

func (o *GetIdentityInvalidStorageFormat) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetIdentityNotFound

type GetIdentityNotFound struct {
}

GetIdentityNotFound Identity not found

swagger:response getIdentityNotFound

func NewGetIdentityNotFound

func NewGetIdentityNotFound() *GetIdentityNotFound

NewGetIdentityNotFound creates GetIdentityNotFound with default headers values

func (*GetIdentityNotFound) WriteResponse

func (o *GetIdentityNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetIdentityOK

type GetIdentityOK struct {

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

GetIdentityOK Success

swagger:response getIdentityOK

func NewGetIdentityOK

func NewGetIdentityOK() *GetIdentityOK

NewGetIdentityOK creates GetIdentityOK with default headers values

func (*GetIdentityOK) SetPayload

func (o *GetIdentityOK) SetPayload(payload *models.Identity)

SetPayload sets the payload to the get identity o k response

func (*GetIdentityOK) WithPayload

func (o *GetIdentityOK) WithPayload(payload *models.Identity) *GetIdentityOK

WithPayload adds the payload to the get identity o k response

func (*GetIdentityOK) WriteResponse

func (o *GetIdentityOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetIdentityParams

type GetIdentityParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: body
	*/
	Labels models.Labels
}

GetIdentityParams contains all the bound params for the get identity operation typically these are obtained from a http.Request

swagger:parameters GetIdentity

func NewGetIdentityParams

func NewGetIdentityParams() GetIdentityParams

NewGetIdentityParams creates a new GetIdentityParams object with the default values initialized.

func (*GetIdentityParams) BindRequest

func (o *GetIdentityParams) 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

type GetIdentityURL

type GetIdentityURL struct {
	// contains filtered or unexported fields
}

GetIdentityURL generates an URL for the get identity operation

func (*GetIdentityURL) Build

func (o *GetIdentityURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetIdentityURL) BuildFull

func (o *GetIdentityURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetIdentityURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetIdentityURL) SetBasePath

func (o *GetIdentityURL) 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 (*GetIdentityURL) String

func (o *GetIdentityURL) String() string

String returns the string representation of the path with query string

func (*GetIdentityURL) StringFull

func (o *GetIdentityURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetIdentityURL) WithBasePath

func (o *GetIdentityURL) WithBasePath(bp string) *GetIdentityURL

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 GetIdentityUnreachable

type GetIdentityUnreachable struct {

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

GetIdentityUnreachable Identity storage unreachable. Likely a network problem.

swagger:response getIdentityUnreachable

func NewGetIdentityUnreachable

func NewGetIdentityUnreachable() *GetIdentityUnreachable

NewGetIdentityUnreachable creates GetIdentityUnreachable with default headers values

func (*GetIdentityUnreachable) SetPayload

func (o *GetIdentityUnreachable) SetPayload(payload models.Error)

SetPayload sets the payload to the get identity unreachable response

func (*GetIdentityUnreachable) WithPayload

func (o *GetIdentityUnreachable) WithPayload(payload models.Error) *GetIdentityUnreachable

WithPayload adds the payload to the get identity unreachable response

func (*GetIdentityUnreachable) WriteResponse

func (o *GetIdentityUnreachable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicy

type GetPolicy struct {
	Context *middleware.Context
	Handler GetPolicyHandler
}

GetPolicy swagger:route GET /policy policy getPolicy

Retrieve entire policy tree

Returns the entire policy tree with all children.

func NewGetPolicy

func NewGetPolicy(ctx *middleware.Context, handler GetPolicyHandler) *GetPolicy

NewGetPolicy creates a new http.Handler for the get policy operation

func (*GetPolicy) ServeHTTP

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

type GetPolicyHandler

type GetPolicyHandler interface {
	Handle(GetPolicyParams) middleware.Responder
}

GetPolicyHandler interface for that can handle valid get policy params

type GetPolicyHandlerFunc

type GetPolicyHandlerFunc func(GetPolicyParams) middleware.Responder

GetPolicyHandlerFunc turns a function with the right signature into a get policy handler

func (GetPolicyHandlerFunc) Handle

Handle executing the request and returning a response

type GetPolicyNotFound added in v0.9.0

type GetPolicyNotFound struct {
}

GetPolicyNotFound No policy rules found

swagger:response getPolicyNotFound

func NewGetPolicyNotFound added in v0.9.0

func NewGetPolicyNotFound() *GetPolicyNotFound

NewGetPolicyNotFound creates GetPolicyNotFound with default headers values

func (*GetPolicyNotFound) WriteResponse added in v0.9.0

func (o *GetPolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyOK

type GetPolicyOK struct {

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

GetPolicyOK Success

swagger:response getPolicyOK

func NewGetPolicyOK

func NewGetPolicyOK() *GetPolicyOK

NewGetPolicyOK creates GetPolicyOK with default headers values

func (*GetPolicyOK) SetPayload

func (o *GetPolicyOK) SetPayload(payload *models.Policy)

SetPayload sets the payload to the get policy o k response

func (*GetPolicyOK) WithPayload

func (o *GetPolicyOK) WithPayload(payload *models.Policy) *GetPolicyOK

WithPayload adds the payload to the get policy o k response

func (*GetPolicyOK) WriteResponse

func (o *GetPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyParams

type GetPolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  In: body
	*/
	Labels models.Labels
}

GetPolicyParams contains all the bound params for the get policy operation typically these are obtained from a http.Request

swagger:parameters GetPolicy

func NewGetPolicyParams

func NewGetPolicyParams() GetPolicyParams

NewGetPolicyParams creates a new GetPolicyParams object with the default values initialized.

func (*GetPolicyParams) BindRequest

func (o *GetPolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls

type GetPolicyResolve

type GetPolicyResolve struct {
	Context *middleware.Context
	Handler GetPolicyResolveHandler
}

GetPolicyResolve swagger:route GET /policy/resolve policy getPolicyResolve

Resolve policy for an identity context

func NewGetPolicyResolve

func NewGetPolicyResolve(ctx *middleware.Context, handler GetPolicyResolveHandler) *GetPolicyResolve

NewGetPolicyResolve creates a new http.Handler for the get policy resolve operation

func (*GetPolicyResolve) ServeHTTP

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

type GetPolicyResolveHandler

type GetPolicyResolveHandler interface {
	Handle(GetPolicyResolveParams) middleware.Responder
}

GetPolicyResolveHandler interface for that can handle valid get policy resolve params

type GetPolicyResolveHandlerFunc

type GetPolicyResolveHandlerFunc func(GetPolicyResolveParams) middleware.Responder

GetPolicyResolveHandlerFunc turns a function with the right signature into a get policy resolve handler

func (GetPolicyResolveHandlerFunc) Handle

Handle executing the request and returning a response

type GetPolicyResolveOK

type GetPolicyResolveOK struct {

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

GetPolicyResolveOK Success

swagger:response getPolicyResolveOK

func NewGetPolicyResolveOK

func NewGetPolicyResolveOK() *GetPolicyResolveOK

NewGetPolicyResolveOK creates GetPolicyResolveOK with default headers values

func (*GetPolicyResolveOK) SetPayload

func (o *GetPolicyResolveOK) SetPayload(payload *models.PolicyTraceResult)

SetPayload sets the payload to the get policy resolve o k response

func (*GetPolicyResolveOK) WithPayload

WithPayload adds the payload to the get policy resolve o k response

func (*GetPolicyResolveOK) WriteResponse

func (o *GetPolicyResolveOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPolicyResolveParams

type GetPolicyResolveParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Context to provide policy evaluation on
	  In: body
	*/
	IdentityContext *models.IdentityContext
}

GetPolicyResolveParams contains all the bound params for the get policy resolve operation typically these are obtained from a http.Request

swagger:parameters GetPolicyResolve

func NewGetPolicyResolveParams

func NewGetPolicyResolveParams() GetPolicyResolveParams

NewGetPolicyResolveParams creates a new GetPolicyResolveParams object with the default values initialized.

func (*GetPolicyResolveParams) BindRequest

func (o *GetPolicyResolveParams) 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

type GetPolicyResolveURL

type GetPolicyResolveURL struct {
	// contains filtered or unexported fields
}

GetPolicyResolveURL generates an URL for the get policy resolve operation

func (*GetPolicyResolveURL) Build

func (o *GetPolicyResolveURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetPolicyResolveURL) BuildFull

func (o *GetPolicyResolveURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetPolicyResolveURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetPolicyResolveURL) SetBasePath

func (o *GetPolicyResolveURL) 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 (*GetPolicyResolveURL) String

func (o *GetPolicyResolveURL) String() string

String returns the string representation of the path with query string

func (*GetPolicyResolveURL) StringFull

func (o *GetPolicyResolveURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetPolicyResolveURL) WithBasePath

func (o *GetPolicyResolveURL) WithBasePath(bp string) *GetPolicyResolveURL

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 GetPolicyURL

type GetPolicyURL struct {
	// contains filtered or unexported fields
}

GetPolicyURL generates an URL for the get policy operation

func (*GetPolicyURL) Build

func (o *GetPolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetPolicyURL) BuildFull

func (o *GetPolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetPolicyURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetPolicyURL) SetBasePath

func (o *GetPolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetPolicyURL) String

func (o *GetPolicyURL) String() string

String returns the string representation of the path with query string

func (*GetPolicyURL) StringFull

func (o *GetPolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetPolicyURL) WithBasePath

func (o *GetPolicyURL) WithBasePath(bp string) *GetPolicyURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PutPolicy added in v0.9.0

type PutPolicy struct {
	Context *middleware.Context
	Handler PutPolicyHandler
}

PutPolicy swagger:route PUT /policy policy putPolicy

Create or update a policy (sub)tree

func NewPutPolicy added in v0.9.0

func NewPutPolicy(ctx *middleware.Context, handler PutPolicyHandler) *PutPolicy

NewPutPolicy creates a new http.Handler for the put policy operation

func (*PutPolicy) ServeHTTP added in v0.9.0

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

type PutPolicyFailure added in v0.9.0

type PutPolicyFailure struct {

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

PutPolicyFailure Policy import failed

swagger:response putPolicyFailure

func NewPutPolicyFailure added in v0.9.0

func NewPutPolicyFailure() *PutPolicyFailure

NewPutPolicyFailure creates PutPolicyFailure with default headers values

func (*PutPolicyFailure) SetPayload added in v0.9.0

func (o *PutPolicyFailure) SetPayload(payload models.Error)

SetPayload sets the payload to the put policy failure response

func (*PutPolicyFailure) WithPayload added in v0.9.0

func (o *PutPolicyFailure) WithPayload(payload models.Error) *PutPolicyFailure

WithPayload adds the payload to the put policy failure response

func (*PutPolicyFailure) WriteResponse added in v0.9.0

func (o *PutPolicyFailure) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutPolicyHandler added in v0.9.0

type PutPolicyHandler interface {
	Handle(PutPolicyParams) middleware.Responder
}

PutPolicyHandler interface for that can handle valid put policy params

type PutPolicyHandlerFunc added in v0.9.0

type PutPolicyHandlerFunc func(PutPolicyParams) middleware.Responder

PutPolicyHandlerFunc turns a function with the right signature into a put policy handler

func (PutPolicyHandlerFunc) Handle added in v0.9.0

Handle executing the request and returning a response

type PutPolicyInvalidPath added in v0.9.0

type PutPolicyInvalidPath struct {

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

PutPolicyInvalidPath Invalid path

swagger:response putPolicyInvalidPath

func NewPutPolicyInvalidPath added in v0.9.0

func NewPutPolicyInvalidPath() *PutPolicyInvalidPath

NewPutPolicyInvalidPath creates PutPolicyInvalidPath with default headers values

func (*PutPolicyInvalidPath) SetPayload added in v0.9.0

func (o *PutPolicyInvalidPath) SetPayload(payload models.Error)

SetPayload sets the payload to the put policy invalid path response

func (*PutPolicyInvalidPath) WithPayload added in v0.9.0

func (o *PutPolicyInvalidPath) WithPayload(payload models.Error) *PutPolicyInvalidPath

WithPayload adds the payload to the put policy invalid path response

func (*PutPolicyInvalidPath) WriteResponse added in v0.9.0

func (o *PutPolicyInvalidPath) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutPolicyInvalidPolicy added in v0.9.0

type PutPolicyInvalidPolicy struct {

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

PutPolicyInvalidPolicy Invalid policy

swagger:response putPolicyInvalidPolicy

func NewPutPolicyInvalidPolicy added in v0.9.0

func NewPutPolicyInvalidPolicy() *PutPolicyInvalidPolicy

NewPutPolicyInvalidPolicy creates PutPolicyInvalidPolicy with default headers values

func (*PutPolicyInvalidPolicy) SetPayload added in v0.9.0

func (o *PutPolicyInvalidPolicy) SetPayload(payload models.Error)

SetPayload sets the payload to the put policy invalid policy response

func (*PutPolicyInvalidPolicy) WithPayload added in v0.9.0

func (o *PutPolicyInvalidPolicy) WithPayload(payload models.Error) *PutPolicyInvalidPolicy

WithPayload adds the payload to the put policy invalid policy response

func (*PutPolicyInvalidPolicy) WriteResponse added in v0.9.0

func (o *PutPolicyInvalidPolicy) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutPolicyOK added in v0.9.0

type PutPolicyOK struct {

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

PutPolicyOK Success

swagger:response putPolicyOK

func NewPutPolicyOK added in v0.9.0

func NewPutPolicyOK() *PutPolicyOK

NewPutPolicyOK creates PutPolicyOK with default headers values

func (*PutPolicyOK) SetPayload added in v0.9.0

func (o *PutPolicyOK) SetPayload(payload *models.Policy)

SetPayload sets the payload to the put policy o k response

func (*PutPolicyOK) WithPayload added in v0.9.0

func (o *PutPolicyOK) WithPayload(payload *models.Policy) *PutPolicyOK

WithPayload adds the payload to the put policy o k response

func (*PutPolicyOK) WriteResponse added in v0.9.0

func (o *PutPolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutPolicyParams added in v0.9.0

type PutPolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Policy rules
	  Required: true
	  In: body
	*/
	Policy *string
}

PutPolicyParams contains all the bound params for the put policy operation typically these are obtained from a http.Request

swagger:parameters PutPolicy

func NewPutPolicyParams added in v0.9.0

func NewPutPolicyParams() PutPolicyParams

NewPutPolicyParams creates a new PutPolicyParams object with the default values initialized.

func (*PutPolicyParams) BindRequest added in v0.9.0

func (o *PutPolicyParams) 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

type PutPolicyURL added in v0.9.0

type PutPolicyURL struct {
	// contains filtered or unexported fields
}

PutPolicyURL generates an URL for the put policy operation

func (*PutPolicyURL) Build added in v0.9.0

func (o *PutPolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*PutPolicyURL) BuildFull added in v0.9.0

func (o *PutPolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PutPolicyURL) Must added in v0.9.0

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

Must is a helper function to panic when the url builder returns an error

func (*PutPolicyURL) SetBasePath added in v0.9.0

func (o *PutPolicyURL) 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 (*PutPolicyURL) String added in v0.9.0

func (o *PutPolicyURL) String() string

String returns the string representation of the path with query string

func (*PutPolicyURL) StringFull added in v0.9.0

func (o *PutPolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PutPolicyURL) WithBasePath added in v0.9.0

func (o *PutPolicyURL) WithBasePath(bp string) *PutPolicyURL

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