policy

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 7 Imported by: 41

Documentation

Index

Constants

View Source
const DeleteFqdnCacheBadRequestCode int = 400

DeleteFqdnCacheBadRequestCode is the HTTP code returned for type DeleteFqdnCacheBadRequest

View Source
const DeleteFqdnCacheForbiddenCode int = 403

DeleteFqdnCacheForbiddenCode is the HTTP code returned for type DeleteFqdnCacheForbidden

View Source
const DeleteFqdnCacheOKCode int = 200

DeleteFqdnCacheOKCode is the HTTP code returned for type DeleteFqdnCacheOK

View Source
const GetFqdnCacheBadRequestCode int = 400

GetFqdnCacheBadRequestCode is the HTTP code returned for type GetFqdnCacheBadRequest

View Source
const GetFqdnCacheIDBadRequestCode int = 400

GetFqdnCacheIDBadRequestCode is the HTTP code returned for type GetFqdnCacheIDBadRequest

View Source
const GetFqdnCacheIDNotFoundCode int = 404

GetFqdnCacheIDNotFoundCode is the HTTP code returned for type GetFqdnCacheIDNotFound

View Source
const GetFqdnCacheIDOKCode int = 200

GetFqdnCacheIDOKCode is the HTTP code returned for type GetFqdnCacheIDOK

View Source
const GetFqdnCacheNotFoundCode int = 404

GetFqdnCacheNotFoundCode is the HTTP code returned for type GetFqdnCacheNotFound

View Source
const GetFqdnCacheOKCode int = 200

GetFqdnCacheOKCode is the HTTP code returned for type GetFqdnCacheOK

View Source
const GetFqdnNamesBadRequestCode int = 400

GetFqdnNamesBadRequestCode is the HTTP code returned for type GetFqdnNamesBadRequest

View Source
const GetFqdnNamesOKCode int = 200

GetFqdnNamesOKCode is the HTTP code returned for type GetFqdnNamesOK

View Source
const GetIPBadRequestCode int = 400

GetIPBadRequestCode is the HTTP code returned for type GetIPBadRequest

View Source
const GetIPNotFoundCode int = 404

GetIPNotFoundCode is the HTTP code returned for type GetIPNotFound

View Source
const GetIPOKCode int = 200

GetIPOKCode is the HTTP code returned for type GetIPOK

View Source
const GetIdentityEndpointsNotFoundCode int = 404

GetIdentityEndpointsNotFoundCode is the HTTP code returned for type GetIdentityEndpointsNotFound

View Source
const GetIdentityEndpointsOKCode int = 200

GetIdentityEndpointsOKCode is the HTTP code returned for type GetIdentityEndpointsOK

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 GetPolicySelectorsOKCode int = 200

GetPolicySelectorsOKCode is the HTTP code returned for type GetPolicySelectorsOK

View Source
const GetPolicySubjectSelectorsOKCode int = 200

GetPolicySubjectSelectorsOKCode is the HTTP code returned for type GetPolicySubjectSelectorsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteFqdnCache added in v0.15.7

type DeleteFqdnCache struct {
	Context *middleware.Context
	Handler DeleteFqdnCacheHandler
}
DeleteFqdnCache swagger:route DELETE /fqdn/cache policy deleteFqdnCache

Deletes matching DNS lookups from the policy-generation cache.

Deletes matching DNS lookups from the cache, optionally restricted by DNS name. The removed IP data will no longer be used in generated policies.

func NewDeleteFqdnCache added in v0.15.7

func NewDeleteFqdnCache(ctx *middleware.Context, handler DeleteFqdnCacheHandler) *DeleteFqdnCache

NewDeleteFqdnCache creates a new http.Handler for the delete fqdn cache operation

func (*DeleteFqdnCache) ServeHTTP added in v0.15.7

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

type DeleteFqdnCacheBadRequest added in v0.15.7

type DeleteFqdnCacheBadRequest struct {

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

DeleteFqdnCacheBadRequest Invalid request (error parsing parameters)

swagger:response deleteFqdnCacheBadRequest

func NewDeleteFqdnCacheBadRequest added in v0.15.7

func NewDeleteFqdnCacheBadRequest() *DeleteFqdnCacheBadRequest

NewDeleteFqdnCacheBadRequest creates DeleteFqdnCacheBadRequest with default headers values

func (*DeleteFqdnCacheBadRequest) SetPayload added in v0.15.7

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

SetPayload sets the payload to the delete fqdn cache bad request response

func (*DeleteFqdnCacheBadRequest) WithPayload added in v0.15.7

WithPayload adds the payload to the delete fqdn cache bad request response

func (*DeleteFqdnCacheBadRequest) WriteResponse added in v0.15.7

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

WriteResponse to the client

type DeleteFqdnCacheForbidden added in v0.15.7

type DeleteFqdnCacheForbidden struct {
}

DeleteFqdnCacheForbidden Forbidden

swagger:response deleteFqdnCacheForbidden

func NewDeleteFqdnCacheForbidden added in v0.15.7

func NewDeleteFqdnCacheForbidden() *DeleteFqdnCacheForbidden

NewDeleteFqdnCacheForbidden creates DeleteFqdnCacheForbidden with default headers values

func (*DeleteFqdnCacheForbidden) WriteResponse added in v0.15.7

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

WriteResponse to the client

type DeleteFqdnCacheHandler added in v0.15.7

type DeleteFqdnCacheHandler interface {
	Handle(DeleteFqdnCacheParams) middleware.Responder
}

DeleteFqdnCacheHandler interface for that can handle valid delete fqdn cache params

type DeleteFqdnCacheHandlerFunc added in v0.15.7

type DeleteFqdnCacheHandlerFunc func(DeleteFqdnCacheParams) middleware.Responder

DeleteFqdnCacheHandlerFunc turns a function with the right signature into a delete fqdn cache handler

func (DeleteFqdnCacheHandlerFunc) Handle added in v0.15.7

Handle executing the request and returning a response

type DeleteFqdnCacheOK added in v0.15.7

type DeleteFqdnCacheOK struct {
}

DeleteFqdnCacheOK Success

swagger:response deleteFqdnCacheOK

func NewDeleteFqdnCacheOK added in v0.15.7

func NewDeleteFqdnCacheOK() *DeleteFqdnCacheOK

NewDeleteFqdnCacheOK creates DeleteFqdnCacheOK with default headers values

func (*DeleteFqdnCacheOK) WriteResponse added in v0.15.7

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

WriteResponse to the client

type DeleteFqdnCacheParams added in v0.15.7

type DeleteFqdnCacheParams struct {
	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A toFQDNs compatible matchPattern expression
	  In: query
	*/
	Matchpattern *string
}

DeleteFqdnCacheParams contains all the bound params for the delete fqdn cache operation typically these are obtained from a http.Request

swagger:parameters DeleteFqdnCache

func NewDeleteFqdnCacheParams added in v0.15.7

func NewDeleteFqdnCacheParams() DeleteFqdnCacheParams

NewDeleteFqdnCacheParams creates a new DeleteFqdnCacheParams object

There are no default values defined in the spec.

func (*DeleteFqdnCacheParams) BindRequest added in v0.15.7

func (o *DeleteFqdnCacheParams) 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 NewDeleteFqdnCacheParams() beforehand.

type GetFqdnCache added in v0.15.7

type GetFqdnCache struct {
	Context *middleware.Context
	Handler GetFqdnCacheHandler
}
GetFqdnCache swagger:route GET /fqdn/cache policy getFqdnCache

Retrieves the list of DNS lookups intercepted from all endpoints.

Retrieves the list of DNS lookups intercepted from endpoints, optionally filtered by DNS name, CIDR IP range or source.

func NewGetFqdnCache added in v0.15.7

func NewGetFqdnCache(ctx *middleware.Context, handler GetFqdnCacheHandler) *GetFqdnCache

NewGetFqdnCache creates a new http.Handler for the get fqdn cache operation

func (*GetFqdnCache) ServeHTTP added in v0.15.7

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

type GetFqdnCacheBadRequest added in v0.15.7

type GetFqdnCacheBadRequest struct {

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

GetFqdnCacheBadRequest Invalid request (error parsing parameters)

swagger:response getFqdnCacheBadRequest

func NewGetFqdnCacheBadRequest added in v0.15.7

func NewGetFqdnCacheBadRequest() *GetFqdnCacheBadRequest

NewGetFqdnCacheBadRequest creates GetFqdnCacheBadRequest with default headers values

func (*GetFqdnCacheBadRequest) SetPayload added in v0.15.7

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

SetPayload sets the payload to the get fqdn cache bad request response

func (*GetFqdnCacheBadRequest) WithPayload added in v0.15.7

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

WithPayload adds the payload to the get fqdn cache bad request response

func (*GetFqdnCacheBadRequest) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetFqdnCacheHandler added in v0.15.7

type GetFqdnCacheHandler interface {
	Handle(GetFqdnCacheParams) middleware.Responder
}

GetFqdnCacheHandler interface for that can handle valid get fqdn cache params

type GetFqdnCacheHandlerFunc added in v0.15.7

type GetFqdnCacheHandlerFunc func(GetFqdnCacheParams) middleware.Responder

GetFqdnCacheHandlerFunc turns a function with the right signature into a get fqdn cache handler

func (GetFqdnCacheHandlerFunc) Handle added in v0.15.7

Handle executing the request and returning a response

type GetFqdnCacheID added in v0.15.7

type GetFqdnCacheID struct {
	Context *middleware.Context
	Handler GetFqdnCacheIDHandler
}
GetFqdnCacheID swagger:route GET /fqdn/cache/{id} policy getFqdnCacheId

Retrieves the list of DNS lookups intercepted from an endpoint.

Retrieves the list of DNS lookups intercepted from the specific endpoint, optionally filtered by endpoint id, DNS name, CIDR IP range or source.

func NewGetFqdnCacheID added in v0.15.7

func NewGetFqdnCacheID(ctx *middleware.Context, handler GetFqdnCacheIDHandler) *GetFqdnCacheID

NewGetFqdnCacheID creates a new http.Handler for the get fqdn cache ID operation

func (*GetFqdnCacheID) ServeHTTP added in v0.15.7

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

type GetFqdnCacheIDBadRequest added in v0.15.7

type GetFqdnCacheIDBadRequest struct {

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

GetFqdnCacheIDBadRequest Invalid request (error parsing parameters)

swagger:response getFqdnCacheIdBadRequest

func NewGetFqdnCacheIDBadRequest added in v0.15.7

func NewGetFqdnCacheIDBadRequest() *GetFqdnCacheIDBadRequest

NewGetFqdnCacheIDBadRequest creates GetFqdnCacheIDBadRequest with default headers values

func (*GetFqdnCacheIDBadRequest) SetPayload added in v0.15.7

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

SetPayload sets the payload to the get fqdn cache Id bad request response

func (*GetFqdnCacheIDBadRequest) WithPayload added in v0.15.7

WithPayload adds the payload to the get fqdn cache Id bad request response

func (*GetFqdnCacheIDBadRequest) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetFqdnCacheIDHandler added in v0.15.7

type GetFqdnCacheIDHandler interface {
	Handle(GetFqdnCacheIDParams) middleware.Responder
}

GetFqdnCacheIDHandler interface for that can handle valid get fqdn cache ID params

type GetFqdnCacheIDHandlerFunc added in v0.15.7

type GetFqdnCacheIDHandlerFunc func(GetFqdnCacheIDParams) middleware.Responder

GetFqdnCacheIDHandlerFunc turns a function with the right signature into a get fqdn cache ID handler

func (GetFqdnCacheIDHandlerFunc) Handle added in v0.15.7

Handle executing the request and returning a response

type GetFqdnCacheIDNotFound added in v0.15.7

type GetFqdnCacheIDNotFound struct {
}

GetFqdnCacheIDNotFound No DNS data with provided parameters found

swagger:response getFqdnCacheIdNotFound

func NewGetFqdnCacheIDNotFound added in v0.15.7

func NewGetFqdnCacheIDNotFound() *GetFqdnCacheIDNotFound

NewGetFqdnCacheIDNotFound creates GetFqdnCacheIDNotFound with default headers values

func (*GetFqdnCacheIDNotFound) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetFqdnCacheIDOK added in v0.15.7

type GetFqdnCacheIDOK struct {

	/*
	  In: Body
	*/
	Payload []*models.DNSLookup `json:"body,omitempty"`
}

GetFqdnCacheIDOK Success

swagger:response getFqdnCacheIdOK

func NewGetFqdnCacheIDOK added in v0.15.7

func NewGetFqdnCacheIDOK() *GetFqdnCacheIDOK

NewGetFqdnCacheIDOK creates GetFqdnCacheIDOK with default headers values

func (*GetFqdnCacheIDOK) SetPayload added in v0.15.7

func (o *GetFqdnCacheIDOK) SetPayload(payload []*models.DNSLookup)

SetPayload sets the payload to the get fqdn cache Id o k response

func (*GetFqdnCacheIDOK) WithPayload added in v0.15.7

func (o *GetFqdnCacheIDOK) WithPayload(payload []*models.DNSLookup) *GetFqdnCacheIDOK

WithPayload adds the payload to the get fqdn cache Id o k response

func (*GetFqdnCacheIDOK) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetFqdnCacheIDParams added in v0.15.7

type GetFqdnCacheIDParams struct {
	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A CIDR range of IPs
	  In: query
	*/
	Cidr *string

	/*String describing an endpoint with the format “[prefix:]id“. If no prefix
	is specified, a prefix of “cilium-local:“ is assumed. Not all endpoints
	will be addressable by all endpoint ID prefixes with the exception of the
	local Cilium UUID which is assigned to all endpoints.

	Supported endpoint id prefixes:
	  - cilium-local: Local Cilium endpoint UUID, e.g. cilium-local:3389595
	  - cilium-global: Global Cilium endpoint UUID, e.g. cilium-global:cluster1:nodeX:452343
	  - cni-attachment-id: CNI attachment ID, e.g. cni-attachment-id:22222:eth0
	  - container-id: Container runtime ID, e.g. container-id:22222 (deprecated, may not be unique)
	  - container-name: Container name, e.g. container-name:foobar (deprecated, may not be unique)
	  - pod-name: pod name for this container if K8s is enabled, e.g. pod-name:default:foobar (deprecated, may not be unique)
	  - cep-name: cep name for this container if K8s is enabled, e.g. pod-name:default:foobar-net1
	  - docker-endpoint: Docker libnetwork endpoint ID, e.g. docker-endpoint:4444

	  Required: true
	  In: path
	*/
	ID string

	/*A toFQDNs compatible matchPattern expression
	  In: query
	*/
	Matchpattern *string

	/*Source from which FQDN entries come from
	  In: query
	*/
	Source *string
}

GetFqdnCacheIDParams contains all the bound params for the get fqdn cache ID operation typically these are obtained from a http.Request

swagger:parameters GetFqdnCacheID

func NewGetFqdnCacheIDParams added in v0.15.7

func NewGetFqdnCacheIDParams() GetFqdnCacheIDParams

NewGetFqdnCacheIDParams creates a new GetFqdnCacheIDParams object

There are no default values defined in the spec.

func (*GetFqdnCacheIDParams) BindRequest added in v0.15.7

func (o *GetFqdnCacheIDParams) 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 NewGetFqdnCacheIDParams() beforehand.

type GetFqdnCacheNotFound added in v0.15.7

type GetFqdnCacheNotFound struct {
}

GetFqdnCacheNotFound No DNS data with provided parameters found

swagger:response getFqdnCacheNotFound

func NewGetFqdnCacheNotFound added in v0.15.7

func NewGetFqdnCacheNotFound() *GetFqdnCacheNotFound

NewGetFqdnCacheNotFound creates GetFqdnCacheNotFound with default headers values

func (*GetFqdnCacheNotFound) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetFqdnCacheOK added in v0.15.7

type GetFqdnCacheOK struct {

	/*
	  In: Body
	*/
	Payload []*models.DNSLookup `json:"body,omitempty"`
}

GetFqdnCacheOK Success

swagger:response getFqdnCacheOK

func NewGetFqdnCacheOK added in v0.15.7

func NewGetFqdnCacheOK() *GetFqdnCacheOK

NewGetFqdnCacheOK creates GetFqdnCacheOK with default headers values

func (*GetFqdnCacheOK) SetPayload added in v0.15.7

func (o *GetFqdnCacheOK) SetPayload(payload []*models.DNSLookup)

SetPayload sets the payload to the get fqdn cache o k response

func (*GetFqdnCacheOK) WithPayload added in v0.15.7

func (o *GetFqdnCacheOK) WithPayload(payload []*models.DNSLookup) *GetFqdnCacheOK

WithPayload adds the payload to the get fqdn cache o k response

func (*GetFqdnCacheOK) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetFqdnCacheParams added in v0.15.7

type GetFqdnCacheParams struct {
	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A CIDR range of IPs
	  In: query
	*/
	Cidr *string

	/*A toFQDNs compatible matchPattern expression
	  In: query
	*/
	Matchpattern *string

	/*Source from which FQDN entries come from
	  In: query
	*/
	Source *string
}

GetFqdnCacheParams contains all the bound params for the get fqdn cache operation typically these are obtained from a http.Request

swagger:parameters GetFqdnCache

func NewGetFqdnCacheParams added in v0.15.7

func NewGetFqdnCacheParams() GetFqdnCacheParams

NewGetFqdnCacheParams creates a new GetFqdnCacheParams object

There are no default values defined in the spec.

func (*GetFqdnCacheParams) BindRequest added in v0.15.7

func (o *GetFqdnCacheParams) 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 NewGetFqdnCacheParams() beforehand.

type GetFqdnNames added in v0.15.7

type GetFqdnNames struct {
	Context *middleware.Context
	Handler GetFqdnNamesHandler
}
GetFqdnNames swagger:route GET /fqdn/names policy getFqdnNames

List internal DNS selector representations

Retrieves the list of DNS-related fields (names to poll, selectors and their corresponding regexes).

func NewGetFqdnNames added in v0.15.7

func NewGetFqdnNames(ctx *middleware.Context, handler GetFqdnNamesHandler) *GetFqdnNames

NewGetFqdnNames creates a new http.Handler for the get fqdn names operation

func (*GetFqdnNames) ServeHTTP added in v0.15.7

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

type GetFqdnNamesBadRequest added in v0.15.7

type GetFqdnNamesBadRequest struct {

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

GetFqdnNamesBadRequest Invalid request (error parsing parameters)

swagger:response getFqdnNamesBadRequest

func NewGetFqdnNamesBadRequest added in v0.15.7

func NewGetFqdnNamesBadRequest() *GetFqdnNamesBadRequest

NewGetFqdnNamesBadRequest creates GetFqdnNamesBadRequest with default headers values

func (*GetFqdnNamesBadRequest) SetPayload added in v0.15.7

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

SetPayload sets the payload to the get fqdn names bad request response

func (*GetFqdnNamesBadRequest) WithPayload added in v0.15.7

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

WithPayload adds the payload to the get fqdn names bad request response

func (*GetFqdnNamesBadRequest) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetFqdnNamesHandler added in v0.15.7

type GetFqdnNamesHandler interface {
	Handle(GetFqdnNamesParams) middleware.Responder
}

GetFqdnNamesHandler interface for that can handle valid get fqdn names params

type GetFqdnNamesHandlerFunc added in v0.15.7

type GetFqdnNamesHandlerFunc func(GetFqdnNamesParams) middleware.Responder

GetFqdnNamesHandlerFunc turns a function with the right signature into a get fqdn names handler

func (GetFqdnNamesHandlerFunc) Handle added in v0.15.7

Handle executing the request and returning a response

type GetFqdnNamesOK added in v0.15.7

type GetFqdnNamesOK struct {

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

GetFqdnNamesOK Success

swagger:response getFqdnNamesOK

func NewGetFqdnNamesOK added in v0.15.7

func NewGetFqdnNamesOK() *GetFqdnNamesOK

NewGetFqdnNamesOK creates GetFqdnNamesOK with default headers values

func (*GetFqdnNamesOK) SetPayload added in v0.15.7

func (o *GetFqdnNamesOK) SetPayload(payload *models.NameManager)

SetPayload sets the payload to the get fqdn names o k response

func (*GetFqdnNamesOK) WithPayload added in v0.15.7

func (o *GetFqdnNamesOK) WithPayload(payload *models.NameManager) *GetFqdnNamesOK

WithPayload adds the payload to the get fqdn names o k response

func (*GetFqdnNamesOK) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetFqdnNamesParams added in v0.15.7

type GetFqdnNamesParams struct {
	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetFqdnNamesParams contains all the bound params for the get fqdn names operation typically these are obtained from a http.Request

swagger:parameters GetFqdnNames

func NewGetFqdnNamesParams added in v0.15.7

func NewGetFqdnNamesParams() GetFqdnNamesParams

NewGetFqdnNamesParams creates a new GetFqdnNamesParams object

There are no default values defined in the spec.

func (*GetFqdnNamesParams) BindRequest added in v0.15.7

func (o *GetFqdnNamesParams) 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 NewGetFqdnNamesParams() beforehand.

type GetIP added in v0.15.7

type GetIP struct {
	Context *middleware.Context
	Handler GetIPHandler
}
GetIP swagger:route GET /ip policy getIp

Lists information about known IP addresses

Retrieves a list of IPs with known associated information such as their identities, host addresses, Kubernetes pod names, etc. The list can optionally filtered by a CIDR IP range.

func NewGetIP added in v0.15.7

func NewGetIP(ctx *middleware.Context, handler GetIPHandler) *GetIP

NewGetIP creates a new http.Handler for the get IP operation

func (*GetIP) ServeHTTP added in v0.15.7

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

type GetIPBadRequest added in v0.15.7

type GetIPBadRequest struct {

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

GetIPBadRequest Invalid request (error parsing parameters)

swagger:response getIpBadRequest

func NewGetIPBadRequest added in v0.15.7

func NewGetIPBadRequest() *GetIPBadRequest

NewGetIPBadRequest creates GetIPBadRequest with default headers values

func (*GetIPBadRequest) SetPayload added in v0.15.7

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

SetPayload sets the payload to the get Ip bad request response

func (*GetIPBadRequest) WithPayload added in v0.15.7

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

WithPayload adds the payload to the get Ip bad request response

func (*GetIPBadRequest) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetIPHandler added in v0.15.7

type GetIPHandler interface {
	Handle(GetIPParams) middleware.Responder
}

GetIPHandler interface for that can handle valid get IP params

type GetIPHandlerFunc added in v0.15.7

type GetIPHandlerFunc func(GetIPParams) middleware.Responder

GetIPHandlerFunc turns a function with the right signature into a get IP handler

func (GetIPHandlerFunc) Handle added in v0.15.7

Handle executing the request and returning a response

type GetIPNotFound added in v0.15.7

type GetIPNotFound struct {
}

GetIPNotFound No IP cache entries with provided parameters found

swagger:response getIpNotFound

func NewGetIPNotFound added in v0.15.7

func NewGetIPNotFound() *GetIPNotFound

NewGetIPNotFound creates GetIPNotFound with default headers values

func (*GetIPNotFound) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetIPOK added in v0.15.7

type GetIPOK struct {

	/*
	  In: Body
	*/
	Payload []*models.IPListEntry `json:"body,omitempty"`
}

GetIPOK Success

swagger:response getIpOK

func NewGetIPOK added in v0.15.7

func NewGetIPOK() *GetIPOK

NewGetIPOK creates GetIPOK with default headers values

func (*GetIPOK) SetPayload added in v0.15.7

func (o *GetIPOK) SetPayload(payload []*models.IPListEntry)

SetPayload sets the payload to the get Ip o k response

func (*GetIPOK) WithPayload added in v0.15.7

func (o *GetIPOK) WithPayload(payload []*models.IPListEntry) *GetIPOK

WithPayload adds the payload to the get Ip o k response

func (*GetIPOK) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetIPParams added in v0.15.7

type GetIPParams struct {
	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A CIDR range of IPs
	  In: query
	*/
	Cidr *string

	/*List of labels

	  In: body
	*/
	Labels models.Labels
}

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

swagger:parameters GetIP

func NewGetIPParams added in v0.15.7

func NewGetIPParams() GetIPParams

NewGetIPParams creates a new GetIPParams object

There are no default values defined in the spec.

func (*GetIPParams) BindRequest added in v0.15.7

func (o *GetIPParams) 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 NewGetIPParams() beforehand.

type GetIdentity

type GetIdentity struct {
	Context *middleware.Context
	Handler GetIdentityHandler
}
GetIdentity swagger:route GET /identity policy getIdentity

Retrieves a list of identities that have metadata matching the provided parameters.

Retrieves a list of identities that have metadata matching the provided parameters, or all identities if no parameters are provided.

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 GetIdentityEndpoints added in v0.15.7

type GetIdentityEndpoints struct {
	Context *middleware.Context
	Handler GetIdentityEndpointsHandler
}
GetIdentityEndpoints swagger:route GET /identity/endpoints policy getIdentityEndpoints

Retrieve identities which are being used by local endpoints

func NewGetIdentityEndpoints added in v0.15.7

func NewGetIdentityEndpoints(ctx *middleware.Context, handler GetIdentityEndpointsHandler) *GetIdentityEndpoints

NewGetIdentityEndpoints creates a new http.Handler for the get identity endpoints operation

func (*GetIdentityEndpoints) ServeHTTP added in v0.15.7

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

type GetIdentityEndpointsHandler added in v0.15.7

type GetIdentityEndpointsHandler interface {
	Handle(GetIdentityEndpointsParams) middleware.Responder
}

GetIdentityEndpointsHandler interface for that can handle valid get identity endpoints params

type GetIdentityEndpointsHandlerFunc added in v0.15.7

type GetIdentityEndpointsHandlerFunc func(GetIdentityEndpointsParams) middleware.Responder

GetIdentityEndpointsHandlerFunc turns a function with the right signature into a get identity endpoints handler

func (GetIdentityEndpointsHandlerFunc) Handle added in v0.15.7

Handle executing the request and returning a response

type GetIdentityEndpointsNotFound added in v0.15.7

type GetIdentityEndpointsNotFound struct {
}

GetIdentityEndpointsNotFound Set of identities which are being used by local endpoints could not be found.

swagger:response getIdentityEndpointsNotFound

func NewGetIdentityEndpointsNotFound added in v0.15.7

func NewGetIdentityEndpointsNotFound() *GetIdentityEndpointsNotFound

NewGetIdentityEndpointsNotFound creates GetIdentityEndpointsNotFound with default headers values

func (*GetIdentityEndpointsNotFound) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetIdentityEndpointsOK added in v0.15.7

type GetIdentityEndpointsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.IdentityEndpoints `json:"body,omitempty"`
}

GetIdentityEndpointsOK Success

swagger:response getIdentityEndpointsOK

func NewGetIdentityEndpointsOK added in v0.15.7

func NewGetIdentityEndpointsOK() *GetIdentityEndpointsOK

NewGetIdentityEndpointsOK creates GetIdentityEndpointsOK with default headers values

func (*GetIdentityEndpointsOK) SetPayload added in v0.15.7

func (o *GetIdentityEndpointsOK) SetPayload(payload []*models.IdentityEndpoints)

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

func (*GetIdentityEndpointsOK) WithPayload added in v0.15.7

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

func (*GetIdentityEndpointsOK) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetIdentityEndpointsParams added in v0.15.7

type GetIdentityEndpointsParams struct {
	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

swagger:parameters GetIdentityEndpoints

func NewGetIdentityEndpointsParams added in v0.15.7

func NewGetIdentityEndpointsParams() GetIdentityEndpointsParams

NewGetIdentityEndpointsParams creates a new GetIdentityEndpointsParams object

There are no default values defined in the spec.

func (*GetIdentityEndpointsParams) BindRequest added in v0.15.7

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 NewGetIdentityEndpointsParams() beforehand.

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 `json:"-"`

	/*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

There are no default values defined in the spec.

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.

To ensure default values, the struct must have been initialized with NewGetIdentityIDParams() beforehand.

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 Identities with provided parameters 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 `json:"-"`

	/*List of labels

	  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

There are no default values defined in the spec.

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.

To ensure default values, the struct must have been initialized with NewGetIdentityParams() beforehand.

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 deprecated

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.

Deprecated: will be removed in v1.19

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 `json:"-"`
}

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

There are no default values defined in the spec.

func (*GetPolicyParams) BindRequest

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

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

To ensure default values, the struct must have been initialized with NewGetPolicyParams() beforehand.

type GetPolicySelectors added in v0.15.7

type GetPolicySelectors struct {
	Context *middleware.Context
	Handler GetPolicySelectorsHandler
}
GetPolicySelectors swagger:route GET /policy/selectors policy getPolicySelectors

See what selectors match which identities

func NewGetPolicySelectors added in v0.15.7

func NewGetPolicySelectors(ctx *middleware.Context, handler GetPolicySelectorsHandler) *GetPolicySelectors

NewGetPolicySelectors creates a new http.Handler for the get policy selectors operation

func (*GetPolicySelectors) ServeHTTP added in v0.15.7

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

type GetPolicySelectorsHandler added in v0.15.7

type GetPolicySelectorsHandler interface {
	Handle(GetPolicySelectorsParams) middleware.Responder
}

GetPolicySelectorsHandler interface for that can handle valid get policy selectors params

type GetPolicySelectorsHandlerFunc added in v0.15.7

type GetPolicySelectorsHandlerFunc func(GetPolicySelectorsParams) middleware.Responder

GetPolicySelectorsHandlerFunc turns a function with the right signature into a get policy selectors handler

func (GetPolicySelectorsHandlerFunc) Handle added in v0.15.7

Handle executing the request and returning a response

type GetPolicySelectorsOK added in v0.15.7

type GetPolicySelectorsOK struct {

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

GetPolicySelectorsOK Success

swagger:response getPolicySelectorsOK

func NewGetPolicySelectorsOK added in v0.15.7

func NewGetPolicySelectorsOK() *GetPolicySelectorsOK

NewGetPolicySelectorsOK creates GetPolicySelectorsOK with default headers values

func (*GetPolicySelectorsOK) SetPayload added in v0.15.7

func (o *GetPolicySelectorsOK) SetPayload(payload models.SelectorCache)

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

func (*GetPolicySelectorsOK) WithPayload added in v0.15.7

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

func (*GetPolicySelectorsOK) WriteResponse added in v0.15.7

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

WriteResponse to the client

type GetPolicySelectorsParams added in v0.15.7

type GetPolicySelectorsParams struct {
	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

swagger:parameters GetPolicySelectors

func NewGetPolicySelectorsParams added in v0.15.7

func NewGetPolicySelectorsParams() GetPolicySelectorsParams

NewGetPolicySelectorsParams creates a new GetPolicySelectorsParams object

There are no default values defined in the spec.

func (*GetPolicySelectorsParams) BindRequest added in v0.15.7

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 NewGetPolicySelectorsParams() beforehand.

type GetPolicySubjectSelectors added in v1.19.0

type GetPolicySubjectSelectors struct {
	Context *middleware.Context
	Handler GetPolicySubjectSelectorsHandler
}
GetPolicySubjectSelectors swagger:route GET /policy/subject-selectors policy getPolicySubjectSelectors

See what subject selectors match which identities on the local node

func NewGetPolicySubjectSelectors added in v1.19.0

func NewGetPolicySubjectSelectors(ctx *middleware.Context, handler GetPolicySubjectSelectorsHandler) *GetPolicySubjectSelectors

NewGetPolicySubjectSelectors creates a new http.Handler for the get policy subject selectors operation

func (*GetPolicySubjectSelectors) ServeHTTP added in v1.19.0

type GetPolicySubjectSelectorsHandler added in v1.19.0

type GetPolicySubjectSelectorsHandler interface {
	Handle(GetPolicySubjectSelectorsParams) middleware.Responder
}

GetPolicySubjectSelectorsHandler interface for that can handle valid get policy subject selectors params

type GetPolicySubjectSelectorsHandlerFunc added in v1.19.0

type GetPolicySubjectSelectorsHandlerFunc func(GetPolicySubjectSelectorsParams) middleware.Responder

GetPolicySubjectSelectorsHandlerFunc turns a function with the right signature into a get policy subject selectors handler

func (GetPolicySubjectSelectorsHandlerFunc) Handle added in v1.19.0

Handle executing the request and returning a response

type GetPolicySubjectSelectorsOK added in v1.19.0

type GetPolicySubjectSelectorsOK struct {

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

GetPolicySubjectSelectorsOK Success

swagger:response getPolicySubjectSelectorsOK

func NewGetPolicySubjectSelectorsOK added in v1.19.0

func NewGetPolicySubjectSelectorsOK() *GetPolicySubjectSelectorsOK

NewGetPolicySubjectSelectorsOK creates GetPolicySubjectSelectorsOK with default headers values

func (*GetPolicySubjectSelectorsOK) SetPayload added in v1.19.0

func (o *GetPolicySubjectSelectorsOK) SetPayload(payload models.SelectorCache)

SetPayload sets the payload to the get policy subject selectors o k response

func (*GetPolicySubjectSelectorsOK) WithPayload added in v1.19.0

WithPayload adds the payload to the get policy subject selectors o k response

func (*GetPolicySubjectSelectorsOK) WriteResponse added in v1.19.0

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

WriteResponse to the client

type GetPolicySubjectSelectorsParams added in v1.19.0

type GetPolicySubjectSelectorsParams struct {
	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

swagger:parameters GetPolicySubjectSelectors

func NewGetPolicySubjectSelectorsParams added in v1.19.0

func NewGetPolicySubjectSelectorsParams() GetPolicySubjectSelectorsParams

NewGetPolicySubjectSelectorsParams creates a new GetPolicySubjectSelectorsParams object

There are no default values defined in the spec.

func (*GetPolicySubjectSelectorsParams) BindRequest added in v1.19.0

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 NewGetPolicySubjectSelectorsParams() beforehand.

Jump to

Keyboard shortcuts

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