resource_controls

package
v0.0.0-...-147c068 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 11 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 resource controls API

func New

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

New creates a new resource controls API client.

func (*Client) ResourceControlCreate

func (a *Client) ResourceControlCreate(params *ResourceControlCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ResourceControlCreateOK, error)

ResourceControlCreate creates a new resource control

Create a new resource control to restrict access to a Docker resource. **Access policy**: restricted

func (*Client) ResourceControlDelete

ResourceControlDelete removes a resource control

Remove a resource control. **Access policy**: restricted

func (*Client) ResourceControlUpdate

func (a *Client) ResourceControlUpdate(params *ResourceControlUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*ResourceControlUpdateOK, error)

ResourceControlUpdate updates a resource control

Update a resource control. **Access policy**: restricted

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ResourceControlCreateBadRequest

type ResourceControlCreateBadRequest struct {
	Payload *models.GenericError
}

ResourceControlCreateBadRequest handles this case with default header values.

Invalid request

func NewResourceControlCreateBadRequest

func NewResourceControlCreateBadRequest() *ResourceControlCreateBadRequest

NewResourceControlCreateBadRequest creates a ResourceControlCreateBadRequest with default headers values

func (*ResourceControlCreateBadRequest) Error

type ResourceControlCreateConflict

type ResourceControlCreateConflict struct {
	Payload *models.GenericError
}

ResourceControlCreateConflict handles this case with default header values.

Resource control already exists

func NewResourceControlCreateConflict

func NewResourceControlCreateConflict() *ResourceControlCreateConflict

NewResourceControlCreateConflict creates a ResourceControlCreateConflict with default headers values

func (*ResourceControlCreateConflict) Error

type ResourceControlCreateForbidden

type ResourceControlCreateForbidden struct {
	Payload *models.GenericError
}

ResourceControlCreateForbidden handles this case with default header values.

Unauthorized

func NewResourceControlCreateForbidden

func NewResourceControlCreateForbidden() *ResourceControlCreateForbidden

NewResourceControlCreateForbidden creates a ResourceControlCreateForbidden with default headers values

func (*ResourceControlCreateForbidden) Error

type ResourceControlCreateInternalServerError

type ResourceControlCreateInternalServerError struct {
	Payload *models.GenericError
}

ResourceControlCreateInternalServerError handles this case with default header values.

Server error

func NewResourceControlCreateInternalServerError

func NewResourceControlCreateInternalServerError() *ResourceControlCreateInternalServerError

NewResourceControlCreateInternalServerError creates a ResourceControlCreateInternalServerError with default headers values

func (*ResourceControlCreateInternalServerError) Error

type ResourceControlCreateOK

type ResourceControlCreateOK struct {
	Payload *models.ResourceControl
}

ResourceControlCreateOK handles this case with default header values.

Success

func NewResourceControlCreateOK

func NewResourceControlCreateOK() *ResourceControlCreateOK

NewResourceControlCreateOK creates a ResourceControlCreateOK with default headers values

func (*ResourceControlCreateOK) Error

func (o *ResourceControlCreateOK) Error() string

type ResourceControlCreateParams

type ResourceControlCreateParams struct {

	/*Body
	  Resource control details

	*/
	Body *models.ResourceControlCreateRequest

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

ResourceControlCreateParams contains all the parameters to send to the API endpoint for the resource control create operation typically these are written to a http.Request

func NewResourceControlCreateParams

func NewResourceControlCreateParams() *ResourceControlCreateParams

NewResourceControlCreateParams creates a new ResourceControlCreateParams object with the default values initialized.

func NewResourceControlCreateParamsWithContext

func NewResourceControlCreateParamsWithContext(ctx context.Context) *ResourceControlCreateParams

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

func NewResourceControlCreateParamsWithHTTPClient

func NewResourceControlCreateParamsWithHTTPClient(client *http.Client) *ResourceControlCreateParams

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

func NewResourceControlCreateParamsWithTimeout

func NewResourceControlCreateParamsWithTimeout(timeout time.Duration) *ResourceControlCreateParams

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

func (*ResourceControlCreateParams) SetBody

SetBody adds the body to the resource control create params

func (*ResourceControlCreateParams) SetContext

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

SetContext adds the context to the resource control create params

func (*ResourceControlCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the resource control create params

func (*ResourceControlCreateParams) SetTimeout

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

SetTimeout adds the timeout to the resource control create params

func (*ResourceControlCreateParams) WithBody

WithBody adds the body to the resource control create params

func (*ResourceControlCreateParams) WithContext

WithContext adds the context to the resource control create params

func (*ResourceControlCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the resource control create params

func (*ResourceControlCreateParams) WithTimeout

WithTimeout adds the timeout to the resource control create params

func (*ResourceControlCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResourceControlCreateReader

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

ResourceControlCreateReader is a Reader for the ResourceControlCreate structure.

func (*ResourceControlCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResourceControlDeleteBadRequest

type ResourceControlDeleteBadRequest struct {
	Payload *models.GenericError
}

ResourceControlDeleteBadRequest handles this case with default header values.

Invalid request

func NewResourceControlDeleteBadRequest

func NewResourceControlDeleteBadRequest() *ResourceControlDeleteBadRequest

NewResourceControlDeleteBadRequest creates a ResourceControlDeleteBadRequest with default headers values

func (*ResourceControlDeleteBadRequest) Error

type ResourceControlDeleteForbidden

type ResourceControlDeleteForbidden struct {
	Payload *models.GenericError
}

ResourceControlDeleteForbidden handles this case with default header values.

Unauthorized

func NewResourceControlDeleteForbidden

func NewResourceControlDeleteForbidden() *ResourceControlDeleteForbidden

NewResourceControlDeleteForbidden creates a ResourceControlDeleteForbidden with default headers values

func (*ResourceControlDeleteForbidden) Error

type ResourceControlDeleteInternalServerError

type ResourceControlDeleteInternalServerError struct {
	Payload *models.GenericError
}

ResourceControlDeleteInternalServerError handles this case with default header values.

Server error

func NewResourceControlDeleteInternalServerError

func NewResourceControlDeleteInternalServerError() *ResourceControlDeleteInternalServerError

NewResourceControlDeleteInternalServerError creates a ResourceControlDeleteInternalServerError with default headers values

func (*ResourceControlDeleteInternalServerError) Error

type ResourceControlDeleteNoContent

type ResourceControlDeleteNoContent struct {
}

ResourceControlDeleteNoContent handles this case with default header values.

Success

func NewResourceControlDeleteNoContent

func NewResourceControlDeleteNoContent() *ResourceControlDeleteNoContent

NewResourceControlDeleteNoContent creates a ResourceControlDeleteNoContent with default headers values

func (*ResourceControlDeleteNoContent) Error

type ResourceControlDeleteNotFound

type ResourceControlDeleteNotFound struct {
	Payload *models.GenericError
}

ResourceControlDeleteNotFound handles this case with default header values.

Resource control not found

func NewResourceControlDeleteNotFound

func NewResourceControlDeleteNotFound() *ResourceControlDeleteNotFound

NewResourceControlDeleteNotFound creates a ResourceControlDeleteNotFound with default headers values

func (*ResourceControlDeleteNotFound) Error

type ResourceControlDeleteParams

type ResourceControlDeleteParams struct {

	/*ID
	  Resource control identifier

	*/
	ID int64

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

ResourceControlDeleteParams contains all the parameters to send to the API endpoint for the resource control delete operation typically these are written to a http.Request

func NewResourceControlDeleteParams

func NewResourceControlDeleteParams() *ResourceControlDeleteParams

NewResourceControlDeleteParams creates a new ResourceControlDeleteParams object with the default values initialized.

func NewResourceControlDeleteParamsWithContext

func NewResourceControlDeleteParamsWithContext(ctx context.Context) *ResourceControlDeleteParams

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

func NewResourceControlDeleteParamsWithHTTPClient

func NewResourceControlDeleteParamsWithHTTPClient(client *http.Client) *ResourceControlDeleteParams

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

func NewResourceControlDeleteParamsWithTimeout

func NewResourceControlDeleteParamsWithTimeout(timeout time.Duration) *ResourceControlDeleteParams

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

func (*ResourceControlDeleteParams) SetContext

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

SetContext adds the context to the resource control delete params

func (*ResourceControlDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the resource control delete params

func (*ResourceControlDeleteParams) SetID

func (o *ResourceControlDeleteParams) SetID(id int64)

SetID adds the id to the resource control delete params

func (*ResourceControlDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the resource control delete params

func (*ResourceControlDeleteParams) WithContext

WithContext adds the context to the resource control delete params

func (*ResourceControlDeleteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the resource control delete params

func (*ResourceControlDeleteParams) WithID

WithID adds the id to the resource control delete params

func (*ResourceControlDeleteParams) WithTimeout

WithTimeout adds the timeout to the resource control delete params

func (*ResourceControlDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResourceControlDeleteReader

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

ResourceControlDeleteReader is a Reader for the ResourceControlDelete structure.

func (*ResourceControlDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResourceControlUpdateBadRequest

type ResourceControlUpdateBadRequest struct {
	Payload *models.GenericError
}

ResourceControlUpdateBadRequest handles this case with default header values.

Invalid request

func NewResourceControlUpdateBadRequest

func NewResourceControlUpdateBadRequest() *ResourceControlUpdateBadRequest

NewResourceControlUpdateBadRequest creates a ResourceControlUpdateBadRequest with default headers values

func (*ResourceControlUpdateBadRequest) Error

type ResourceControlUpdateForbidden

type ResourceControlUpdateForbidden struct {
	Payload *models.GenericError
}

ResourceControlUpdateForbidden handles this case with default header values.

Unauthorized

func NewResourceControlUpdateForbidden

func NewResourceControlUpdateForbidden() *ResourceControlUpdateForbidden

NewResourceControlUpdateForbidden creates a ResourceControlUpdateForbidden with default headers values

func (*ResourceControlUpdateForbidden) Error

type ResourceControlUpdateInternalServerError

type ResourceControlUpdateInternalServerError struct {
	Payload *models.GenericError
}

ResourceControlUpdateInternalServerError handles this case with default header values.

Server error

func NewResourceControlUpdateInternalServerError

func NewResourceControlUpdateInternalServerError() *ResourceControlUpdateInternalServerError

NewResourceControlUpdateInternalServerError creates a ResourceControlUpdateInternalServerError with default headers values

func (*ResourceControlUpdateInternalServerError) Error

type ResourceControlUpdateNotFound

type ResourceControlUpdateNotFound struct {
	Payload *models.GenericError
}

ResourceControlUpdateNotFound handles this case with default header values.

Resource control not found

func NewResourceControlUpdateNotFound

func NewResourceControlUpdateNotFound() *ResourceControlUpdateNotFound

NewResourceControlUpdateNotFound creates a ResourceControlUpdateNotFound with default headers values

func (*ResourceControlUpdateNotFound) Error

type ResourceControlUpdateOK

type ResourceControlUpdateOK struct {
	Payload *models.ResourceControl
}

ResourceControlUpdateOK handles this case with default header values.

Success

func NewResourceControlUpdateOK

func NewResourceControlUpdateOK() *ResourceControlUpdateOK

NewResourceControlUpdateOK creates a ResourceControlUpdateOK with default headers values

func (*ResourceControlUpdateOK) Error

func (o *ResourceControlUpdateOK) Error() string

type ResourceControlUpdateParams

type ResourceControlUpdateParams struct {

	/*Body
	  Resource control details

	*/
	Body *models.ResourceControlUpdateRequest
	/*ID
	  Resource control identifier

	*/
	ID int64

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

ResourceControlUpdateParams contains all the parameters to send to the API endpoint for the resource control update operation typically these are written to a http.Request

func NewResourceControlUpdateParams

func NewResourceControlUpdateParams() *ResourceControlUpdateParams

NewResourceControlUpdateParams creates a new ResourceControlUpdateParams object with the default values initialized.

func NewResourceControlUpdateParamsWithContext

func NewResourceControlUpdateParamsWithContext(ctx context.Context) *ResourceControlUpdateParams

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

func NewResourceControlUpdateParamsWithHTTPClient

func NewResourceControlUpdateParamsWithHTTPClient(client *http.Client) *ResourceControlUpdateParams

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

func NewResourceControlUpdateParamsWithTimeout

func NewResourceControlUpdateParamsWithTimeout(timeout time.Duration) *ResourceControlUpdateParams

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

func (*ResourceControlUpdateParams) SetBody

SetBody adds the body to the resource control update params

func (*ResourceControlUpdateParams) SetContext

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

SetContext adds the context to the resource control update params

func (*ResourceControlUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the resource control update params

func (*ResourceControlUpdateParams) SetID

func (o *ResourceControlUpdateParams) SetID(id int64)

SetID adds the id to the resource control update params

func (*ResourceControlUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the resource control update params

func (*ResourceControlUpdateParams) WithBody

WithBody adds the body to the resource control update params

func (*ResourceControlUpdateParams) WithContext

WithContext adds the context to the resource control update params

func (*ResourceControlUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the resource control update params

func (*ResourceControlUpdateParams) WithID

WithID adds the id to the resource control update params

func (*ResourceControlUpdateParams) WithTimeout

WithTimeout adds the timeout to the resource control update params

func (*ResourceControlUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResourceControlUpdateReader

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

ResourceControlUpdateReader is a Reader for the ResourceControlUpdate structure.

func (*ResourceControlUpdateReader) ReadResponse

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