system

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 12 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 system API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SystemDataUsageLibpod

func (a *Client) SystemDataUsageLibpod(params *SystemDataUsageLibpodParams, opts ...ClientOption) (*SystemDataUsageLibpodOK, error)

SystemDataUsageLibpod shows disk usage

Return information about disk usage for containers, images, and volumes

func (*Client) SystemEventsLibpod

func (a *Client) SystemEventsLibpod(params *SystemEventsLibpodParams, opts ...ClientOption) (*SystemEventsLibpodOK, error)

SystemEventsLibpod gets events

Returns events filtered on query parameters

func (*Client) SystemInfoLibpod

func (a *Client) SystemInfoLibpod(params *SystemInfoLibpodParams, opts ...ClientOption) (*SystemInfoLibpodOK, error)

SystemInfoLibpod gets info

Returns information on the system and libpod configuration

func (*Client) SystemPruneLibpod

func (a *Client) SystemPruneLibpod(params *SystemPruneLibpodParams, opts ...ClientOption) (*SystemPruneLibpodOK, error)

SystemPruneLibpod prunes unused data

func (*Client) SystemVersionLibpod

func (a *Client) SystemVersionLibpod(params *SystemVersionLibpodParams, opts ...ClientOption) (*SystemVersionLibpodOK, error)

SystemVersionLibpod components version information

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SystemDataUsageLibpod(params *SystemDataUsageLibpodParams, opts ...ClientOption) (*SystemDataUsageLibpodOK, error)

	SystemEventsLibpod(params *SystemEventsLibpodParams, opts ...ClientOption) (*SystemEventsLibpodOK, error)

	SystemInfoLibpod(params *SystemInfoLibpodParams, opts ...ClientOption) (*SystemInfoLibpodOK, error)

	SystemPruneLibpod(params *SystemPruneLibpodParams, opts ...ClientOption) (*SystemPruneLibpodOK, error)

	SystemVersionLibpod(params *SystemVersionLibpodParams, opts ...ClientOption) (*SystemVersionLibpodOK, 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 system API client.

type SystemDataUsageLibpodInternalServerError

type SystemDataUsageLibpodInternalServerError struct {
	Payload *SystemDataUsageLibpodInternalServerErrorBody
}

SystemDataUsageLibpodInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewSystemDataUsageLibpodInternalServerError

func NewSystemDataUsageLibpodInternalServerError() *SystemDataUsageLibpodInternalServerError

NewSystemDataUsageLibpodInternalServerError creates a SystemDataUsageLibpodInternalServerError with default headers values

func (*SystemDataUsageLibpodInternalServerError) Error

func (*SystemDataUsageLibpodInternalServerError) GetPayload

func (*SystemDataUsageLibpodInternalServerError) IsClientError

IsClientError returns true when this system data usage libpod internal server error response has a 4xx status code

func (*SystemDataUsageLibpodInternalServerError) IsCode

IsCode returns true when this system data usage libpod internal server error response a status code equal to that given

func (*SystemDataUsageLibpodInternalServerError) IsRedirect

IsRedirect returns true when this system data usage libpod internal server error response has a 3xx status code

func (*SystemDataUsageLibpodInternalServerError) IsServerError

IsServerError returns true when this system data usage libpod internal server error response has a 5xx status code

func (*SystemDataUsageLibpodInternalServerError) IsSuccess

IsSuccess returns true when this system data usage libpod internal server error response has a 2xx status code

func (*SystemDataUsageLibpodInternalServerError) String

type SystemDataUsageLibpodInternalServerErrorBody

type SystemDataUsageLibpodInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

SystemDataUsageLibpodInternalServerErrorBody system data usage libpod internal server error body swagger:model SystemDataUsageLibpodInternalServerErrorBody

func (*SystemDataUsageLibpodInternalServerErrorBody) ContextValidate

ContextValidate validates this system data usage libpod internal server error body based on context it is used

func (*SystemDataUsageLibpodInternalServerErrorBody) MarshalBinary

MarshalBinary interface implementation

func (*SystemDataUsageLibpodInternalServerErrorBody) UnmarshalBinary

UnmarshalBinary interface implementation

func (*SystemDataUsageLibpodInternalServerErrorBody) Validate

Validate validates this system data usage libpod internal server error body

type SystemDataUsageLibpodOK

type SystemDataUsageLibpodOK struct {
	Payload *SystemDataUsageLibpodOKBody
}

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

Disk usage

func NewSystemDataUsageLibpodOK

func NewSystemDataUsageLibpodOK() *SystemDataUsageLibpodOK

NewSystemDataUsageLibpodOK creates a SystemDataUsageLibpodOK with default headers values

func (*SystemDataUsageLibpodOK) Error

func (o *SystemDataUsageLibpodOK) Error() string

func (*SystemDataUsageLibpodOK) GetPayload

func (*SystemDataUsageLibpodOK) IsClientError

func (o *SystemDataUsageLibpodOK) IsClientError() bool

IsClientError returns true when this system data usage libpod o k response has a 4xx status code

func (*SystemDataUsageLibpodOK) IsCode

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

IsCode returns true when this system data usage libpod o k response a status code equal to that given

func (*SystemDataUsageLibpodOK) IsRedirect

func (o *SystemDataUsageLibpodOK) IsRedirect() bool

IsRedirect returns true when this system data usage libpod o k response has a 3xx status code

func (*SystemDataUsageLibpodOK) IsServerError

func (o *SystemDataUsageLibpodOK) IsServerError() bool

IsServerError returns true when this system data usage libpod o k response has a 5xx status code

func (*SystemDataUsageLibpodOK) IsSuccess

func (o *SystemDataUsageLibpodOK) IsSuccess() bool

IsSuccess returns true when this system data usage libpod o k response has a 2xx status code

func (*SystemDataUsageLibpodOK) String

func (o *SystemDataUsageLibpodOK) String() string

type SystemDataUsageLibpodOKBody

type SystemDataUsageLibpodOKBody struct {

	// containers
	Containers []*models.SystemDfContainerReport `json:"Containers"`

	// images
	Images []*models.SystemDfImageReport `json:"Images"`

	// volumes
	Volumes []*models.SystemDfVolumeReport `json:"Volumes"`
}

SystemDataUsageLibpodOKBody system data usage libpod o k body swagger:model SystemDataUsageLibpodOKBody

func (*SystemDataUsageLibpodOKBody) ContextValidate

func (o *SystemDataUsageLibpodOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this system data usage libpod o k body based on the context it is used

func (*SystemDataUsageLibpodOKBody) MarshalBinary

func (o *SystemDataUsageLibpodOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemDataUsageLibpodOKBody) UnmarshalBinary

func (o *SystemDataUsageLibpodOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemDataUsageLibpodOKBody) Validate

func (o *SystemDataUsageLibpodOKBody) Validate(formats strfmt.Registry) error

Validate validates this system data usage libpod o k body

type SystemDataUsageLibpodParams

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

SystemDataUsageLibpodParams contains all the parameters to send to the API endpoint

for the system data usage libpod operation.

Typically these are written to a http.Request.

func NewSystemDataUsageLibpodParams

func NewSystemDataUsageLibpodParams() *SystemDataUsageLibpodParams

NewSystemDataUsageLibpodParams creates a new SystemDataUsageLibpodParams 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 NewSystemDataUsageLibpodParamsWithContext

func NewSystemDataUsageLibpodParamsWithContext(ctx context.Context) *SystemDataUsageLibpodParams

NewSystemDataUsageLibpodParamsWithContext creates a new SystemDataUsageLibpodParams object with the ability to set a context for a request.

func NewSystemDataUsageLibpodParamsWithHTTPClient

func NewSystemDataUsageLibpodParamsWithHTTPClient(client *http.Client) *SystemDataUsageLibpodParams

NewSystemDataUsageLibpodParamsWithHTTPClient creates a new SystemDataUsageLibpodParams object with the ability to set a custom HTTPClient for a request.

func NewSystemDataUsageLibpodParamsWithTimeout

func NewSystemDataUsageLibpodParamsWithTimeout(timeout time.Duration) *SystemDataUsageLibpodParams

NewSystemDataUsageLibpodParamsWithTimeout creates a new SystemDataUsageLibpodParams object with the ability to set a timeout on a request.

func (*SystemDataUsageLibpodParams) SetContext

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

SetContext adds the context to the system data usage libpod params

func (*SystemDataUsageLibpodParams) SetDefaults

func (o *SystemDataUsageLibpodParams) SetDefaults()

SetDefaults hydrates default values in the system data usage libpod params (not the query body).

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

func (*SystemDataUsageLibpodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system data usage libpod params

func (*SystemDataUsageLibpodParams) SetTimeout

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

SetTimeout adds the timeout to the system data usage libpod params

func (*SystemDataUsageLibpodParams) WithContext

WithContext adds the context to the system data usage libpod params

func (*SystemDataUsageLibpodParams) WithDefaults

WithDefaults hydrates default values in the system data usage libpod params (not the query body).

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

func (*SystemDataUsageLibpodParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the system data usage libpod params

func (*SystemDataUsageLibpodParams) WithTimeout

WithTimeout adds the timeout to the system data usage libpod params

func (*SystemDataUsageLibpodParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SystemDataUsageLibpodReader

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

SystemDataUsageLibpodReader is a Reader for the SystemDataUsageLibpod structure.

func (*SystemDataUsageLibpodReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SystemEventsLibpodInternalServerError

type SystemEventsLibpodInternalServerError struct {
	Payload *SystemEventsLibpodInternalServerErrorBody
}

SystemEventsLibpodInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewSystemEventsLibpodInternalServerError

func NewSystemEventsLibpodInternalServerError() *SystemEventsLibpodInternalServerError

NewSystemEventsLibpodInternalServerError creates a SystemEventsLibpodInternalServerError with default headers values

func (*SystemEventsLibpodInternalServerError) Error

func (*SystemEventsLibpodInternalServerError) GetPayload

func (*SystemEventsLibpodInternalServerError) IsClientError

func (o *SystemEventsLibpodInternalServerError) IsClientError() bool

IsClientError returns true when this system events libpod internal server error response has a 4xx status code

func (*SystemEventsLibpodInternalServerError) IsCode

IsCode returns true when this system events libpod internal server error response a status code equal to that given

func (*SystemEventsLibpodInternalServerError) IsRedirect

IsRedirect returns true when this system events libpod internal server error response has a 3xx status code

func (*SystemEventsLibpodInternalServerError) IsServerError

func (o *SystemEventsLibpodInternalServerError) IsServerError() bool

IsServerError returns true when this system events libpod internal server error response has a 5xx status code

func (*SystemEventsLibpodInternalServerError) IsSuccess

IsSuccess returns true when this system events libpod internal server error response has a 2xx status code

func (*SystemEventsLibpodInternalServerError) String

type SystemEventsLibpodInternalServerErrorBody

type SystemEventsLibpodInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

SystemEventsLibpodInternalServerErrorBody system events libpod internal server error body swagger:model SystemEventsLibpodInternalServerErrorBody

func (*SystemEventsLibpodInternalServerErrorBody) ContextValidate

ContextValidate validates this system events libpod internal server error body based on context it is used

func (*SystemEventsLibpodInternalServerErrorBody) MarshalBinary

func (o *SystemEventsLibpodInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemEventsLibpodInternalServerErrorBody) UnmarshalBinary

func (o *SystemEventsLibpodInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemEventsLibpodInternalServerErrorBody) Validate

Validate validates this system events libpod internal server error body

type SystemEventsLibpodOK

type SystemEventsLibpodOK struct {
}

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

returns a string of json data describing an event

func NewSystemEventsLibpodOK

func NewSystemEventsLibpodOK() *SystemEventsLibpodOK

NewSystemEventsLibpodOK creates a SystemEventsLibpodOK with default headers values

func (*SystemEventsLibpodOK) Error

func (o *SystemEventsLibpodOK) Error() string

func (*SystemEventsLibpodOK) IsClientError

func (o *SystemEventsLibpodOK) IsClientError() bool

IsClientError returns true when this system events libpod o k response has a 4xx status code

func (*SystemEventsLibpodOK) IsCode

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

IsCode returns true when this system events libpod o k response a status code equal to that given

func (*SystemEventsLibpodOK) IsRedirect

func (o *SystemEventsLibpodOK) IsRedirect() bool

IsRedirect returns true when this system events libpod o k response has a 3xx status code

func (*SystemEventsLibpodOK) IsServerError

func (o *SystemEventsLibpodOK) IsServerError() bool

IsServerError returns true when this system events libpod o k response has a 5xx status code

func (*SystemEventsLibpodOK) IsSuccess

func (o *SystemEventsLibpodOK) IsSuccess() bool

IsSuccess returns true when this system events libpod o k response has a 2xx status code

func (*SystemEventsLibpodOK) String

func (o *SystemEventsLibpodOK) String() string

type SystemEventsLibpodParams

type SystemEventsLibpodParams struct {

	/* Filters.

	   JSON encoded map[string][]string of constraints
	*/
	Filters *string

	/* Since.

	   start streaming events from this time
	*/
	Since *string

	/* Stream.

	   when false, do not follow events

	   Default: true
	*/
	Stream *bool

	/* Until.

	   stop streaming events later than this
	*/
	Until *string

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

SystemEventsLibpodParams contains all the parameters to send to the API endpoint

for the system events libpod operation.

Typically these are written to a http.Request.

func NewSystemEventsLibpodParams

func NewSystemEventsLibpodParams() *SystemEventsLibpodParams

NewSystemEventsLibpodParams creates a new SystemEventsLibpodParams 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 NewSystemEventsLibpodParamsWithContext

func NewSystemEventsLibpodParamsWithContext(ctx context.Context) *SystemEventsLibpodParams

NewSystemEventsLibpodParamsWithContext creates a new SystemEventsLibpodParams object with the ability to set a context for a request.

func NewSystemEventsLibpodParamsWithHTTPClient

func NewSystemEventsLibpodParamsWithHTTPClient(client *http.Client) *SystemEventsLibpodParams

NewSystemEventsLibpodParamsWithHTTPClient creates a new SystemEventsLibpodParams object with the ability to set a custom HTTPClient for a request.

func NewSystemEventsLibpodParamsWithTimeout

func NewSystemEventsLibpodParamsWithTimeout(timeout time.Duration) *SystemEventsLibpodParams

NewSystemEventsLibpodParamsWithTimeout creates a new SystemEventsLibpodParams object with the ability to set a timeout on a request.

func (*SystemEventsLibpodParams) SetContext

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

SetContext adds the context to the system events libpod params

func (*SystemEventsLibpodParams) SetDefaults

func (o *SystemEventsLibpodParams) SetDefaults()

SetDefaults hydrates default values in the system events libpod params (not the query body).

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

func (*SystemEventsLibpodParams) SetFilters

func (o *SystemEventsLibpodParams) SetFilters(filters *string)

SetFilters adds the filters to the system events libpod params

func (*SystemEventsLibpodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system events libpod params

func (*SystemEventsLibpodParams) SetSince

func (o *SystemEventsLibpodParams) SetSince(since *string)

SetSince adds the since to the system events libpod params

func (*SystemEventsLibpodParams) SetStream

func (o *SystemEventsLibpodParams) SetStream(stream *bool)

SetStream adds the stream to the system events libpod params

func (*SystemEventsLibpodParams) SetTimeout

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

SetTimeout adds the timeout to the system events libpod params

func (*SystemEventsLibpodParams) SetUntil

func (o *SystemEventsLibpodParams) SetUntil(until *string)

SetUntil adds the until to the system events libpod params

func (*SystemEventsLibpodParams) WithContext

WithContext adds the context to the system events libpod params

func (*SystemEventsLibpodParams) WithDefaults

WithDefaults hydrates default values in the system events libpod params (not the query body).

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

func (*SystemEventsLibpodParams) WithFilters

func (o *SystemEventsLibpodParams) WithFilters(filters *string) *SystemEventsLibpodParams

WithFilters adds the filters to the system events libpod params

func (*SystemEventsLibpodParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system events libpod params

func (*SystemEventsLibpodParams) WithSince

WithSince adds the since to the system events libpod params

func (*SystemEventsLibpodParams) WithStream

func (o *SystemEventsLibpodParams) WithStream(stream *bool) *SystemEventsLibpodParams

WithStream adds the stream to the system events libpod params

func (*SystemEventsLibpodParams) WithTimeout

WithTimeout adds the timeout to the system events libpod params

func (*SystemEventsLibpodParams) WithUntil

WithUntil adds the until to the system events libpod params

func (*SystemEventsLibpodParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SystemEventsLibpodReader

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

SystemEventsLibpodReader is a Reader for the SystemEventsLibpod structure.

func (*SystemEventsLibpodReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SystemInfoLibpodInternalServerError

type SystemInfoLibpodInternalServerError struct {
	Payload *SystemInfoLibpodInternalServerErrorBody
}

SystemInfoLibpodInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewSystemInfoLibpodInternalServerError

func NewSystemInfoLibpodInternalServerError() *SystemInfoLibpodInternalServerError

NewSystemInfoLibpodInternalServerError creates a SystemInfoLibpodInternalServerError with default headers values

func (*SystemInfoLibpodInternalServerError) Error

func (*SystemInfoLibpodInternalServerError) GetPayload

func (*SystemInfoLibpodInternalServerError) IsClientError

func (o *SystemInfoLibpodInternalServerError) IsClientError() bool

IsClientError returns true when this system info libpod internal server error response has a 4xx status code

func (*SystemInfoLibpodInternalServerError) IsCode

IsCode returns true when this system info libpod internal server error response a status code equal to that given

func (*SystemInfoLibpodInternalServerError) IsRedirect

func (o *SystemInfoLibpodInternalServerError) IsRedirect() bool

IsRedirect returns true when this system info libpod internal server error response has a 3xx status code

func (*SystemInfoLibpodInternalServerError) IsServerError

func (o *SystemInfoLibpodInternalServerError) IsServerError() bool

IsServerError returns true when this system info libpod internal server error response has a 5xx status code

func (*SystemInfoLibpodInternalServerError) IsSuccess

IsSuccess returns true when this system info libpod internal server error response has a 2xx status code

func (*SystemInfoLibpodInternalServerError) String

type SystemInfoLibpodInternalServerErrorBody

type SystemInfoLibpodInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

SystemInfoLibpodInternalServerErrorBody system info libpod internal server error body swagger:model SystemInfoLibpodInternalServerErrorBody

func (*SystemInfoLibpodInternalServerErrorBody) ContextValidate

ContextValidate validates this system info libpod internal server error body based on context it is used

func (*SystemInfoLibpodInternalServerErrorBody) MarshalBinary

func (o *SystemInfoLibpodInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemInfoLibpodInternalServerErrorBody) UnmarshalBinary

func (o *SystemInfoLibpodInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemInfoLibpodInternalServerErrorBody) Validate

Validate validates this system info libpod internal server error body

type SystemInfoLibpodOK

type SystemInfoLibpodOK struct {
	Payload *models.Info
}

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

Info

func NewSystemInfoLibpodOK

func NewSystemInfoLibpodOK() *SystemInfoLibpodOK

NewSystemInfoLibpodOK creates a SystemInfoLibpodOK with default headers values

func (*SystemInfoLibpodOK) Error

func (o *SystemInfoLibpodOK) Error() string

func (*SystemInfoLibpodOK) GetPayload

func (o *SystemInfoLibpodOK) GetPayload() *models.Info

func (*SystemInfoLibpodOK) IsClientError

func (o *SystemInfoLibpodOK) IsClientError() bool

IsClientError returns true when this system info libpod o k response has a 4xx status code

func (*SystemInfoLibpodOK) IsCode

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

IsCode returns true when this system info libpod o k response a status code equal to that given

func (*SystemInfoLibpodOK) IsRedirect

func (o *SystemInfoLibpodOK) IsRedirect() bool

IsRedirect returns true when this system info libpod o k response has a 3xx status code

func (*SystemInfoLibpodOK) IsServerError

func (o *SystemInfoLibpodOK) IsServerError() bool

IsServerError returns true when this system info libpod o k response has a 5xx status code

func (*SystemInfoLibpodOK) IsSuccess

func (o *SystemInfoLibpodOK) IsSuccess() bool

IsSuccess returns true when this system info libpod o k response has a 2xx status code

func (*SystemInfoLibpodOK) String

func (o *SystemInfoLibpodOK) String() string

type SystemInfoLibpodParams

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

SystemInfoLibpodParams contains all the parameters to send to the API endpoint

for the system info libpod operation.

Typically these are written to a http.Request.

func NewSystemInfoLibpodParams

func NewSystemInfoLibpodParams() *SystemInfoLibpodParams

NewSystemInfoLibpodParams creates a new SystemInfoLibpodParams 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 NewSystemInfoLibpodParamsWithContext

func NewSystemInfoLibpodParamsWithContext(ctx context.Context) *SystemInfoLibpodParams

NewSystemInfoLibpodParamsWithContext creates a new SystemInfoLibpodParams object with the ability to set a context for a request.

func NewSystemInfoLibpodParamsWithHTTPClient

func NewSystemInfoLibpodParamsWithHTTPClient(client *http.Client) *SystemInfoLibpodParams

NewSystemInfoLibpodParamsWithHTTPClient creates a new SystemInfoLibpodParams object with the ability to set a custom HTTPClient for a request.

func NewSystemInfoLibpodParamsWithTimeout

func NewSystemInfoLibpodParamsWithTimeout(timeout time.Duration) *SystemInfoLibpodParams

NewSystemInfoLibpodParamsWithTimeout creates a new SystemInfoLibpodParams object with the ability to set a timeout on a request.

func (*SystemInfoLibpodParams) SetContext

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

SetContext adds the context to the system info libpod params

func (*SystemInfoLibpodParams) SetDefaults

func (o *SystemInfoLibpodParams) SetDefaults()

SetDefaults hydrates default values in the system info libpod params (not the query body).

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

func (*SystemInfoLibpodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system info libpod params

func (*SystemInfoLibpodParams) SetTimeout

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

SetTimeout adds the timeout to the system info libpod params

func (*SystemInfoLibpodParams) WithContext

WithContext adds the context to the system info libpod params

func (*SystemInfoLibpodParams) WithDefaults

WithDefaults hydrates default values in the system info libpod params (not the query body).

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

func (*SystemInfoLibpodParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system info libpod params

func (*SystemInfoLibpodParams) WithTimeout

WithTimeout adds the timeout to the system info libpod params

func (*SystemInfoLibpodParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SystemInfoLibpodReader

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

SystemInfoLibpodReader is a Reader for the SystemInfoLibpod structure.

func (*SystemInfoLibpodReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SystemPruneLibpodBadRequest

type SystemPruneLibpodBadRequest struct {
	Payload *SystemPruneLibpodBadRequestBody
}

SystemPruneLibpodBadRequest describes a response with status code 400, with default header values.

Bad parameter in request

func NewSystemPruneLibpodBadRequest

func NewSystemPruneLibpodBadRequest() *SystemPruneLibpodBadRequest

NewSystemPruneLibpodBadRequest creates a SystemPruneLibpodBadRequest with default headers values

func (*SystemPruneLibpodBadRequest) Error

func (*SystemPruneLibpodBadRequest) GetPayload

func (*SystemPruneLibpodBadRequest) IsClientError

func (o *SystemPruneLibpodBadRequest) IsClientError() bool

IsClientError returns true when this system prune libpod bad request response has a 4xx status code

func (*SystemPruneLibpodBadRequest) IsCode

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

IsCode returns true when this system prune libpod bad request response a status code equal to that given

func (*SystemPruneLibpodBadRequest) IsRedirect

func (o *SystemPruneLibpodBadRequest) IsRedirect() bool

IsRedirect returns true when this system prune libpod bad request response has a 3xx status code

func (*SystemPruneLibpodBadRequest) IsServerError

func (o *SystemPruneLibpodBadRequest) IsServerError() bool

IsServerError returns true when this system prune libpod bad request response has a 5xx status code

func (*SystemPruneLibpodBadRequest) IsSuccess

func (o *SystemPruneLibpodBadRequest) IsSuccess() bool

IsSuccess returns true when this system prune libpod bad request response has a 2xx status code

func (*SystemPruneLibpodBadRequest) String

func (o *SystemPruneLibpodBadRequest) String() string

type SystemPruneLibpodBadRequestBody

type SystemPruneLibpodBadRequestBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

SystemPruneLibpodBadRequestBody system prune libpod bad request body swagger:model SystemPruneLibpodBadRequestBody

func (*SystemPruneLibpodBadRequestBody) ContextValidate

func (o *SystemPruneLibpodBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this system prune libpod bad request body based on context it is used

func (*SystemPruneLibpodBadRequestBody) MarshalBinary

func (o *SystemPruneLibpodBadRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemPruneLibpodBadRequestBody) UnmarshalBinary

func (o *SystemPruneLibpodBadRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemPruneLibpodBadRequestBody) Validate

Validate validates this system prune libpod bad request body

type SystemPruneLibpodInternalServerError

type SystemPruneLibpodInternalServerError struct {
	Payload *SystemPruneLibpodInternalServerErrorBody
}

SystemPruneLibpodInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewSystemPruneLibpodInternalServerError

func NewSystemPruneLibpodInternalServerError() *SystemPruneLibpodInternalServerError

NewSystemPruneLibpodInternalServerError creates a SystemPruneLibpodInternalServerError with default headers values

func (*SystemPruneLibpodInternalServerError) Error

func (*SystemPruneLibpodInternalServerError) GetPayload

func (*SystemPruneLibpodInternalServerError) IsClientError

func (o *SystemPruneLibpodInternalServerError) IsClientError() bool

IsClientError returns true when this system prune libpod internal server error response has a 4xx status code

func (*SystemPruneLibpodInternalServerError) IsCode

IsCode returns true when this system prune libpod internal server error response a status code equal to that given

func (*SystemPruneLibpodInternalServerError) IsRedirect

IsRedirect returns true when this system prune libpod internal server error response has a 3xx status code

func (*SystemPruneLibpodInternalServerError) IsServerError

func (o *SystemPruneLibpodInternalServerError) IsServerError() bool

IsServerError returns true when this system prune libpod internal server error response has a 5xx status code

func (*SystemPruneLibpodInternalServerError) IsSuccess

IsSuccess returns true when this system prune libpod internal server error response has a 2xx status code

func (*SystemPruneLibpodInternalServerError) String

type SystemPruneLibpodInternalServerErrorBody

type SystemPruneLibpodInternalServerErrorBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// http response code
	ResponseCode int64 `json:"response,omitempty"`
}

SystemPruneLibpodInternalServerErrorBody system prune libpod internal server error body swagger:model SystemPruneLibpodInternalServerErrorBody

func (*SystemPruneLibpodInternalServerErrorBody) ContextValidate

ContextValidate validates this system prune libpod internal server error body based on context it is used

func (*SystemPruneLibpodInternalServerErrorBody) MarshalBinary

func (o *SystemPruneLibpodInternalServerErrorBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemPruneLibpodInternalServerErrorBody) UnmarshalBinary

func (o *SystemPruneLibpodInternalServerErrorBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemPruneLibpodInternalServerErrorBody) Validate

Validate validates this system prune libpod internal server error body

type SystemPruneLibpodOK

type SystemPruneLibpodOK struct {
	Payload *SystemPruneLibpodOKBody
}

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

Prune report

func NewSystemPruneLibpodOK

func NewSystemPruneLibpodOK() *SystemPruneLibpodOK

NewSystemPruneLibpodOK creates a SystemPruneLibpodOK with default headers values

func (*SystemPruneLibpodOK) Error

func (o *SystemPruneLibpodOK) Error() string

func (*SystemPruneLibpodOK) GetPayload

func (*SystemPruneLibpodOK) IsClientError

func (o *SystemPruneLibpodOK) IsClientError() bool

IsClientError returns true when this system prune libpod o k response has a 4xx status code

func (*SystemPruneLibpodOK) IsCode

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

IsCode returns true when this system prune libpod o k response a status code equal to that given

func (*SystemPruneLibpodOK) IsRedirect

func (o *SystemPruneLibpodOK) IsRedirect() bool

IsRedirect returns true when this system prune libpod o k response has a 3xx status code

func (*SystemPruneLibpodOK) IsServerError

func (o *SystemPruneLibpodOK) IsServerError() bool

IsServerError returns true when this system prune libpod o k response has a 5xx status code

func (*SystemPruneLibpodOK) IsSuccess

func (o *SystemPruneLibpodOK) IsSuccess() bool

IsSuccess returns true when this system prune libpod o k response has a 2xx status code

func (*SystemPruneLibpodOK) String

func (o *SystemPruneLibpodOK) String() string

type SystemPruneLibpodOKBody

type SystemPruneLibpodOKBody struct {

	// container prune reports
	ContainerPruneReports []*models.PruneReport `json:"ContainerPruneReports"`

	// image prune reports
	ImagePruneReports []*models.PruneReport `json:"ImagePruneReports"`

	// pod prune report
	PodPruneReport []*models.PodPruneReport `json:"PodPruneReport"`

	// reclaimed space
	ReclaimedSpace uint64 `json:"ReclaimedSpace,omitempty"`

	// volume prune reports
	VolumePruneReports []*models.PruneReport `json:"VolumePruneReports"`
}

SystemPruneLibpodOKBody system prune libpod o k body swagger:model SystemPruneLibpodOKBody

func (*SystemPruneLibpodOKBody) ContextValidate

func (o *SystemPruneLibpodOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this system prune libpod o k body based on the context it is used

func (*SystemPruneLibpodOKBody) MarshalBinary

func (o *SystemPruneLibpodOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemPruneLibpodOKBody) UnmarshalBinary

func (o *SystemPruneLibpodOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemPruneLibpodOKBody) Validate

func (o *SystemPruneLibpodOKBody) Validate(formats strfmt.Registry) error

Validate validates this system prune libpod o k body

type SystemPruneLibpodParams

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

SystemPruneLibpodParams contains all the parameters to send to the API endpoint

for the system prune libpod operation.

Typically these are written to a http.Request.

func NewSystemPruneLibpodParams

func NewSystemPruneLibpodParams() *SystemPruneLibpodParams

NewSystemPruneLibpodParams creates a new SystemPruneLibpodParams 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 NewSystemPruneLibpodParamsWithContext

func NewSystemPruneLibpodParamsWithContext(ctx context.Context) *SystemPruneLibpodParams

NewSystemPruneLibpodParamsWithContext creates a new SystemPruneLibpodParams object with the ability to set a context for a request.

func NewSystemPruneLibpodParamsWithHTTPClient

func NewSystemPruneLibpodParamsWithHTTPClient(client *http.Client) *SystemPruneLibpodParams

NewSystemPruneLibpodParamsWithHTTPClient creates a new SystemPruneLibpodParams object with the ability to set a custom HTTPClient for a request.

func NewSystemPruneLibpodParamsWithTimeout

func NewSystemPruneLibpodParamsWithTimeout(timeout time.Duration) *SystemPruneLibpodParams

NewSystemPruneLibpodParamsWithTimeout creates a new SystemPruneLibpodParams object with the ability to set a timeout on a request.

func (*SystemPruneLibpodParams) SetContext

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

SetContext adds the context to the system prune libpod params

func (*SystemPruneLibpodParams) SetDefaults

func (o *SystemPruneLibpodParams) SetDefaults()

SetDefaults hydrates default values in the system prune libpod params (not the query body).

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

func (*SystemPruneLibpodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system prune libpod params

func (*SystemPruneLibpodParams) SetTimeout

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

SetTimeout adds the timeout to the system prune libpod params

func (*SystemPruneLibpodParams) WithContext

WithContext adds the context to the system prune libpod params

func (*SystemPruneLibpodParams) WithDefaults

WithDefaults hydrates default values in the system prune libpod params (not the query body).

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

func (*SystemPruneLibpodParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system prune libpod params

func (*SystemPruneLibpodParams) WithTimeout

WithTimeout adds the timeout to the system prune libpod params

func (*SystemPruneLibpodParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SystemPruneLibpodReader

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

SystemPruneLibpodReader is a Reader for the SystemPruneLibpod structure.

func (*SystemPruneLibpodReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SystemVersionLibpodOK

type SystemVersionLibpodOK struct {
	Payload *SystemVersionLibpodOKBody
}

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

Version

func NewSystemVersionLibpodOK

func NewSystemVersionLibpodOK() *SystemVersionLibpodOK

NewSystemVersionLibpodOK creates a SystemVersionLibpodOK with default headers values

func (*SystemVersionLibpodOK) Error

func (o *SystemVersionLibpodOK) Error() string

func (*SystemVersionLibpodOK) GetPayload

func (*SystemVersionLibpodOK) IsClientError

func (o *SystemVersionLibpodOK) IsClientError() bool

IsClientError returns true when this system version libpod o k response has a 4xx status code

func (*SystemVersionLibpodOK) IsCode

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

IsCode returns true when this system version libpod o k response a status code equal to that given

func (*SystemVersionLibpodOK) IsRedirect

func (o *SystemVersionLibpodOK) IsRedirect() bool

IsRedirect returns true when this system version libpod o k response has a 3xx status code

func (*SystemVersionLibpodOK) IsServerError

func (o *SystemVersionLibpodOK) IsServerError() bool

IsServerError returns true when this system version libpod o k response has a 5xx status code

func (*SystemVersionLibpodOK) IsSuccess

func (o *SystemVersionLibpodOK) IsSuccess() bool

IsSuccess returns true when this system version libpod o k response has a 2xx status code

func (*SystemVersionLibpodOK) String

func (o *SystemVersionLibpodOK) String() string

type SystemVersionLibpodOKBody

type SystemVersionLibpodOKBody struct {

	// API version
	APIVersion string `json:"ApiVersion,omitempty"`

	// arch
	Arch string `json:"Arch,omitempty"`

	// build time
	BuildTime string `json:"BuildTime,omitempty"`

	// components
	Components []*models.ComponentVersion `json:"Components"`

	// experimental
	Experimental bool `json:"Experimental,omitempty"`

	// git commit
	GitCommit string `json:"GitCommit,omitempty"`

	// go version
	GoVersion string `json:"GoVersion,omitempty"`

	// kernel version
	KernelVersion string `json:"KernelVersion,omitempty"`

	// min API version
	MinAPIVersion string `json:"MinAPIVersion,omitempty"`

	// os
	Os string `json:"Os,omitempty"`

	// platform
	Platform interface{} `json:"Platform,omitempty"`

	// version
	Version string `json:"Version,omitempty"`
}

SystemVersionLibpodOKBody system version libpod o k body swagger:model SystemVersionLibpodOKBody

func (*SystemVersionLibpodOKBody) ContextValidate

func (o *SystemVersionLibpodOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this system version libpod o k body based on the context it is used

func (*SystemVersionLibpodOKBody) MarshalBinary

func (o *SystemVersionLibpodOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SystemVersionLibpodOKBody) UnmarshalBinary

func (o *SystemVersionLibpodOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SystemVersionLibpodOKBody) Validate

func (o *SystemVersionLibpodOKBody) Validate(formats strfmt.Registry) error

Validate validates this system version libpod o k body

type SystemVersionLibpodParams

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

SystemVersionLibpodParams contains all the parameters to send to the API endpoint

for the system version libpod operation.

Typically these are written to a http.Request.

func NewSystemVersionLibpodParams

func NewSystemVersionLibpodParams() *SystemVersionLibpodParams

NewSystemVersionLibpodParams creates a new SystemVersionLibpodParams 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 NewSystemVersionLibpodParamsWithContext

func NewSystemVersionLibpodParamsWithContext(ctx context.Context) *SystemVersionLibpodParams

NewSystemVersionLibpodParamsWithContext creates a new SystemVersionLibpodParams object with the ability to set a context for a request.

func NewSystemVersionLibpodParamsWithHTTPClient

func NewSystemVersionLibpodParamsWithHTTPClient(client *http.Client) *SystemVersionLibpodParams

NewSystemVersionLibpodParamsWithHTTPClient creates a new SystemVersionLibpodParams object with the ability to set a custom HTTPClient for a request.

func NewSystemVersionLibpodParamsWithTimeout

func NewSystemVersionLibpodParamsWithTimeout(timeout time.Duration) *SystemVersionLibpodParams

NewSystemVersionLibpodParamsWithTimeout creates a new SystemVersionLibpodParams object with the ability to set a timeout on a request.

func (*SystemVersionLibpodParams) SetContext

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

SetContext adds the context to the system version libpod params

func (*SystemVersionLibpodParams) SetDefaults

func (o *SystemVersionLibpodParams) SetDefaults()

SetDefaults hydrates default values in the system version libpod params (not the query body).

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

func (*SystemVersionLibpodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system version libpod params

func (*SystemVersionLibpodParams) SetTimeout

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

SetTimeout adds the timeout to the system version libpod params

func (*SystemVersionLibpodParams) WithContext

WithContext adds the context to the system version libpod params

func (*SystemVersionLibpodParams) WithDefaults

WithDefaults hydrates default values in the system version libpod params (not the query body).

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

func (*SystemVersionLibpodParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system version libpod params

func (*SystemVersionLibpodParams) WithTimeout

WithTimeout adds the timeout to the system version libpod params

func (*SystemVersionLibpodParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SystemVersionLibpodReader

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

SystemVersionLibpodReader is a Reader for the SystemVersionLibpod structure.

func (*SystemVersionLibpodReader) ReadResponse

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