resource_quotas

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 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 quotas API

func (*Client) GetUsingGET3

func (a *Client) GetUsingGET3(params *GetUsingGET3Params, opts ...ClientOption) (*GetUsingGET3OK, error)

GetUsingGET3 gets a k8 s resource quota by id

Get a K8S ResourceQuota by id

func (*Client) ListUsingGET3

func (a *Client) ListUsingGET3(params *ListUsingGET3Params, opts ...ClientOption) (*ListUsingGET3OK, error)

ListUsingGET3 gets all k8 s resource quotas

Get a list of all K8S ResourceQuotas

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetUsingGET3(params *GetUsingGET3Params, opts ...ClientOption) (*GetUsingGET3OK, error)

	ListUsingGET3(params *ListUsingGET3Params, opts ...ClientOption) (*ListUsingGET3OK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new resource quotas API client.

type GetUsingGET3Forbidden added in v0.5.0

type GetUsingGET3Forbidden struct {
}

GetUsingGET3Forbidden describes a response with status code 403, with default header values.

Forbidden, the user lacks permissions

func NewGetUsingGET3Forbidden added in v0.5.0

func NewGetUsingGET3Forbidden() *GetUsingGET3Forbidden

NewGetUsingGET3Forbidden creates a GetUsingGET3Forbidden with default headers values

func (*GetUsingGET3Forbidden) Error added in v0.5.0

func (o *GetUsingGET3Forbidden) Error() string

func (*GetUsingGET3Forbidden) IsClientError added in v0.5.0

func (o *GetUsingGET3Forbidden) IsClientError() bool

IsClientError returns true when this get using g e t3 forbidden response has a 4xx status code

func (*GetUsingGET3Forbidden) IsCode added in v0.5.0

func (o *GetUsingGET3Forbidden) IsCode(code int) bool

IsCode returns true when this get using g e t3 forbidden response a status code equal to that given

func (*GetUsingGET3Forbidden) IsRedirect added in v0.5.0

func (o *GetUsingGET3Forbidden) IsRedirect() bool

IsRedirect returns true when this get using g e t3 forbidden response has a 3xx status code

func (*GetUsingGET3Forbidden) IsServerError added in v0.5.0

func (o *GetUsingGET3Forbidden) IsServerError() bool

IsServerError returns true when this get using g e t3 forbidden response has a 5xx status code

func (*GetUsingGET3Forbidden) IsSuccess added in v0.5.0

func (o *GetUsingGET3Forbidden) IsSuccess() bool

IsSuccess returns true when this get using g e t3 forbidden response has a 2xx status code

func (*GetUsingGET3Forbidden) String added in v0.5.0

func (o *GetUsingGET3Forbidden) String() string

type GetUsingGET3OK

type GetUsingGET3OK struct {
	Payload *models.K8SResourceQuota
}

GetUsingGET3OK describes a response with status code 200, with default header values.

OK

func NewGetUsingGET3OK

func NewGetUsingGET3OK() *GetUsingGET3OK

NewGetUsingGET3OK creates a GetUsingGET3OK with default headers values

func (*GetUsingGET3OK) Error

func (o *GetUsingGET3OK) Error() string

func (*GetUsingGET3OK) GetPayload

func (o *GetUsingGET3OK) GetPayload() *models.K8SResourceQuota

func (*GetUsingGET3OK) IsClientError added in v0.5.0

func (o *GetUsingGET3OK) IsClientError() bool

IsClientError returns true when this get using g e t3 o k response has a 4xx status code

func (*GetUsingGET3OK) IsCode added in v0.5.0

func (o *GetUsingGET3OK) IsCode(code int) bool

IsCode returns true when this get using g e t3 o k response a status code equal to that given

func (*GetUsingGET3OK) IsRedirect added in v0.5.0

func (o *GetUsingGET3OK) IsRedirect() bool

IsRedirect returns true when this get using g e t3 o k response has a 3xx status code

func (*GetUsingGET3OK) IsServerError added in v0.5.0

func (o *GetUsingGET3OK) IsServerError() bool

IsServerError returns true when this get using g e t3 o k response has a 5xx status code

func (*GetUsingGET3OK) IsSuccess added in v0.5.0

func (o *GetUsingGET3OK) IsSuccess() bool

IsSuccess returns true when this get using g e t3 o k response has a 2xx status code

func (*GetUsingGET3OK) String added in v0.5.0

func (o *GetUsingGET3OK) String() string

type GetUsingGET3Params

type GetUsingGET3Params struct {

	/* ID.

	   id

	   Format: uuid
	*/
	ID strfmt.UUID

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

GetUsingGET3Params contains all the parameters to send to the API endpoint

for the get using g e t 3 operation.

Typically these are written to a http.Request.

func NewGetUsingGET3Params

func NewGetUsingGET3Params() *GetUsingGET3Params

NewGetUsingGET3Params creates a new GetUsingGET3Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetUsingGET3ParamsWithContext

func NewGetUsingGET3ParamsWithContext(ctx context.Context) *GetUsingGET3Params

NewGetUsingGET3ParamsWithContext creates a new GetUsingGET3Params object with the ability to set a context for a request.

func NewGetUsingGET3ParamsWithHTTPClient

func NewGetUsingGET3ParamsWithHTTPClient(client *http.Client) *GetUsingGET3Params

NewGetUsingGET3ParamsWithHTTPClient creates a new GetUsingGET3Params object with the ability to set a custom HTTPClient for a request.

func NewGetUsingGET3ParamsWithTimeout

func NewGetUsingGET3ParamsWithTimeout(timeout time.Duration) *GetUsingGET3Params

NewGetUsingGET3ParamsWithTimeout creates a new GetUsingGET3Params object with the ability to set a timeout on a request.

func (*GetUsingGET3Params) SetContext

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

SetContext adds the context to the get using g e t 3 params

func (*GetUsingGET3Params) SetDefaults

func (o *GetUsingGET3Params) SetDefaults()

SetDefaults hydrates default values in the get using g e t 3 params (not the query body).

All values with no default are reset to their zero value.

func (*GetUsingGET3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get using g e t 3 params

func (*GetUsingGET3Params) SetID

func (o *GetUsingGET3Params) SetID(id strfmt.UUID)

SetID adds the id to the get using g e t 3 params

func (*GetUsingGET3Params) SetTimeout

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

SetTimeout adds the timeout to the get using g e t 3 params

func (*GetUsingGET3Params) WithContext

WithContext adds the context to the get using g e t 3 params

func (*GetUsingGET3Params) WithDefaults

func (o *GetUsingGET3Params) WithDefaults() *GetUsingGET3Params

WithDefaults hydrates default values in the get using g e t 3 params (not the query body).

All values with no default are reset to their zero value.

func (*GetUsingGET3Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get using g e t 3 params

func (*GetUsingGET3Params) WithID

WithID adds the id to the get using g e t 3 params

func (*GetUsingGET3Params) WithTimeout

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

WithTimeout adds the timeout to the get using g e t 3 params

func (*GetUsingGET3Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUsingGET3Reader

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

GetUsingGET3Reader is a Reader for the GetUsingGET3 structure.

func (*GetUsingGET3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUsingGET3Forbidden added in v0.5.0

type ListUsingGET3Forbidden struct {
}

ListUsingGET3Forbidden describes a response with status code 403, with default header values.

Forbidden, the user lacks permissions

func NewListUsingGET3Forbidden added in v0.5.0

func NewListUsingGET3Forbidden() *ListUsingGET3Forbidden

NewListUsingGET3Forbidden creates a ListUsingGET3Forbidden with default headers values

func (*ListUsingGET3Forbidden) Error added in v0.5.0

func (o *ListUsingGET3Forbidden) Error() string

func (*ListUsingGET3Forbidden) IsClientError added in v0.5.0

func (o *ListUsingGET3Forbidden) IsClientError() bool

IsClientError returns true when this list using g e t3 forbidden response has a 4xx status code

func (*ListUsingGET3Forbidden) IsCode added in v0.5.0

func (o *ListUsingGET3Forbidden) IsCode(code int) bool

IsCode returns true when this list using g e t3 forbidden response a status code equal to that given

func (*ListUsingGET3Forbidden) IsRedirect added in v0.5.0

func (o *ListUsingGET3Forbidden) IsRedirect() bool

IsRedirect returns true when this list using g e t3 forbidden response has a 3xx status code

func (*ListUsingGET3Forbidden) IsServerError added in v0.5.0

func (o *ListUsingGET3Forbidden) IsServerError() bool

IsServerError returns true when this list using g e t3 forbidden response has a 5xx status code

func (*ListUsingGET3Forbidden) IsSuccess added in v0.5.0

func (o *ListUsingGET3Forbidden) IsSuccess() bool

IsSuccess returns true when this list using g e t3 forbidden response has a 2xx status code

func (*ListUsingGET3Forbidden) String added in v0.5.0

func (o *ListUsingGET3Forbidden) String() string

type ListUsingGET3OK

type ListUsingGET3OK struct {
	Payload *models.PageOfK8SResourceQuota
}

ListUsingGET3OK describes a response with status code 200, with default header values.

OK

func NewListUsingGET3OK

func NewListUsingGET3OK() *ListUsingGET3OK

NewListUsingGET3OK creates a ListUsingGET3OK with default headers values

func (*ListUsingGET3OK) Error

func (o *ListUsingGET3OK) Error() string

func (*ListUsingGET3OK) GetPayload

func (*ListUsingGET3OK) IsClientError added in v0.5.0

func (o *ListUsingGET3OK) IsClientError() bool

IsClientError returns true when this list using g e t3 o k response has a 4xx status code

func (*ListUsingGET3OK) IsCode added in v0.5.0

func (o *ListUsingGET3OK) IsCode(code int) bool

IsCode returns true when this list using g e t3 o k response a status code equal to that given

func (*ListUsingGET3OK) IsRedirect added in v0.5.0

func (o *ListUsingGET3OK) IsRedirect() bool

IsRedirect returns true when this list using g e t3 o k response has a 3xx status code

func (*ListUsingGET3OK) IsServerError added in v0.5.0

func (o *ListUsingGET3OK) IsServerError() bool

IsServerError returns true when this list using g e t3 o k response has a 5xx status code

func (*ListUsingGET3OK) IsSuccess added in v0.5.0

func (o *ListUsingGET3OK) IsSuccess() bool

IsSuccess returns true when this list using g e t3 o k response has a 2xx status code

func (*ListUsingGET3OK) String added in v0.5.0

func (o *ListUsingGET3OK) String() string

type ListUsingGET3Params

type ListUsingGET3Params struct {

	// Offset.
	//
	// Format: int64
	Offset *int64

	// PageNumber.
	//
	// Format: int32
	PageNumber *int32

	// PageSize.
	//
	// Format: int32
	PageSize *int32

	// Paged.
	Paged *bool

	// SortSorted.
	SortSorted *bool

	// SortUnsorted.
	SortUnsorted *bool

	// Unpaged.
	Unpaged *bool

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

ListUsingGET3Params contains all the parameters to send to the API endpoint

for the list using g e t 3 operation.

Typically these are written to a http.Request.

func NewListUsingGET3Params

func NewListUsingGET3Params() *ListUsingGET3Params

NewListUsingGET3Params creates a new ListUsingGET3Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListUsingGET3ParamsWithContext

func NewListUsingGET3ParamsWithContext(ctx context.Context) *ListUsingGET3Params

NewListUsingGET3ParamsWithContext creates a new ListUsingGET3Params object with the ability to set a context for a request.

func NewListUsingGET3ParamsWithHTTPClient

func NewListUsingGET3ParamsWithHTTPClient(client *http.Client) *ListUsingGET3Params

NewListUsingGET3ParamsWithHTTPClient creates a new ListUsingGET3Params object with the ability to set a custom HTTPClient for a request.

func NewListUsingGET3ParamsWithTimeout

func NewListUsingGET3ParamsWithTimeout(timeout time.Duration) *ListUsingGET3Params

NewListUsingGET3ParamsWithTimeout creates a new ListUsingGET3Params object with the ability to set a timeout on a request.

func (*ListUsingGET3Params) SetContext

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

SetContext adds the context to the list using g e t 3 params

func (*ListUsingGET3Params) SetDefaults

func (o *ListUsingGET3Params) SetDefaults()

SetDefaults hydrates default values in the list using g e t 3 params (not the query body).

All values with no default are reset to their zero value.

func (*ListUsingGET3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list using g e t 3 params

func (*ListUsingGET3Params) SetOffset

func (o *ListUsingGET3Params) SetOffset(offset *int64)

SetOffset adds the offset to the list using g e t 3 params

func (*ListUsingGET3Params) SetPageNumber

func (o *ListUsingGET3Params) SetPageNumber(pageNumber *int32)

SetPageNumber adds the pageNumber to the list using g e t 3 params

func (*ListUsingGET3Params) SetPageSize

func (o *ListUsingGET3Params) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the list using g e t 3 params

func (*ListUsingGET3Params) SetPaged

func (o *ListUsingGET3Params) SetPaged(paged *bool)

SetPaged adds the paged to the list using g e t 3 params

func (*ListUsingGET3Params) SetSortSorted

func (o *ListUsingGET3Params) SetSortSorted(sortSorted *bool)

SetSortSorted adds the sortSorted to the list using g e t 3 params

func (*ListUsingGET3Params) SetSortUnsorted

func (o *ListUsingGET3Params) SetSortUnsorted(sortUnsorted *bool)

SetSortUnsorted adds the sortUnsorted to the list using g e t 3 params

func (*ListUsingGET3Params) SetTimeout

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

SetTimeout adds the timeout to the list using g e t 3 params

func (*ListUsingGET3Params) SetUnpaged

func (o *ListUsingGET3Params) SetUnpaged(unpaged *bool)

SetUnpaged adds the unpaged to the list using g e t 3 params

func (*ListUsingGET3Params) WithContext

WithContext adds the context to the list using g e t 3 params

func (*ListUsingGET3Params) WithDefaults

func (o *ListUsingGET3Params) WithDefaults() *ListUsingGET3Params

WithDefaults hydrates default values in the list using g e t 3 params (not the query body).

All values with no default are reset to their zero value.

func (*ListUsingGET3Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list using g e t 3 params

func (*ListUsingGET3Params) WithOffset

func (o *ListUsingGET3Params) WithOffset(offset *int64) *ListUsingGET3Params

WithOffset adds the offset to the list using g e t 3 params

func (*ListUsingGET3Params) WithPageNumber

func (o *ListUsingGET3Params) WithPageNumber(pageNumber *int32) *ListUsingGET3Params

WithPageNumber adds the pageNumber to the list using g e t 3 params

func (*ListUsingGET3Params) WithPageSize

func (o *ListUsingGET3Params) WithPageSize(pageSize *int32) *ListUsingGET3Params

WithPageSize adds the pageSize to the list using g e t 3 params

func (*ListUsingGET3Params) WithPaged

func (o *ListUsingGET3Params) WithPaged(paged *bool) *ListUsingGET3Params

WithPaged adds the paged to the list using g e t 3 params

func (*ListUsingGET3Params) WithSortSorted

func (o *ListUsingGET3Params) WithSortSorted(sortSorted *bool) *ListUsingGET3Params

WithSortSorted adds the sortSorted to the list using g e t 3 params

func (*ListUsingGET3Params) WithSortUnsorted

func (o *ListUsingGET3Params) WithSortUnsorted(sortUnsorted *bool) *ListUsingGET3Params

WithSortUnsorted adds the sortUnsorted to the list using g e t 3 params

func (*ListUsingGET3Params) WithTimeout

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

WithTimeout adds the timeout to the list using g e t 3 params

func (*ListUsingGET3Params) WithUnpaged

func (o *ListUsingGET3Params) WithUnpaged(unpaged *bool) *ListUsingGET3Params

WithUnpaged adds the unpaged to the list using g e t 3 params

func (*ListUsingGET3Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListUsingGET3Reader

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

ListUsingGET3Reader is a Reader for the ListUsingGET3 structure.

func (*ListUsingGET3Reader) ReadResponse

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