policy

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for policy API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new policy API client.

func (*Client) DeletePolicyPath

func (a *Client) DeletePolicyPath(params *DeletePolicyPathParams) (*DeletePolicyPathNoContent, error)

DeletePolicyPath deletes a policy sub tree

func (*Client) GetIdentity

func (a *Client) GetIdentity(params *GetIdentityParams) (*GetIdentityOK, error)

GetIdentity retrieves identity by labels

func (*Client) GetIdentityID

func (a *Client) GetIdentityID(params *GetIdentityIDParams) (*GetIdentityIDOK, error)

GetIdentityID retrieves identity

func (*Client) GetPolicy

func (a *Client) GetPolicy(params *GetPolicyParams) (*GetPolicyOK, error)

GetPolicy retrieves entire policy tree

Returns the entire policy tree with all children.

func (*Client) GetPolicyPath

func (a *Client) GetPolicyPath(params *GetPolicyPathParams) (*GetPolicyPathOK, error)

GetPolicyPath retrieves policy subtree

Returns the policy node at path with all its children

func (*Client) GetPolicyResolve

func (a *Client) GetPolicyResolve(params *GetPolicyResolveParams) (*GetPolicyResolveOK, error)

GetPolicyResolve resolves policy for an identity context

func (*Client) PutPolicyPath

func (a *Client) PutPolicyPath(params *PutPolicyPathParams) (*PutPolicyPathOK, error)

PutPolicyPath creates or update a policy sub tree

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type DeletePolicyPathFailure

type DeletePolicyPathFailure struct {
	Payload models.Error
}

DeletePolicyPathFailure handles this case with default header values.

Error while deleting policy

func NewDeletePolicyPathFailure

func NewDeletePolicyPathFailure() *DeletePolicyPathFailure

NewDeletePolicyPathFailure creates a DeletePolicyPathFailure with default headers values

func (*DeletePolicyPathFailure) Error

func (o *DeletePolicyPathFailure) Error() string

type DeletePolicyPathInvalid

type DeletePolicyPathInvalid struct {
	Payload models.Error
}

DeletePolicyPathInvalid handles this case with default header values.

Invalid request

func NewDeletePolicyPathInvalid

func NewDeletePolicyPathInvalid() *DeletePolicyPathInvalid

NewDeletePolicyPathInvalid creates a DeletePolicyPathInvalid with default headers values

func (*DeletePolicyPathInvalid) Error

func (o *DeletePolicyPathInvalid) Error() string

type DeletePolicyPathNoContent

type DeletePolicyPathNoContent struct {
}

DeletePolicyPathNoContent handles this case with default header values.

Success

func NewDeletePolicyPathNoContent

func NewDeletePolicyPathNoContent() *DeletePolicyPathNoContent

NewDeletePolicyPathNoContent creates a DeletePolicyPathNoContent with default headers values

func (*DeletePolicyPathNoContent) Error

func (o *DeletePolicyPathNoContent) Error() string

type DeletePolicyPathNotFound

type DeletePolicyPathNotFound struct {
}

DeletePolicyPathNotFound handles this case with default header values.

Policy tree not found

func NewDeletePolicyPathNotFound

func NewDeletePolicyPathNotFound() *DeletePolicyPathNotFound

NewDeletePolicyPathNotFound creates a DeletePolicyPathNotFound with default headers values

func (*DeletePolicyPathNotFound) Error

func (o *DeletePolicyPathNotFound) Error() string

type DeletePolicyPathParams

type DeletePolicyPathParams struct {

	/*Path
	  Path to policy node

	*/
	Path string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeletePolicyPathParams contains all the parameters to send to the API endpoint for the delete policy path operation typically these are written to a http.Request

func NewDeletePolicyPathParams

func NewDeletePolicyPathParams() *DeletePolicyPathParams

NewDeletePolicyPathParams creates a new DeletePolicyPathParams object with the default values initialized.

func NewDeletePolicyPathParamsWithContext

func NewDeletePolicyPathParamsWithContext(ctx context.Context) *DeletePolicyPathParams

NewDeletePolicyPathParamsWithContext creates a new DeletePolicyPathParams object with the default values initialized, and the ability to set a context for a request

func NewDeletePolicyPathParamsWithHTTPClient

func NewDeletePolicyPathParamsWithHTTPClient(client *http.Client) *DeletePolicyPathParams

NewDeletePolicyPathParamsWithHTTPClient creates a new DeletePolicyPathParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeletePolicyPathParamsWithTimeout

func NewDeletePolicyPathParamsWithTimeout(timeout time.Duration) *DeletePolicyPathParams

NewDeletePolicyPathParamsWithTimeout creates a new DeletePolicyPathParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeletePolicyPathParams) SetContext

func (o *DeletePolicyPathParams) SetContext(ctx context.Context)

SetContext adds the context to the delete policy path params

func (*DeletePolicyPathParams) SetHTTPClient

func (o *DeletePolicyPathParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete policy path params

func (*DeletePolicyPathParams) SetPath

func (o *DeletePolicyPathParams) SetPath(path string)

SetPath adds the path to the delete policy path params

func (*DeletePolicyPathParams) SetTimeout

func (o *DeletePolicyPathParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete policy path params

func (*DeletePolicyPathParams) WithContext

WithContext adds the context to the delete policy path params

func (*DeletePolicyPathParams) WithHTTPClient

func (o *DeletePolicyPathParams) WithHTTPClient(client *http.Client) *DeletePolicyPathParams

WithHTTPClient adds the HTTPClient to the delete policy path params

func (*DeletePolicyPathParams) WithPath

WithPath adds the path to the delete policy path params

func (*DeletePolicyPathParams) WithTimeout

WithTimeout adds the timeout to the delete policy path params

func (*DeletePolicyPathParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePolicyPathReader

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

DeletePolicyPathReader is a Reader for the DeletePolicyPath structure.

func (*DeletePolicyPathReader) ReadResponse

func (o *DeletePolicyPathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetIdentityIDBadRequest

type GetIdentityIDBadRequest struct {
}

GetIdentityIDBadRequest handles this case with default header values.

Invalid identity provided

func NewGetIdentityIDBadRequest

func NewGetIdentityIDBadRequest() *GetIdentityIDBadRequest

NewGetIdentityIDBadRequest creates a GetIdentityIDBadRequest with default headers values

func (*GetIdentityIDBadRequest) Error

func (o *GetIdentityIDBadRequest) Error() string

type GetIdentityIDInvalidStorageFormat

type GetIdentityIDInvalidStorageFormat struct {
	Payload models.Error
}

GetIdentityIDInvalidStorageFormat handles this case with default header values.

Invalid identity format in storage

func NewGetIdentityIDInvalidStorageFormat

func NewGetIdentityIDInvalidStorageFormat() *GetIdentityIDInvalidStorageFormat

NewGetIdentityIDInvalidStorageFormat creates a GetIdentityIDInvalidStorageFormat with default headers values

func (*GetIdentityIDInvalidStorageFormat) Error

type GetIdentityIDNotFound

type GetIdentityIDNotFound struct {
}

GetIdentityIDNotFound handles this case with default header values.

Identity not found

func NewGetIdentityIDNotFound

func NewGetIdentityIDNotFound() *GetIdentityIDNotFound

NewGetIdentityIDNotFound creates a GetIdentityIDNotFound with default headers values

func (*GetIdentityIDNotFound) Error

func (o *GetIdentityIDNotFound) Error() string

type GetIdentityIDOK

type GetIdentityIDOK struct {
	Payload *models.Identity
}

GetIdentityIDOK handles this case with default header values.

Success

func NewGetIdentityIDOK

func NewGetIdentityIDOK() *GetIdentityIDOK

NewGetIdentityIDOK creates a GetIdentityIDOK with default headers values

func (*GetIdentityIDOK) Error

func (o *GetIdentityIDOK) Error() string

type GetIdentityIDParams

type GetIdentityIDParams struct {

	/*ID
	  Cluster wide unique identifier of a security identity.


	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetIdentityIDParams contains all the parameters to send to the API endpoint for the get identity ID operation typically these are written to a http.Request

func NewGetIdentityIDParams

func NewGetIdentityIDParams() *GetIdentityIDParams

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

func NewGetIdentityIDParamsWithContext

func NewGetIdentityIDParamsWithContext(ctx context.Context) *GetIdentityIDParams

NewGetIdentityIDParamsWithContext creates a new GetIdentityIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetIdentityIDParamsWithHTTPClient

func NewGetIdentityIDParamsWithHTTPClient(client *http.Client) *GetIdentityIDParams

NewGetIdentityIDParamsWithHTTPClient creates a new GetIdentityIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetIdentityIDParamsWithTimeout

func NewGetIdentityIDParamsWithTimeout(timeout time.Duration) *GetIdentityIDParams

NewGetIdentityIDParamsWithTimeout creates a new GetIdentityIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetIdentityIDParams) SetContext

func (o *GetIdentityIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get identity ID params

func (*GetIdentityIDParams) SetHTTPClient

func (o *GetIdentityIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get identity ID params

func (*GetIdentityIDParams) SetID

func (o *GetIdentityIDParams) SetID(id string)

SetID adds the id to the get identity ID params

func (*GetIdentityIDParams) SetTimeout

func (o *GetIdentityIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get identity ID params

func (*GetIdentityIDParams) WithContext

WithContext adds the context to the get identity ID params

func (*GetIdentityIDParams) WithHTTPClient

func (o *GetIdentityIDParams) WithHTTPClient(client *http.Client) *GetIdentityIDParams

WithHTTPClient adds the HTTPClient to the get identity ID params

func (*GetIdentityIDParams) WithID

WithID adds the id to the get identity ID params

func (*GetIdentityIDParams) WithTimeout

func (o *GetIdentityIDParams) WithTimeout(timeout time.Duration) *GetIdentityIDParams

WithTimeout adds the timeout to the get identity ID params

func (*GetIdentityIDParams) WriteToRequest

func (o *GetIdentityIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetIdentityIDReader

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

GetIdentityIDReader is a Reader for the GetIdentityID structure.

func (*GetIdentityIDReader) ReadResponse

func (o *GetIdentityIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetIdentityIDUnreachable

type GetIdentityIDUnreachable struct {
	Payload models.Error
}

GetIdentityIDUnreachable handles this case with default header values.

Identity storage unreachable. Likely a network problem.

func NewGetIdentityIDUnreachable

func NewGetIdentityIDUnreachable() *GetIdentityIDUnreachable

NewGetIdentityIDUnreachable creates a GetIdentityIDUnreachable with default headers values

func (*GetIdentityIDUnreachable) Error

func (o *GetIdentityIDUnreachable) Error() string

type GetIdentityInvalidStorageFormat

type GetIdentityInvalidStorageFormat struct {
	Payload models.Error
}

GetIdentityInvalidStorageFormat handles this case with default header values.

Invalid identity format in storage

func NewGetIdentityInvalidStorageFormat

func NewGetIdentityInvalidStorageFormat() *GetIdentityInvalidStorageFormat

NewGetIdentityInvalidStorageFormat creates a GetIdentityInvalidStorageFormat with default headers values

func (*GetIdentityInvalidStorageFormat) Error

type GetIdentityNotFound

type GetIdentityNotFound struct {
}

GetIdentityNotFound handles this case with default header values.

Identity not found

func NewGetIdentityNotFound

func NewGetIdentityNotFound() *GetIdentityNotFound

NewGetIdentityNotFound creates a GetIdentityNotFound with default headers values

func (*GetIdentityNotFound) Error

func (o *GetIdentityNotFound) Error() string

type GetIdentityOK

type GetIdentityOK struct {
	Payload *models.Identity
}

GetIdentityOK handles this case with default header values.

Success

func NewGetIdentityOK

func NewGetIdentityOK() *GetIdentityOK

NewGetIdentityOK creates a GetIdentityOK with default headers values

func (*GetIdentityOK) Error

func (o *GetIdentityOK) Error() string

type GetIdentityParams

type GetIdentityParams struct {

	/*Labels*/
	Labels models.Labels

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetIdentityParams contains all the parameters to send to the API endpoint for the get identity operation typically these are written to a http.Request

func NewGetIdentityParams

func NewGetIdentityParams() *GetIdentityParams

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

func NewGetIdentityParamsWithContext

func NewGetIdentityParamsWithContext(ctx context.Context) *GetIdentityParams

NewGetIdentityParamsWithContext creates a new GetIdentityParams object with the default values initialized, and the ability to set a context for a request

func NewGetIdentityParamsWithHTTPClient

func NewGetIdentityParamsWithHTTPClient(client *http.Client) *GetIdentityParams

NewGetIdentityParamsWithHTTPClient creates a new GetIdentityParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetIdentityParamsWithTimeout

func NewGetIdentityParamsWithTimeout(timeout time.Duration) *GetIdentityParams

NewGetIdentityParamsWithTimeout creates a new GetIdentityParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetIdentityParams) SetContext

func (o *GetIdentityParams) SetContext(ctx context.Context)

SetContext adds the context to the get identity params

func (*GetIdentityParams) SetHTTPClient

func (o *GetIdentityParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get identity params

func (*GetIdentityParams) SetLabels

func (o *GetIdentityParams) SetLabels(labels models.Labels)

SetLabels adds the labels to the get identity params

func (*GetIdentityParams) SetTimeout

func (o *GetIdentityParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get identity params

func (*GetIdentityParams) WithContext

func (o *GetIdentityParams) WithContext(ctx context.Context) *GetIdentityParams

WithContext adds the context to the get identity params

func (*GetIdentityParams) WithHTTPClient

func (o *GetIdentityParams) WithHTTPClient(client *http.Client) *GetIdentityParams

WithHTTPClient adds the HTTPClient to the get identity params

func (*GetIdentityParams) WithLabels

func (o *GetIdentityParams) WithLabels(labels models.Labels) *GetIdentityParams

WithLabels adds the labels to the get identity params

func (*GetIdentityParams) WithTimeout

func (o *GetIdentityParams) WithTimeout(timeout time.Duration) *GetIdentityParams

WithTimeout adds the timeout to the get identity params

func (*GetIdentityParams) WriteToRequest

func (o *GetIdentityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetIdentityReader

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

GetIdentityReader is a Reader for the GetIdentity structure.

func (*GetIdentityReader) ReadResponse

func (o *GetIdentityReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetIdentityUnreachable

type GetIdentityUnreachable struct {
	Payload models.Error
}

GetIdentityUnreachable handles this case with default header values.

Identity storage unreachable. Likely a network problem.

func NewGetIdentityUnreachable

func NewGetIdentityUnreachable() *GetIdentityUnreachable

NewGetIdentityUnreachable creates a GetIdentityUnreachable with default headers values

func (*GetIdentityUnreachable) Error

func (o *GetIdentityUnreachable) Error() string

type GetPolicyOK

type GetPolicyOK struct {
	Payload models.PolicyTree
}

GetPolicyOK handles this case with default header values.

Success

func NewGetPolicyOK

func NewGetPolicyOK() *GetPolicyOK

NewGetPolicyOK creates a GetPolicyOK with default headers values

func (*GetPolicyOK) Error

func (o *GetPolicyOK) Error() string

type GetPolicyParams

type GetPolicyParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPolicyParams contains all the parameters to send to the API endpoint for the get policy operation typically these are written to a http.Request

func NewGetPolicyParams

func NewGetPolicyParams() *GetPolicyParams

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

func NewGetPolicyParamsWithContext

func NewGetPolicyParamsWithContext(ctx context.Context) *GetPolicyParams

NewGetPolicyParamsWithContext creates a new GetPolicyParams object with the default values initialized, and the ability to set a context for a request

func NewGetPolicyParamsWithHTTPClient

func NewGetPolicyParamsWithHTTPClient(client *http.Client) *GetPolicyParams

NewGetPolicyParamsWithHTTPClient creates a new GetPolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPolicyParamsWithTimeout

func NewGetPolicyParamsWithTimeout(timeout time.Duration) *GetPolicyParams

NewGetPolicyParamsWithTimeout creates a new GetPolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPolicyParams) SetContext

func (o *GetPolicyParams) SetContext(ctx context.Context)

SetContext adds the context to the get policy params

func (*GetPolicyParams) SetHTTPClient

func (o *GetPolicyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get policy params

func (*GetPolicyParams) SetTimeout

func (o *GetPolicyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get policy params

func (*GetPolicyParams) WithContext

func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams

WithContext adds the context to the get policy params

func (*GetPolicyParams) WithHTTPClient

func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams

WithHTTPClient adds the HTTPClient to the get policy params

func (*GetPolicyParams) WithTimeout

func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams

WithTimeout adds the timeout to the get policy params

func (*GetPolicyParams) WriteToRequest

func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPolicyPathInvalid

type GetPolicyPathInvalid struct {
	Payload models.Error
}

GetPolicyPathInvalid handles this case with default header values.

Invalid policy path

func NewGetPolicyPathInvalid

func NewGetPolicyPathInvalid() *GetPolicyPathInvalid

NewGetPolicyPathInvalid creates a GetPolicyPathInvalid with default headers values

func (*GetPolicyPathInvalid) Error

func (o *GetPolicyPathInvalid) Error() string

type GetPolicyPathNotFound

type GetPolicyPathNotFound struct {
}

GetPolicyPathNotFound handles this case with default header values.

Policy tree not found

func NewGetPolicyPathNotFound

func NewGetPolicyPathNotFound() *GetPolicyPathNotFound

NewGetPolicyPathNotFound creates a GetPolicyPathNotFound with default headers values

func (*GetPolicyPathNotFound) Error

func (o *GetPolicyPathNotFound) Error() string

type GetPolicyPathOK

type GetPolicyPathOK struct {
	Payload models.PolicyTree
}

GetPolicyPathOK handles this case with default header values.

Success

func NewGetPolicyPathOK

func NewGetPolicyPathOK() *GetPolicyPathOK

NewGetPolicyPathOK creates a GetPolicyPathOK with default headers values

func (*GetPolicyPathOK) Error

func (o *GetPolicyPathOK) Error() string

type GetPolicyPathParams

type GetPolicyPathParams struct {

	/*Path
	  Path to policy node

	*/
	Path string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPolicyPathParams contains all the parameters to send to the API endpoint for the get policy path operation typically these are written to a http.Request

func NewGetPolicyPathParams

func NewGetPolicyPathParams() *GetPolicyPathParams

NewGetPolicyPathParams creates a new GetPolicyPathParams object with the default values initialized.

func NewGetPolicyPathParamsWithContext

func NewGetPolicyPathParamsWithContext(ctx context.Context) *GetPolicyPathParams

NewGetPolicyPathParamsWithContext creates a new GetPolicyPathParams object with the default values initialized, and the ability to set a context for a request

func NewGetPolicyPathParamsWithHTTPClient

func NewGetPolicyPathParamsWithHTTPClient(client *http.Client) *GetPolicyPathParams

NewGetPolicyPathParamsWithHTTPClient creates a new GetPolicyPathParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPolicyPathParamsWithTimeout

func NewGetPolicyPathParamsWithTimeout(timeout time.Duration) *GetPolicyPathParams

NewGetPolicyPathParamsWithTimeout creates a new GetPolicyPathParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPolicyPathParams) SetContext

func (o *GetPolicyPathParams) SetContext(ctx context.Context)

SetContext adds the context to the get policy path params

func (*GetPolicyPathParams) SetHTTPClient

func (o *GetPolicyPathParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get policy path params

func (*GetPolicyPathParams) SetPath

func (o *GetPolicyPathParams) SetPath(path string)

SetPath adds the path to the get policy path params

func (*GetPolicyPathParams) SetTimeout

func (o *GetPolicyPathParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get policy path params

func (*GetPolicyPathParams) WithContext

WithContext adds the context to the get policy path params

func (*GetPolicyPathParams) WithHTTPClient

func (o *GetPolicyPathParams) WithHTTPClient(client *http.Client) *GetPolicyPathParams

WithHTTPClient adds the HTTPClient to the get policy path params

func (*GetPolicyPathParams) WithPath

func (o *GetPolicyPathParams) WithPath(path string) *GetPolicyPathParams

WithPath adds the path to the get policy path params

func (*GetPolicyPathParams) WithTimeout

func (o *GetPolicyPathParams) WithTimeout(timeout time.Duration) *GetPolicyPathParams

WithTimeout adds the timeout to the get policy path params

func (*GetPolicyPathParams) WriteToRequest

func (o *GetPolicyPathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPolicyPathReader

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

GetPolicyPathReader is a Reader for the GetPolicyPath structure.

func (*GetPolicyPathReader) ReadResponse

func (o *GetPolicyPathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPolicyReader

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

GetPolicyReader is a Reader for the GetPolicy structure.

func (*GetPolicyReader) ReadResponse

func (o *GetPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPolicyResolveOK

type GetPolicyResolveOK struct {
	Payload *models.PolicyTraceResult
}

GetPolicyResolveOK handles this case with default header values.

Success

func NewGetPolicyResolveOK

func NewGetPolicyResolveOK() *GetPolicyResolveOK

NewGetPolicyResolveOK creates a GetPolicyResolveOK with default headers values

func (*GetPolicyResolveOK) Error

func (o *GetPolicyResolveOK) Error() string

type GetPolicyResolveParams

type GetPolicyResolveParams struct {

	/*IdentityContext
	  Context to provide policy evaluation on

	*/
	IdentityContext *models.IdentityContext

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPolicyResolveParams contains all the parameters to send to the API endpoint for the get policy resolve operation typically these are written to a http.Request

func NewGetPolicyResolveParams

func NewGetPolicyResolveParams() *GetPolicyResolveParams

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

func NewGetPolicyResolveParamsWithContext

func NewGetPolicyResolveParamsWithContext(ctx context.Context) *GetPolicyResolveParams

NewGetPolicyResolveParamsWithContext creates a new GetPolicyResolveParams object with the default values initialized, and the ability to set a context for a request

func NewGetPolicyResolveParamsWithHTTPClient

func NewGetPolicyResolveParamsWithHTTPClient(client *http.Client) *GetPolicyResolveParams

NewGetPolicyResolveParamsWithHTTPClient creates a new GetPolicyResolveParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPolicyResolveParamsWithTimeout

func NewGetPolicyResolveParamsWithTimeout(timeout time.Duration) *GetPolicyResolveParams

NewGetPolicyResolveParamsWithTimeout creates a new GetPolicyResolveParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPolicyResolveParams) SetContext

func (o *GetPolicyResolveParams) SetContext(ctx context.Context)

SetContext adds the context to the get policy resolve params

func (*GetPolicyResolveParams) SetHTTPClient

func (o *GetPolicyResolveParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get policy resolve params

func (*GetPolicyResolveParams) SetIdentityContext

func (o *GetPolicyResolveParams) SetIdentityContext(identityContext *models.IdentityContext)

SetIdentityContext adds the identityContext to the get policy resolve params

func (*GetPolicyResolveParams) SetTimeout

func (o *GetPolicyResolveParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get policy resolve params

func (*GetPolicyResolveParams) WithContext

WithContext adds the context to the get policy resolve params

func (*GetPolicyResolveParams) WithHTTPClient

func (o *GetPolicyResolveParams) WithHTTPClient(client *http.Client) *GetPolicyResolveParams

WithHTTPClient adds the HTTPClient to the get policy resolve params

func (*GetPolicyResolveParams) WithIdentityContext

func (o *GetPolicyResolveParams) WithIdentityContext(identityContext *models.IdentityContext) *GetPolicyResolveParams

WithIdentityContext adds the identityContext to the get policy resolve params

func (*GetPolicyResolveParams) WithTimeout

WithTimeout adds the timeout to the get policy resolve params

func (*GetPolicyResolveParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPolicyResolveReader

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

GetPolicyResolveReader is a Reader for the GetPolicyResolve structure.

func (*GetPolicyResolveReader) ReadResponse

func (o *GetPolicyResolveReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutPolicyPathFailure

type PutPolicyPathFailure struct {
	Payload models.Error
}

PutPolicyPathFailure handles this case with default header values.

Policy import failed

func NewPutPolicyPathFailure

func NewPutPolicyPathFailure() *PutPolicyPathFailure

NewPutPolicyPathFailure creates a PutPolicyPathFailure with default headers values

func (*PutPolicyPathFailure) Error

func (o *PutPolicyPathFailure) Error() string

type PutPolicyPathInvalidPath

type PutPolicyPathInvalidPath struct {
	Payload models.Error
}

PutPolicyPathInvalidPath handles this case with default header values.

Invalid path

func NewPutPolicyPathInvalidPath

func NewPutPolicyPathInvalidPath() *PutPolicyPathInvalidPath

NewPutPolicyPathInvalidPath creates a PutPolicyPathInvalidPath with default headers values

func (*PutPolicyPathInvalidPath) Error

func (o *PutPolicyPathInvalidPath) Error() string

type PutPolicyPathInvalidPolicy

type PutPolicyPathInvalidPolicy struct {
	Payload models.Error
}

PutPolicyPathInvalidPolicy handles this case with default header values.

Invalid policy

func NewPutPolicyPathInvalidPolicy

func NewPutPolicyPathInvalidPolicy() *PutPolicyPathInvalidPolicy

NewPutPolicyPathInvalidPolicy creates a PutPolicyPathInvalidPolicy with default headers values

func (*PutPolicyPathInvalidPolicy) Error

type PutPolicyPathOK

type PutPolicyPathOK struct {
	Payload models.PolicyTree
}

PutPolicyPathOK handles this case with default header values.

Success

func NewPutPolicyPathOK

func NewPutPolicyPathOK() *PutPolicyPathOK

NewPutPolicyPathOK creates a PutPolicyPathOK with default headers values

func (*PutPolicyPathOK) Error

func (o *PutPolicyPathOK) Error() string

type PutPolicyPathParams

type PutPolicyPathParams struct {

	/*Path
	  Path to policy node

	*/
	Path string
	/*Policy
	  Policy tree or subtree

	*/
	Policy *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutPolicyPathParams contains all the parameters to send to the API endpoint for the put policy path operation typically these are written to a http.Request

func NewPutPolicyPathParams

func NewPutPolicyPathParams() *PutPolicyPathParams

NewPutPolicyPathParams creates a new PutPolicyPathParams object with the default values initialized.

func NewPutPolicyPathParamsWithContext

func NewPutPolicyPathParamsWithContext(ctx context.Context) *PutPolicyPathParams

NewPutPolicyPathParamsWithContext creates a new PutPolicyPathParams object with the default values initialized, and the ability to set a context for a request

func NewPutPolicyPathParamsWithHTTPClient

func NewPutPolicyPathParamsWithHTTPClient(client *http.Client) *PutPolicyPathParams

NewPutPolicyPathParamsWithHTTPClient creates a new PutPolicyPathParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutPolicyPathParamsWithTimeout

func NewPutPolicyPathParamsWithTimeout(timeout time.Duration) *PutPolicyPathParams

NewPutPolicyPathParamsWithTimeout creates a new PutPolicyPathParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutPolicyPathParams) SetContext

func (o *PutPolicyPathParams) SetContext(ctx context.Context)

SetContext adds the context to the put policy path params

func (*PutPolicyPathParams) SetHTTPClient

func (o *PutPolicyPathParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put policy path params

func (*PutPolicyPathParams) SetPath

func (o *PutPolicyPathParams) SetPath(path string)

SetPath adds the path to the put policy path params

func (*PutPolicyPathParams) SetPolicy

func (o *PutPolicyPathParams) SetPolicy(policy *string)

SetPolicy adds the policy to the put policy path params

func (*PutPolicyPathParams) SetTimeout

func (o *PutPolicyPathParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put policy path params

func (*PutPolicyPathParams) WithContext

WithContext adds the context to the put policy path params

func (*PutPolicyPathParams) WithHTTPClient

func (o *PutPolicyPathParams) WithHTTPClient(client *http.Client) *PutPolicyPathParams

WithHTTPClient adds the HTTPClient to the put policy path params

func (*PutPolicyPathParams) WithPath

func (o *PutPolicyPathParams) WithPath(path string) *PutPolicyPathParams

WithPath adds the path to the put policy path params

func (*PutPolicyPathParams) WithPolicy

func (o *PutPolicyPathParams) WithPolicy(policy *string) *PutPolicyPathParams

WithPolicy adds the policy to the put policy path params

func (*PutPolicyPathParams) WithTimeout

func (o *PutPolicyPathParams) WithTimeout(timeout time.Duration) *PutPolicyPathParams

WithTimeout adds the timeout to the put policy path params

func (*PutPolicyPathParams) WriteToRequest

func (o *PutPolicyPathParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PutPolicyPathReader

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

PutPolicyPathReader is a Reader for the PutPolicyPath structure.

func (*PutPolicyPathReader) ReadResponse

func (o *PutPolicyPathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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