system_compat

package
v0.0.0-...-fe9a356 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptTextPlain

func WithAcceptTextPlain(r *runtime.ClientOperation)

WithAcceptTextPlain sets the Accept header to "text/plain".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationxTar

func WithContentTypeApplicationxTar(r *runtime.ClientOperation)

WithContentTypeApplicationxTar sets the Content-Type header to "application/x-tar".

Types

type Client

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

Client for system compat API.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SystemAuth

func (a *Client) SystemAuth(params *SystemAuthParams, opts ...ClientOption) (*SystemAuthOK, error)

SystemAuth checks auth configuration.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SystemAuthContext instead.

func (*Client) SystemAuthContext

func (a *Client) SystemAuthContext(ctx context.Context, params *SystemAuthParams, opts ...ClientOption) (*SystemAuthOK, error)

SystemAuthContext checks auth configuration.

Do not use the deprecated [SystemAuthParams.Context] with this method: it would be ignored.

func (*Client) SystemDataUsage

func (a *Client) SystemDataUsage(params *SystemDataUsageParams, opts ...ClientOption) (*SystemDataUsageOK, error)

SystemDataUsage shows disk usage.

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

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SystemDataUsageContext instead.

func (*Client) SystemDataUsageContext

func (a *Client) SystemDataUsageContext(ctx context.Context, params *SystemDataUsageParams, opts ...ClientOption) (*SystemDataUsageOK, error)

SystemDataUsageContext shows disk usage.

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

Do not use the deprecated [SystemDataUsageParams.Context] with this method: it would be ignored.

func (*Client) SystemEvents

func (a *Client) SystemEvents(params *SystemEventsParams, opts ...ClientOption) (*SystemEventsOK, error)

SystemEvents gets events.

Returns events filtered on query parameters.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SystemEventsContext instead.

func (*Client) SystemEventsContext

func (a *Client) SystemEventsContext(ctx context.Context, params *SystemEventsParams, opts ...ClientOption) (*SystemEventsOK, error)

SystemEventsContext gets events.

Returns events filtered on query parameters.

Do not use the deprecated [SystemEventsParams.Context] with this method: it would be ignored.

func (*Client) SystemInfo

func (a *Client) SystemInfo(params *SystemInfoParams, opts ...ClientOption) (*SystemInfoOK, error)

SystemInfo gets info.

Returns information on the system and libpod configuration.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SystemInfoContext instead.

func (*Client) SystemInfoContext

func (a *Client) SystemInfoContext(ctx context.Context, params *SystemInfoParams, opts ...ClientOption) (*SystemInfoOK, error)

SystemInfoContext gets info.

Returns information on the system and libpod configuration.

Do not use the deprecated [SystemInfoParams.Context] with this method: it would be ignored.

func (*Client) SystemPing

func (a *Client) SystemPing(params *SystemPingParams, opts ...ClientOption) (*SystemPingOK, error)

SystemPing pings service.

Return protocol information in response headers. `HEAD /libpod/_ping` is also supported. `/_ping` is available for compatibility with other engines. The '_ping' endpoints are not versioned. .

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SystemPingContext instead.

func (*Client) SystemPingContext

func (a *Client) SystemPingContext(ctx context.Context, params *SystemPingParams, opts ...ClientOption) (*SystemPingOK, error)

SystemPingContext pings service.

Return protocol information in response headers. `HEAD /libpod/_ping` is also supported. `/_ping` is available for compatibility with other engines. The '_ping' endpoints are not versioned. .

Do not use the deprecated [SystemPingParams.Context] with this method: it would be ignored.

func (*Client) SystemVersion

func (a *Client) SystemVersion(params *SystemVersionParams, opts ...ClientOption) (*SystemVersionOK, error)

SystemVersion components version information.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SystemVersionContext instead.

func (*Client) SystemVersionContext

func (a *Client) SystemVersionContext(ctx context.Context, params *SystemVersionParams, opts ...ClientOption) (*SystemVersionOK, error)

SystemVersionContext components version information.

Do not use the deprecated [SystemVersionParams.Context] with this method: it would be ignored.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {

	// SystemAuth check auth configuration.
	SystemAuth(params *SystemAuthParams, opts ...ClientOption) (*SystemAuthOK, error)

	// SystemAuthContext check auth configuration.
	SystemAuthContext(ctx context.Context, params *SystemAuthParams, opts ...ClientOption) (*SystemAuthOK, error)

	// SystemDataUsage show disk usage.
	SystemDataUsage(params *SystemDataUsageParams, opts ...ClientOption) (*SystemDataUsageOK, error)

	// SystemDataUsageContext show disk usage.
	SystemDataUsageContext(ctx context.Context, params *SystemDataUsageParams, opts ...ClientOption) (*SystemDataUsageOK, error)

	// SystemEvents get events.
	SystemEvents(params *SystemEventsParams, opts ...ClientOption) (*SystemEventsOK, error)

	// SystemEventsContext get events.
	SystemEventsContext(ctx context.Context, params *SystemEventsParams, opts ...ClientOption) (*SystemEventsOK, error)

	// SystemInfo get info.
	SystemInfo(params *SystemInfoParams, opts ...ClientOption) (*SystemInfoOK, error)

	// SystemInfoContext get info.
	SystemInfoContext(ctx context.Context, params *SystemInfoParams, opts ...ClientOption) (*SystemInfoOK, error)

	// SystemPing ping service.
	SystemPing(params *SystemPingParams, opts ...ClientOption) (*SystemPingOK, error)

	// SystemPingContext ping service.
	SystemPingContext(ctx context.Context, params *SystemPingParams, opts ...ClientOption) (*SystemPingOK, error)

	// SystemVersion component version information.
	SystemVersion(params *SystemVersionParams, opts ...ClientOption) (*SystemVersionOK, error)

	// SystemVersionContext component version information.
	SystemVersionContext(ctx context.Context, params *SystemVersionParams, opts ...ClientOption) (*SystemVersionOK, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new system compat API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new system compat API client with basic auth credentials.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new system compat API client with a bearer token for authentication.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type SystemAuthInternalServerError

type SystemAuthInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewSystemAuthInternalServerError

func NewSystemAuthInternalServerError() *SystemAuthInternalServerError

NewSystemAuthInternalServerError creates a SystemAuthInternalServerError with default headers values

func (*SystemAuthInternalServerError) Code

Code gets the status code for the system auth internal server error response

func (*SystemAuthInternalServerError) Error

func (*SystemAuthInternalServerError) GetPayload

func (*SystemAuthInternalServerError) IsClientError

func (o *SystemAuthInternalServerError) IsClientError() bool

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

func (*SystemAuthInternalServerError) IsCode

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

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

func (*SystemAuthInternalServerError) IsRedirect

func (o *SystemAuthInternalServerError) IsRedirect() bool

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

func (*SystemAuthInternalServerError) IsServerError

func (o *SystemAuthInternalServerError) IsServerError() bool

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

func (*SystemAuthInternalServerError) IsSuccess

func (o *SystemAuthInternalServerError) IsSuccess() bool

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

func (*SystemAuthInternalServerError) String

type SystemAuthOK

type SystemAuthOK struct {
	Payload *models.AuthReport
}

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

Auth response

func NewSystemAuthOK

func NewSystemAuthOK() *SystemAuthOK

NewSystemAuthOK creates a SystemAuthOK with default headers values

func (*SystemAuthOK) Code

func (o *SystemAuthOK) Code() int

Code gets the status code for the system auth o k response

func (*SystemAuthOK) Error

func (o *SystemAuthOK) Error() string

func (*SystemAuthOK) GetPayload

func (o *SystemAuthOK) GetPayload() *models.AuthReport

func (*SystemAuthOK) IsClientError

func (o *SystemAuthOK) IsClientError() bool

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

func (*SystemAuthOK) IsCode

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

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

func (*SystemAuthOK) IsRedirect

func (o *SystemAuthOK) IsRedirect() bool

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

func (*SystemAuthOK) IsServerError

func (o *SystemAuthOK) IsServerError() bool

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

func (*SystemAuthOK) IsSuccess

func (o *SystemAuthOK) IsSuccess() bool

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

func (*SystemAuthOK) String

func (o *SystemAuthOK) String() string

type SystemAuthParams

type SystemAuthParams struct {

	// AuthConfig.
	//
	// Authentication to check
	AuthConfig *models.AuthConfig

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

SystemAuthParams contains all the parameters to send to the API endpoint

for the system auth operation.

Typically these are written to a http.Request.

func NewSystemAuthParams

func NewSystemAuthParams() *SystemAuthParams

NewSystemAuthParams creates a new SystemAuthParams 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 NewSystemAuthParamsWithContext deprecated

func NewSystemAuthParamsWithContext(ctx context.Context) *SystemAuthParams

NewSystemAuthParamsWithContext creates a new SystemAuthParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SystemAuthParams.

func NewSystemAuthParamsWithHTTPClient

func NewSystemAuthParamsWithHTTPClient(client *http.Client) *SystemAuthParams

NewSystemAuthParamsWithHTTPClient creates a new SystemAuthParams object with the ability to set a custom HTTPClient for a request.

func NewSystemAuthParamsWithTimeout

func NewSystemAuthParamsWithTimeout(timeout time.Duration) *SystemAuthParams

NewSystemAuthParamsWithTimeout creates a new SystemAuthParams object with the ability to set a timeout on a request.

func (*SystemAuthParams) SetAuthConfig

func (o *SystemAuthParams) SetAuthConfig(authConfig *models.AuthConfig)

SetAuthConfig adds the authConfig to the system auth params.

func (*SystemAuthParams) SetContext deprecated

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

SetContext adds the context to the system auth params.

Deprecated: use the operation call with context to pass the context instead of SystemAuthParams.

func (*SystemAuthParams) SetDefaults

func (o *SystemAuthParams) SetDefaults()

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

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

func (*SystemAuthParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system auth params.

func (*SystemAuthParams) SetTimeout

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

SetTimeout adds the timeout to the system auth params.

func (*SystemAuthParams) WithAuthConfig

func (o *SystemAuthParams) WithAuthConfig(authConfig *models.AuthConfig) *SystemAuthParams

WithAuthConfig adds the authConfig to the system auth params.

func (*SystemAuthParams) WithContext deprecated

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

WithContext adds the context to the system auth params.

Deprecated: use the operation call with context to pass the context instead of SystemAuthParams.

func (*SystemAuthParams) WithDefaults

func (o *SystemAuthParams) WithDefaults() *SystemAuthParams

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

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

func (*SystemAuthParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system auth params.

func (*SystemAuthParams) WithTimeout

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

WithTimeout adds the timeout to the system auth params.

func (*SystemAuthParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SystemAuthReader

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

SystemAuthReader is a Reader for the SystemAuth structure.

func (*SystemAuthReader) ReadResponse

func (o *SystemAuthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type SystemDataUsageInternalServerError

type SystemDataUsageInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewSystemDataUsageInternalServerError

func NewSystemDataUsageInternalServerError() *SystemDataUsageInternalServerError

NewSystemDataUsageInternalServerError creates a SystemDataUsageInternalServerError with default headers values

func (*SystemDataUsageInternalServerError) Code

Code gets the status code for the system data usage internal server error response

func (*SystemDataUsageInternalServerError) Error

func (*SystemDataUsageInternalServerError) GetPayload

func (*SystemDataUsageInternalServerError) IsClientError

func (o *SystemDataUsageInternalServerError) IsClientError() bool

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

func (*SystemDataUsageInternalServerError) IsCode

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

func (*SystemDataUsageInternalServerError) IsRedirect

func (o *SystemDataUsageInternalServerError) IsRedirect() bool

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

func (*SystemDataUsageInternalServerError) IsServerError

func (o *SystemDataUsageInternalServerError) IsServerError() bool

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

func (*SystemDataUsageInternalServerError) IsSuccess

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

func (*SystemDataUsageInternalServerError) String

type SystemDataUsageOK

type SystemDataUsageOK struct {
	Payload *models.SystemDfReport
}

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

Disk usage

func NewSystemDataUsageOK

func NewSystemDataUsageOK() *SystemDataUsageOK

NewSystemDataUsageOK creates a SystemDataUsageOK with default headers values

func (*SystemDataUsageOK) Code

func (o *SystemDataUsageOK) Code() int

Code gets the status code for the system data usage o k response

func (*SystemDataUsageOK) Error

func (o *SystemDataUsageOK) Error() string

func (*SystemDataUsageOK) GetPayload

func (o *SystemDataUsageOK) GetPayload() *models.SystemDfReport

func (*SystemDataUsageOK) IsClientError

func (o *SystemDataUsageOK) IsClientError() bool

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

func (*SystemDataUsageOK) IsCode

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

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

func (*SystemDataUsageOK) IsRedirect

func (o *SystemDataUsageOK) IsRedirect() bool

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

func (*SystemDataUsageOK) IsServerError

func (o *SystemDataUsageOK) IsServerError() bool

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

func (*SystemDataUsageOK) IsSuccess

func (o *SystemDataUsageOK) IsSuccess() bool

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

func (*SystemDataUsageOK) String

func (o *SystemDataUsageOK) String() string

type SystemDataUsageParams

type SystemDataUsageParams struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SystemDataUsageParams contains all the parameters to send to the API endpoint

for the system data usage operation.

Typically these are written to a http.Request.

func NewSystemDataUsageParams

func NewSystemDataUsageParams() *SystemDataUsageParams

NewSystemDataUsageParams creates a new SystemDataUsageParams 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 NewSystemDataUsageParamsWithContext deprecated

func NewSystemDataUsageParamsWithContext(ctx context.Context) *SystemDataUsageParams

NewSystemDataUsageParamsWithContext creates a new SystemDataUsageParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SystemDataUsageParams.

func NewSystemDataUsageParamsWithHTTPClient

func NewSystemDataUsageParamsWithHTTPClient(client *http.Client) *SystemDataUsageParams

NewSystemDataUsageParamsWithHTTPClient creates a new SystemDataUsageParams object with the ability to set a custom HTTPClient for a request.

func NewSystemDataUsageParamsWithTimeout

func NewSystemDataUsageParamsWithTimeout(timeout time.Duration) *SystemDataUsageParams

NewSystemDataUsageParamsWithTimeout creates a new SystemDataUsageParams object with the ability to set a timeout on a request.

func (*SystemDataUsageParams) SetContext deprecated

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

SetContext adds the context to the system data usage params.

Deprecated: use the operation call with context to pass the context instead of SystemDataUsageParams.

func (*SystemDataUsageParams) SetDefaults

func (o *SystemDataUsageParams) SetDefaults()

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

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

func (*SystemDataUsageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system data usage params.

func (*SystemDataUsageParams) SetTimeout

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

SetTimeout adds the timeout to the system data usage params.

func (*SystemDataUsageParams) WithContext deprecated

WithContext adds the context to the system data usage params.

Deprecated: use the operation call with context to pass the context instead of SystemDataUsageParams.

func (*SystemDataUsageParams) WithDefaults

func (o *SystemDataUsageParams) WithDefaults() *SystemDataUsageParams

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

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

func (*SystemDataUsageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system data usage params.

func (*SystemDataUsageParams) WithTimeout

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

WithTimeout adds the timeout to the system data usage params.

func (*SystemDataUsageParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SystemDataUsageReader

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

SystemDataUsageReader is a Reader for the SystemDataUsage structure.

func (*SystemDataUsageReader) ReadResponse

func (o *SystemDataUsageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type SystemEventsInternalServerError

type SystemEventsInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewSystemEventsInternalServerError

func NewSystemEventsInternalServerError() *SystemEventsInternalServerError

NewSystemEventsInternalServerError creates a SystemEventsInternalServerError with default headers values

func (*SystemEventsInternalServerError) Code

Code gets the status code for the system events internal server error response

func (*SystemEventsInternalServerError) Error

func (*SystemEventsInternalServerError) GetPayload

func (*SystemEventsInternalServerError) IsClientError

func (o *SystemEventsInternalServerError) IsClientError() bool

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

func (*SystemEventsInternalServerError) IsCode

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

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

func (*SystemEventsInternalServerError) IsRedirect

func (o *SystemEventsInternalServerError) IsRedirect() bool

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

func (*SystemEventsInternalServerError) IsServerError

func (o *SystemEventsInternalServerError) IsServerError() bool

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

func (*SystemEventsInternalServerError) IsSuccess

func (o *SystemEventsInternalServerError) IsSuccess() bool

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

func (*SystemEventsInternalServerError) String

type SystemEventsOK

type SystemEventsOK struct {
}

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

returns a string of json data describing an event

func NewSystemEventsOK

func NewSystemEventsOK() *SystemEventsOK

NewSystemEventsOK creates a SystemEventsOK with default headers values

func (*SystemEventsOK) Code

func (o *SystemEventsOK) Code() int

Code gets the status code for the system events o k response

func (*SystemEventsOK) Error

func (o *SystemEventsOK) Error() string

func (*SystemEventsOK) IsClientError

func (o *SystemEventsOK) IsClientError() bool

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

func (*SystemEventsOK) IsCode

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

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

func (*SystemEventsOK) IsRedirect

func (o *SystemEventsOK) IsRedirect() bool

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

func (*SystemEventsOK) IsServerError

func (o *SystemEventsOK) IsServerError() bool

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

func (*SystemEventsOK) IsSuccess

func (o *SystemEventsOK) IsSuccess() bool

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

func (*SystemEventsOK) String

func (o *SystemEventsOK) String() string

type SystemEventsParams

type SystemEventsParams struct {

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

	// Since.
	//
	// start streaming events from this time
	Since *string

	// Until.
	//
	// stop streaming events later than this
	Until *string

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

SystemEventsParams contains all the parameters to send to the API endpoint

for the system events operation.

Typically these are written to a http.Request.

func NewSystemEventsParams

func NewSystemEventsParams() *SystemEventsParams

NewSystemEventsParams creates a new SystemEventsParams 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 NewSystemEventsParamsWithContext deprecated

func NewSystemEventsParamsWithContext(ctx context.Context) *SystemEventsParams

NewSystemEventsParamsWithContext creates a new SystemEventsParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SystemEventsParams.

func NewSystemEventsParamsWithHTTPClient

func NewSystemEventsParamsWithHTTPClient(client *http.Client) *SystemEventsParams

NewSystemEventsParamsWithHTTPClient creates a new SystemEventsParams object with the ability to set a custom HTTPClient for a request.

func NewSystemEventsParamsWithTimeout

func NewSystemEventsParamsWithTimeout(timeout time.Duration) *SystemEventsParams

NewSystemEventsParamsWithTimeout creates a new SystemEventsParams object with the ability to set a timeout on a request.

func (*SystemEventsParams) SetContext deprecated

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

SetContext adds the context to the system events params.

Deprecated: use the operation call with context to pass the context instead of SystemEventsParams.

func (*SystemEventsParams) SetDefaults

func (o *SystemEventsParams) SetDefaults()

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

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

func (*SystemEventsParams) SetFilters

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

SetFilters adds the filters to the system events params.

func (*SystemEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system events params.

func (*SystemEventsParams) SetSince

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

SetSince adds the since to the system events params.

func (*SystemEventsParams) SetTimeout

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

SetTimeout adds the timeout to the system events params.

func (*SystemEventsParams) SetUntil

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

SetUntil adds the until to the system events params.

func (*SystemEventsParams) WithContext deprecated

WithContext adds the context to the system events params.

Deprecated: use the operation call with context to pass the context instead of SystemEventsParams.

func (*SystemEventsParams) WithDefaults

func (o *SystemEventsParams) WithDefaults() *SystemEventsParams

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

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

func (*SystemEventsParams) WithFilters

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

WithFilters adds the filters to the system events params.

func (*SystemEventsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system events params.

func (*SystemEventsParams) WithSince

func (o *SystemEventsParams) WithSince(since *string) *SystemEventsParams

WithSince adds the since to the system events params.

func (*SystemEventsParams) WithTimeout

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

WithTimeout adds the timeout to the system events params.

func (*SystemEventsParams) WithUntil

func (o *SystemEventsParams) WithUntil(until *string) *SystemEventsParams

WithUntil adds the until to the system events params.

func (*SystemEventsParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SystemEventsReader

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

SystemEventsReader is a Reader for the SystemEvents structure.

func (*SystemEventsReader) ReadResponse

func (o *SystemEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type SystemInfoInternalServerError

type SystemInfoInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewSystemInfoInternalServerError

func NewSystemInfoInternalServerError() *SystemInfoInternalServerError

NewSystemInfoInternalServerError creates a SystemInfoInternalServerError with default headers values

func (*SystemInfoInternalServerError) Code

Code gets the status code for the system info internal server error response

func (*SystemInfoInternalServerError) Error

func (*SystemInfoInternalServerError) GetPayload

func (*SystemInfoInternalServerError) IsClientError

func (o *SystemInfoInternalServerError) IsClientError() bool

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

func (*SystemInfoInternalServerError) IsCode

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

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

func (*SystemInfoInternalServerError) IsRedirect

func (o *SystemInfoInternalServerError) IsRedirect() bool

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

func (*SystemInfoInternalServerError) IsServerError

func (o *SystemInfoInternalServerError) IsServerError() bool

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

func (*SystemInfoInternalServerError) IsSuccess

func (o *SystemInfoInternalServerError) IsSuccess() bool

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

func (*SystemInfoInternalServerError) String

type SystemInfoOK

type SystemInfoOK struct {
}

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

to be determined

func NewSystemInfoOK

func NewSystemInfoOK() *SystemInfoOK

NewSystemInfoOK creates a SystemInfoOK with default headers values

func (*SystemInfoOK) Code

func (o *SystemInfoOK) Code() int

Code gets the status code for the system info o k response

func (*SystemInfoOK) Error

func (o *SystemInfoOK) Error() string

func (*SystemInfoOK) IsClientError

func (o *SystemInfoOK) IsClientError() bool

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

func (*SystemInfoOK) IsCode

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

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

func (*SystemInfoOK) IsRedirect

func (o *SystemInfoOK) IsRedirect() bool

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

func (*SystemInfoOK) IsServerError

func (o *SystemInfoOK) IsServerError() bool

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

func (*SystemInfoOK) IsSuccess

func (o *SystemInfoOK) IsSuccess() bool

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

func (*SystemInfoOK) String

func (o *SystemInfoOK) String() string

type SystemInfoParams

type SystemInfoParams struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SystemInfoParams contains all the parameters to send to the API endpoint

for the system info operation.

Typically these are written to a http.Request.

func NewSystemInfoParams

func NewSystemInfoParams() *SystemInfoParams

NewSystemInfoParams creates a new SystemInfoParams 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 NewSystemInfoParamsWithContext deprecated

func NewSystemInfoParamsWithContext(ctx context.Context) *SystemInfoParams

NewSystemInfoParamsWithContext creates a new SystemInfoParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SystemInfoParams.

func NewSystemInfoParamsWithHTTPClient

func NewSystemInfoParamsWithHTTPClient(client *http.Client) *SystemInfoParams

NewSystemInfoParamsWithHTTPClient creates a new SystemInfoParams object with the ability to set a custom HTTPClient for a request.

func NewSystemInfoParamsWithTimeout

func NewSystemInfoParamsWithTimeout(timeout time.Duration) *SystemInfoParams

NewSystemInfoParamsWithTimeout creates a new SystemInfoParams object with the ability to set a timeout on a request.

func (*SystemInfoParams) SetContext deprecated

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

SetContext adds the context to the system info params.

Deprecated: use the operation call with context to pass the context instead of SystemInfoParams.

func (*SystemInfoParams) SetDefaults

func (o *SystemInfoParams) SetDefaults()

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

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

func (*SystemInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system info params.

func (*SystemInfoParams) SetTimeout

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

SetTimeout adds the timeout to the system info params.

func (*SystemInfoParams) WithContext deprecated

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

WithContext adds the context to the system info params.

Deprecated: use the operation call with context to pass the context instead of SystemInfoParams.

func (*SystemInfoParams) WithDefaults

func (o *SystemInfoParams) WithDefaults() *SystemInfoParams

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

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

func (*SystemInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system info params.

func (*SystemInfoParams) WithTimeout

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

WithTimeout adds the timeout to the system info params.

func (*SystemInfoParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SystemInfoReader

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

SystemInfoReader is a Reader for the SystemInfo structure.

func (*SystemInfoReader) ReadResponse

func (o *SystemInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type SystemPingInternalServerError

type SystemPingInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewSystemPingInternalServerError

func NewSystemPingInternalServerError() *SystemPingInternalServerError

NewSystemPingInternalServerError creates a SystemPingInternalServerError with default headers values

func (*SystemPingInternalServerError) Code

Code gets the status code for the system ping internal server error response

func (*SystemPingInternalServerError) Error

func (*SystemPingInternalServerError) GetPayload

func (*SystemPingInternalServerError) IsClientError

func (o *SystemPingInternalServerError) IsClientError() bool

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

func (*SystemPingInternalServerError) IsCode

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

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

func (*SystemPingInternalServerError) IsRedirect

func (o *SystemPingInternalServerError) IsRedirect() bool

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

func (*SystemPingInternalServerError) IsServerError

func (o *SystemPingInternalServerError) IsServerError() bool

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

func (*SystemPingInternalServerError) IsSuccess

func (o *SystemPingInternalServerError) IsSuccess() bool

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

func (*SystemPingInternalServerError) String

type SystemPingOK

type SystemPingOK struct {

	// Max compatibility API Version the server supports
	APIVersion string

	// Default version of docker image builder
	BuildKitVersion string

	// always no-cache
	CacheControl string

	// If the server is running with experimental mode enabled, always true
	DockerExperimental bool

	// Max Podman API Version the server supports.
	// Available if service is backed by Podman, therefore may be used to
	// determine if talking to Podman engine or another engine
	//
	LibpodAPIVersion string

	// Default version of libpod image builder.
	//   Available if service is backed by Podman, therefore may be used to
	//   determine if talking to Podman engine or another engine
	//
	LibpodBuildahVersion string

	// always no-cache
	Pragma string

	Payload string
}

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

Success

func NewSystemPingOK

func NewSystemPingOK() *SystemPingOK

NewSystemPingOK creates a SystemPingOK with default headers values

func (*SystemPingOK) Code

func (o *SystemPingOK) Code() int

Code gets the status code for the system ping o k response

func (*SystemPingOK) Error

func (o *SystemPingOK) Error() string

func (*SystemPingOK) GetPayload

func (o *SystemPingOK) GetPayload() string

func (*SystemPingOK) IsClientError

func (o *SystemPingOK) IsClientError() bool

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

func (*SystemPingOK) IsCode

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

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

func (*SystemPingOK) IsRedirect

func (o *SystemPingOK) IsRedirect() bool

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

func (*SystemPingOK) IsServerError

func (o *SystemPingOK) IsServerError() bool

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

func (*SystemPingOK) IsSuccess

func (o *SystemPingOK) IsSuccess() bool

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

func (*SystemPingOK) String

func (o *SystemPingOK) String() string

type SystemPingParams

type SystemPingParams struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SystemPingParams contains all the parameters to send to the API endpoint

for the system ping operation.

Typically these are written to a http.Request.

func NewSystemPingParams

func NewSystemPingParams() *SystemPingParams

NewSystemPingParams creates a new SystemPingParams 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 NewSystemPingParamsWithContext deprecated

func NewSystemPingParamsWithContext(ctx context.Context) *SystemPingParams

NewSystemPingParamsWithContext creates a new SystemPingParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SystemPingParams.

func NewSystemPingParamsWithHTTPClient

func NewSystemPingParamsWithHTTPClient(client *http.Client) *SystemPingParams

NewSystemPingParamsWithHTTPClient creates a new SystemPingParams object with the ability to set a custom HTTPClient for a request.

func NewSystemPingParamsWithTimeout

func NewSystemPingParamsWithTimeout(timeout time.Duration) *SystemPingParams

NewSystemPingParamsWithTimeout creates a new SystemPingParams object with the ability to set a timeout on a request.

func (*SystemPingParams) SetContext deprecated

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

SetContext adds the context to the system ping params.

Deprecated: use the operation call with context to pass the context instead of SystemPingParams.

func (*SystemPingParams) SetDefaults

func (o *SystemPingParams) SetDefaults()

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

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

func (*SystemPingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system ping params.

func (*SystemPingParams) SetTimeout

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

SetTimeout adds the timeout to the system ping params.

func (*SystemPingParams) WithContext deprecated

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

WithContext adds the context to the system ping params.

Deprecated: use the operation call with context to pass the context instead of SystemPingParams.

func (*SystemPingParams) WithDefaults

func (o *SystemPingParams) WithDefaults() *SystemPingParams

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

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

func (*SystemPingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system ping params.

func (*SystemPingParams) WithTimeout

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

WithTimeout adds the timeout to the system ping params.

func (*SystemPingParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SystemPingReader

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

SystemPingReader is a Reader for the SystemPing structure.

func (*SystemPingReader) ReadResponse

func (o *SystemPingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type SystemVersionOK

type SystemVersionOK struct {
	Payload *models.SystemComponentVersion
}

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

Version

func NewSystemVersionOK

func NewSystemVersionOK() *SystemVersionOK

NewSystemVersionOK creates a SystemVersionOK with default headers values

func (*SystemVersionOK) Code

func (o *SystemVersionOK) Code() int

Code gets the status code for the system version o k response

func (*SystemVersionOK) Error

func (o *SystemVersionOK) Error() string

func (*SystemVersionOK) GetPayload

func (*SystemVersionOK) IsClientError

func (o *SystemVersionOK) IsClientError() bool

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

func (*SystemVersionOK) IsCode

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

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

func (*SystemVersionOK) IsRedirect

func (o *SystemVersionOK) IsRedirect() bool

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

func (*SystemVersionOK) IsServerError

func (o *SystemVersionOK) IsServerError() bool

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

func (*SystemVersionOK) IsSuccess

func (o *SystemVersionOK) IsSuccess() bool

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

func (*SystemVersionOK) String

func (o *SystemVersionOK) String() string

type SystemVersionParams

type SystemVersionParams struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SystemVersionParams contains all the parameters to send to the API endpoint

for the system version operation.

Typically these are written to a http.Request.

func NewSystemVersionParams

func NewSystemVersionParams() *SystemVersionParams

NewSystemVersionParams creates a new SystemVersionParams 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 NewSystemVersionParamsWithContext deprecated

func NewSystemVersionParamsWithContext(ctx context.Context) *SystemVersionParams

NewSystemVersionParamsWithContext creates a new SystemVersionParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SystemVersionParams.

func NewSystemVersionParamsWithHTTPClient

func NewSystemVersionParamsWithHTTPClient(client *http.Client) *SystemVersionParams

NewSystemVersionParamsWithHTTPClient creates a new SystemVersionParams object with the ability to set a custom HTTPClient for a request.

func NewSystemVersionParamsWithTimeout

func NewSystemVersionParamsWithTimeout(timeout time.Duration) *SystemVersionParams

NewSystemVersionParamsWithTimeout creates a new SystemVersionParams object with the ability to set a timeout on a request.

func (*SystemVersionParams) SetContext deprecated

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

SetContext adds the context to the system version params.

Deprecated: use the operation call with context to pass the context instead of SystemVersionParams.

func (*SystemVersionParams) SetDefaults

func (o *SystemVersionParams) SetDefaults()

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

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

func (*SystemVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the system version params.

func (*SystemVersionParams) SetTimeout

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

SetTimeout adds the timeout to the system version params.

func (*SystemVersionParams) WithContext deprecated

WithContext adds the context to the system version params.

Deprecated: use the operation call with context to pass the context instead of SystemVersionParams.

func (*SystemVersionParams) WithDefaults

func (o *SystemVersionParams) WithDefaults() *SystemVersionParams

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

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

func (*SystemVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the system version params.

func (*SystemVersionParams) WithTimeout

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

WithTimeout adds the timeout to the system version params.

func (*SystemVersionParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SystemVersionReader

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

SystemVersionReader is a Reader for the SystemVersion structure.

func (*SystemVersionReader) ReadResponse

func (o *SystemVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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
⌂ 换网址