policy

package
v0.9.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 24, 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) DeletePolicy added in v0.9.0

func (a *Client) DeletePolicy(params *DeletePolicyParams) (*DeletePolicyNoContent, error)

DeletePolicy 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) GetPolicyResolve

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

GetPolicyResolve resolves policy for an identity context

func (*Client) PutPolicy added in v0.9.0

func (a *Client) PutPolicy(params *PutPolicyParams) (*PutPolicyOK, error)

PutPolicy 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 DeletePolicyFailure added in v0.9.0

type DeletePolicyFailure struct {
	Payload models.Error
}

DeletePolicyFailure handles this case with default header values.

Error while deleting policy

func NewDeletePolicyFailure added in v0.9.0

func NewDeletePolicyFailure() *DeletePolicyFailure

NewDeletePolicyFailure creates a DeletePolicyFailure with default headers values

func (*DeletePolicyFailure) Error added in v0.9.0

func (o *DeletePolicyFailure) Error() string

type DeletePolicyInvalid added in v0.9.0

type DeletePolicyInvalid struct {
	Payload models.Error
}

DeletePolicyInvalid handles this case with default header values.

Invalid request

func NewDeletePolicyInvalid added in v0.9.0

func NewDeletePolicyInvalid() *DeletePolicyInvalid

NewDeletePolicyInvalid creates a DeletePolicyInvalid with default headers values

func (*DeletePolicyInvalid) Error added in v0.9.0

func (o *DeletePolicyInvalid) Error() string

type DeletePolicyNoContent added in v0.9.0

type DeletePolicyNoContent struct {
}

DeletePolicyNoContent handles this case with default header values.

Success

func NewDeletePolicyNoContent added in v0.9.0

func NewDeletePolicyNoContent() *DeletePolicyNoContent

NewDeletePolicyNoContent creates a DeletePolicyNoContent with default headers values

func (*DeletePolicyNoContent) Error added in v0.9.0

func (o *DeletePolicyNoContent) Error() string

type DeletePolicyNotFound added in v0.9.0

type DeletePolicyNotFound struct {
}

DeletePolicyNotFound handles this case with default header values.

Policy tree not found

func NewDeletePolicyNotFound added in v0.9.0

func NewDeletePolicyNotFound() *DeletePolicyNotFound

NewDeletePolicyNotFound creates a DeletePolicyNotFound with default headers values

func (*DeletePolicyNotFound) Error added in v0.9.0

func (o *DeletePolicyNotFound) Error() string

type DeletePolicyParams added in v0.9.0

type DeletePolicyParams struct {

	/*Labels*/
	Labels models.Labels

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

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

func NewDeletePolicyParams added in v0.9.0

func NewDeletePolicyParams() *DeletePolicyParams

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

func NewDeletePolicyParamsWithContext added in v0.9.0

func NewDeletePolicyParamsWithContext(ctx context.Context) *DeletePolicyParams

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

func NewDeletePolicyParamsWithHTTPClient added in v0.9.0

func NewDeletePolicyParamsWithHTTPClient(client *http.Client) *DeletePolicyParams

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

func NewDeletePolicyParamsWithTimeout added in v0.9.0

func NewDeletePolicyParamsWithTimeout(timeout time.Duration) *DeletePolicyParams

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

func (*DeletePolicyParams) SetContext added in v0.9.0

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

SetContext adds the context to the delete policy params

func (*DeletePolicyParams) SetHTTPClient added in v0.9.0

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

SetHTTPClient adds the HTTPClient to the delete policy params

func (*DeletePolicyParams) SetLabels added in v0.9.0

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

SetLabels adds the labels to the delete policy params

func (*DeletePolicyParams) SetTimeout added in v0.9.0

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

SetTimeout adds the timeout to the delete policy params

func (*DeletePolicyParams) WithContext added in v0.9.0

WithContext adds the context to the delete policy params

func (*DeletePolicyParams) WithHTTPClient added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the delete policy params

func (*DeletePolicyParams) WithLabels added in v0.9.0

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

WithLabels adds the labels to the delete policy params

func (*DeletePolicyParams) WithTimeout added in v0.9.0

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

WithTimeout adds the timeout to the delete policy params

func (*DeletePolicyParams) WriteToRequest added in v0.9.0

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

WriteToRequest writes these params to a swagger request

type DeletePolicyReader added in v0.9.0

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

DeletePolicyReader is a Reader for the DeletePolicy structure.

func (*DeletePolicyReader) ReadResponse added in v0.9.0

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

type GetPolicyNotFound struct {
}

GetPolicyNotFound handles this case with default header values.

No policy rules found

func NewGetPolicyNotFound added in v0.9.0

func NewGetPolicyNotFound() *GetPolicyNotFound

NewGetPolicyNotFound creates a GetPolicyNotFound with default headers values

func (*GetPolicyNotFound) Error added in v0.9.0

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

	/*Labels*/
	Labels models.Labels

	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) SetLabels added in v0.9.0

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

SetLabels adds the labels 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) WithLabels added in v0.9.0

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

WithLabels adds the labels 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 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 PutPolicyFailure added in v0.9.0

type PutPolicyFailure struct {
	Payload models.Error
}

PutPolicyFailure handles this case with default header values.

Policy import failed

func NewPutPolicyFailure added in v0.9.0

func NewPutPolicyFailure() *PutPolicyFailure

NewPutPolicyFailure creates a PutPolicyFailure with default headers values

func (*PutPolicyFailure) Error added in v0.9.0

func (o *PutPolicyFailure) Error() string

type PutPolicyInvalidPath added in v0.9.0

type PutPolicyInvalidPath struct {
	Payload models.Error
}

PutPolicyInvalidPath handles this case with default header values.

Invalid path

func NewPutPolicyInvalidPath added in v0.9.0

func NewPutPolicyInvalidPath() *PutPolicyInvalidPath

NewPutPolicyInvalidPath creates a PutPolicyInvalidPath with default headers values

func (*PutPolicyInvalidPath) Error added in v0.9.0

func (o *PutPolicyInvalidPath) Error() string

type PutPolicyInvalidPolicy added in v0.9.0

type PutPolicyInvalidPolicy struct {
	Payload models.Error
}

PutPolicyInvalidPolicy handles this case with default header values.

Invalid policy

func NewPutPolicyInvalidPolicy added in v0.9.0

func NewPutPolicyInvalidPolicy() *PutPolicyInvalidPolicy

NewPutPolicyInvalidPolicy creates a PutPolicyInvalidPolicy with default headers values

func (*PutPolicyInvalidPolicy) Error added in v0.9.0

func (o *PutPolicyInvalidPolicy) Error() string

type PutPolicyOK added in v0.9.0

type PutPolicyOK struct {
	Payload models.PolicyTree
}

PutPolicyOK handles this case with default header values.

Success

func NewPutPolicyOK added in v0.9.0

func NewPutPolicyOK() *PutPolicyOK

NewPutPolicyOK creates a PutPolicyOK with default headers values

func (*PutPolicyOK) Error added in v0.9.0

func (o *PutPolicyOK) Error() string

type PutPolicyParams added in v0.9.0

type PutPolicyParams struct {

	/*Policy
	  Policy rules

	*/
	Policy *string

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

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

func NewPutPolicyParams added in v0.9.0

func NewPutPolicyParams() *PutPolicyParams

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

func NewPutPolicyParamsWithContext added in v0.9.0

func NewPutPolicyParamsWithContext(ctx context.Context) *PutPolicyParams

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

func NewPutPolicyParamsWithHTTPClient added in v0.9.0

func NewPutPolicyParamsWithHTTPClient(client *http.Client) *PutPolicyParams

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

func NewPutPolicyParamsWithTimeout added in v0.9.0

func NewPutPolicyParamsWithTimeout(timeout time.Duration) *PutPolicyParams

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

func (*PutPolicyParams) SetContext added in v0.9.0

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

SetContext adds the context to the put policy params

func (*PutPolicyParams) SetHTTPClient added in v0.9.0

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

SetHTTPClient adds the HTTPClient to the put policy params

func (*PutPolicyParams) SetPolicy added in v0.9.0

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

SetPolicy adds the policy to the put policy params

func (*PutPolicyParams) SetTimeout added in v0.9.0

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

SetTimeout adds the timeout to the put policy params

func (*PutPolicyParams) WithContext added in v0.9.0

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

WithContext adds the context to the put policy params

func (*PutPolicyParams) WithHTTPClient added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the put policy params

func (*PutPolicyParams) WithPolicy added in v0.9.0

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

WithPolicy adds the policy to the put policy params

func (*PutPolicyParams) WithTimeout added in v0.9.0

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

WithTimeout adds the timeout to the put policy params

func (*PutPolicyParams) WriteToRequest added in v0.9.0

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

WriteToRequest writes these params to a swagger request

type PutPolicyReader added in v0.9.0

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

PutPolicyReader is a Reader for the PutPolicy structure.

func (*PutPolicyReader) ReadResponse added in v0.9.0

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