client

package
v1.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCancelImageBuildRequest

func NewCancelImageBuildRequest(server string, name string) (*http.Request, error)

NewCancelImageBuildRequest generates requests for CancelImageBuild

func NewCancelImageExportRequest

func NewCancelImageExportRequest(server string, name string) (*http.Request, error)

NewCancelImageExportRequest generates requests for CancelImageExport

func NewCreateImageBuildRequest

func NewCreateImageBuildRequest(server string, body CreateImageBuildJSONRequestBody) (*http.Request, error)

NewCreateImageBuildRequest calls the generic CreateImageBuild builder with application/json body

func NewCreateImageBuildRequestWithBody

func NewCreateImageBuildRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateImageBuildRequestWithBody generates requests for CreateImageBuild with any type of body

func NewCreateImageExportRequest

func NewCreateImageExportRequest(server string, body CreateImageExportJSONRequestBody) (*http.Request, error)

NewCreateImageExportRequest calls the generic CreateImageExport builder with application/json body

func NewCreateImageExportRequestWithBody

func NewCreateImageExportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateImageExportRequestWithBody generates requests for CreateImageExport with any type of body

func NewDeleteImageBuildRequest

func NewDeleteImageBuildRequest(server string, name string) (*http.Request, error)

NewDeleteImageBuildRequest generates requests for DeleteImageBuild

func NewDeleteImageExportRequest

func NewDeleteImageExportRequest(server string, name string) (*http.Request, error)

NewDeleteImageExportRequest generates requests for DeleteImageExport

func NewDownloadImageExportRequest

func NewDownloadImageExportRequest(server string, name string) (*http.Request, error)

NewDownloadImageExportRequest generates requests for DownloadImageExport

func NewGetImageBuildLogRequest

func NewGetImageBuildLogRequest(server string, name string, params *GetImageBuildLogParams) (*http.Request, error)

NewGetImageBuildLogRequest generates requests for GetImageBuildLog

func NewGetImageBuildRequest

func NewGetImageBuildRequest(server string, name string, params *GetImageBuildParams) (*http.Request, error)

NewGetImageBuildRequest generates requests for GetImageBuild

func NewGetImageExportLogRequest

func NewGetImageExportLogRequest(server string, name string, params *GetImageExportLogParams) (*http.Request, error)

NewGetImageExportLogRequest generates requests for GetImageExportLog

func NewGetImageExportRequest

func NewGetImageExportRequest(server string, name string) (*http.Request, error)

NewGetImageExportRequest generates requests for GetImageExport

func NewListImageBuildsRequest

func NewListImageBuildsRequest(server string, params *ListImageBuildsParams) (*http.Request, error)

NewListImageBuildsRequest generates requests for ListImageBuilds

func NewListImageExportsRequest

func NewListImageExportsRequest(server string, params *ListImageExportsParams) (*http.Request, error)

NewListImageExportsRequest generates requests for ListImageExports

Types

type CancelImageBuildResponse

type CancelImageBuildResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImageBuild
	JSON400      *externalRef0.Status
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON404      *externalRef0.Status
	JSON409      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseCancelImageBuildResponse

func ParseCancelImageBuildResponse(rsp *http.Response) (*CancelImageBuildResponse, error)

ParseCancelImageBuildResponse parses an HTTP response from a CancelImageBuildWithResponse call

func (CancelImageBuildResponse) Status

func (r CancelImageBuildResponse) Status() string

Status returns HTTPResponse.Status

func (CancelImageBuildResponse) StatusCode

func (r CancelImageBuildResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CancelImageExportResponse

type CancelImageExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImageExport
	JSON400      *externalRef0.Status
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON404      *externalRef0.Status
	JSON409      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseCancelImageExportResponse

func ParseCancelImageExportResponse(rsp *http.Response) (*CancelImageExportResponse, error)

ParseCancelImageExportResponse parses an HTTP response from a CancelImageExportWithResponse call

func (CancelImageExportResponse) Status

func (r CancelImageExportResponse) Status() string

Status returns HTTPResponse.Status

func (CancelImageExportResponse) StatusCode

func (r CancelImageExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CancelImageBuild

func (c *Client) CancelImageBuild(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelImageExport

func (c *Client) CancelImageExport(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateImageBuild

func (c *Client) CreateImageBuild(ctx context.Context, body CreateImageBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateImageBuildWithBody

func (c *Client) CreateImageBuildWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateImageExport

func (c *Client) CreateImageExport(ctx context.Context, body CreateImageExportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateImageExportWithBody

func (c *Client) CreateImageExportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteImageBuild

func (c *Client) DeleteImageBuild(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteImageExport

func (c *Client) DeleteImageExport(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DownloadImageExport

func (c *Client) DownloadImageExport(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetImageBuild

func (c *Client) GetImageBuild(ctx context.Context, name string, params *GetImageBuildParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetImageBuildLog

func (c *Client) GetImageBuildLog(ctx context.Context, name string, params *GetImageBuildLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetImageExport

func (c *Client) GetImageExport(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetImageExportLog

func (c *Client) GetImageExportLog(ctx context.Context, name string, params *GetImageExportLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListImageBuilds

func (c *Client) ListImageBuilds(ctx context.Context, params *ListImageBuildsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListImageExports

func (c *Client) ListImageExports(ctx context.Context, params *ListImageExportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListImageBuilds request
	ListImageBuilds(ctx context.Context, params *ListImageBuildsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateImageBuildWithBody request with any body
	CreateImageBuildWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateImageBuild(ctx context.Context, body CreateImageBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteImageBuild request
	DeleteImageBuild(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetImageBuild request
	GetImageBuild(ctx context.Context, name string, params *GetImageBuildParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelImageBuild request
	CancelImageBuild(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetImageBuildLog request
	GetImageBuildLog(ctx context.Context, name string, params *GetImageBuildLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListImageExports request
	ListImageExports(ctx context.Context, params *ListImageExportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateImageExportWithBody request with any body
	CreateImageExportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateImageExport(ctx context.Context, body CreateImageExportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteImageExport request
	DeleteImageExport(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetImageExport request
	GetImageExport(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelImageExport request
	CancelImageExport(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadImageExport request
	DownloadImageExport(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetImageExportLog request
	GetImageExportLog(ctx context.Context, name string, params *GetImageExportLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CancelImageBuildWithResponse

func (c *ClientWithResponses) CancelImageBuildWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*CancelImageBuildResponse, error)

CancelImageBuildWithResponse request returning *CancelImageBuildResponse

func (*ClientWithResponses) CancelImageExportWithResponse

func (c *ClientWithResponses) CancelImageExportWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*CancelImageExportResponse, error)

CancelImageExportWithResponse request returning *CancelImageExportResponse

func (*ClientWithResponses) CreateImageBuildWithBodyWithResponse

func (c *ClientWithResponses) CreateImageBuildWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateImageBuildResponse, error)

CreateImageBuildWithBodyWithResponse request with arbitrary body returning *CreateImageBuildResponse

func (*ClientWithResponses) CreateImageBuildWithResponse

func (c *ClientWithResponses) CreateImageBuildWithResponse(ctx context.Context, body CreateImageBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateImageBuildResponse, error)

func (*ClientWithResponses) CreateImageExportWithBodyWithResponse

func (c *ClientWithResponses) CreateImageExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateImageExportResponse, error)

CreateImageExportWithBodyWithResponse request with arbitrary body returning *CreateImageExportResponse

func (*ClientWithResponses) CreateImageExportWithResponse

func (c *ClientWithResponses) CreateImageExportWithResponse(ctx context.Context, body CreateImageExportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateImageExportResponse, error)

func (*ClientWithResponses) DeleteImageBuildWithResponse

func (c *ClientWithResponses) DeleteImageBuildWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteImageBuildResponse, error)

DeleteImageBuildWithResponse request returning *DeleteImageBuildResponse

func (*ClientWithResponses) DeleteImageExportWithResponse

func (c *ClientWithResponses) DeleteImageExportWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteImageExportResponse, error)

DeleteImageExportWithResponse request returning *DeleteImageExportResponse

func (*ClientWithResponses) DownloadImageExportWithResponse

func (c *ClientWithResponses) DownloadImageExportWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DownloadImageExportResponse, error)

DownloadImageExportWithResponse request returning *DownloadImageExportResponse

func (*ClientWithResponses) GetImageBuildLogWithResponse

func (c *ClientWithResponses) GetImageBuildLogWithResponse(ctx context.Context, name string, params *GetImageBuildLogParams, reqEditors ...RequestEditorFn) (*GetImageBuildLogResponse, error)

GetImageBuildLogWithResponse request returning *GetImageBuildLogResponse

func (*ClientWithResponses) GetImageBuildWithResponse

func (c *ClientWithResponses) GetImageBuildWithResponse(ctx context.Context, name string, params *GetImageBuildParams, reqEditors ...RequestEditorFn) (*GetImageBuildResponse, error)

GetImageBuildWithResponse request returning *GetImageBuildResponse

func (*ClientWithResponses) GetImageExportLogWithResponse

func (c *ClientWithResponses) GetImageExportLogWithResponse(ctx context.Context, name string, params *GetImageExportLogParams, reqEditors ...RequestEditorFn) (*GetImageExportLogResponse, error)

GetImageExportLogWithResponse request returning *GetImageExportLogResponse

func (*ClientWithResponses) GetImageExportWithResponse

func (c *ClientWithResponses) GetImageExportWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetImageExportResponse, error)

GetImageExportWithResponse request returning *GetImageExportResponse

func (*ClientWithResponses) ListImageBuildsWithResponse

func (c *ClientWithResponses) ListImageBuildsWithResponse(ctx context.Context, params *ListImageBuildsParams, reqEditors ...RequestEditorFn) (*ListImageBuildsResponse, error)

ListImageBuildsWithResponse request returning *ListImageBuildsResponse

func (*ClientWithResponses) ListImageExportsWithResponse

func (c *ClientWithResponses) ListImageExportsWithResponse(ctx context.Context, params *ListImageExportsParams, reqEditors ...RequestEditorFn) (*ListImageExportsResponse, error)

ListImageExportsWithResponse request returning *ListImageExportsResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListImageBuildsWithResponse request
	ListImageBuildsWithResponse(ctx context.Context, params *ListImageBuildsParams, reqEditors ...RequestEditorFn) (*ListImageBuildsResponse, error)

	// CreateImageBuildWithBodyWithResponse request with any body
	CreateImageBuildWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateImageBuildResponse, error)

	CreateImageBuildWithResponse(ctx context.Context, body CreateImageBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateImageBuildResponse, error)

	// DeleteImageBuildWithResponse request
	DeleteImageBuildWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteImageBuildResponse, error)

	// GetImageBuildWithResponse request
	GetImageBuildWithResponse(ctx context.Context, name string, params *GetImageBuildParams, reqEditors ...RequestEditorFn) (*GetImageBuildResponse, error)

	// CancelImageBuildWithResponse request
	CancelImageBuildWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*CancelImageBuildResponse, error)

	// GetImageBuildLogWithResponse request
	GetImageBuildLogWithResponse(ctx context.Context, name string, params *GetImageBuildLogParams, reqEditors ...RequestEditorFn) (*GetImageBuildLogResponse, error)

	// ListImageExportsWithResponse request
	ListImageExportsWithResponse(ctx context.Context, params *ListImageExportsParams, reqEditors ...RequestEditorFn) (*ListImageExportsResponse, error)

	// CreateImageExportWithBodyWithResponse request with any body
	CreateImageExportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateImageExportResponse, error)

	CreateImageExportWithResponse(ctx context.Context, body CreateImageExportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateImageExportResponse, error)

	// DeleteImageExportWithResponse request
	DeleteImageExportWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteImageExportResponse, error)

	// GetImageExportWithResponse request
	GetImageExportWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetImageExportResponse, error)

	// CancelImageExportWithResponse request
	CancelImageExportWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*CancelImageExportResponse, error)

	// DownloadImageExportWithResponse request
	DownloadImageExportWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DownloadImageExportResponse, error)

	// GetImageExportLogWithResponse request
	GetImageExportLogWithResponse(ctx context.Context, name string, params *GetImageExportLogParams, reqEditors ...RequestEditorFn) (*GetImageExportLogResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateImageBuildResponse

type CreateImageBuildResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ImageBuild
	JSON400      *externalRef0.Status
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON409      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseCreateImageBuildResponse

func ParseCreateImageBuildResponse(rsp *http.Response) (*CreateImageBuildResponse, error)

ParseCreateImageBuildResponse parses an HTTP response from a CreateImageBuildWithResponse call

func (CreateImageBuildResponse) Status

func (r CreateImageBuildResponse) Status() string

Status returns HTTPResponse.Status

func (CreateImageBuildResponse) StatusCode

func (r CreateImageBuildResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateImageExportResponse

type CreateImageExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ImageExport
	JSON400      *externalRef0.Status
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON409      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseCreateImageExportResponse

func ParseCreateImageExportResponse(rsp *http.Response) (*CreateImageExportResponse, error)

ParseCreateImageExportResponse parses an HTTP response from a CreateImageExportWithResponse call

func (CreateImageExportResponse) Status

func (r CreateImageExportResponse) Status() string

Status returns HTTPResponse.Status

func (CreateImageExportResponse) StatusCode

func (r CreateImageExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteImageBuildResponse

type DeleteImageBuildResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImageBuild
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON404      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseDeleteImageBuildResponse

func ParseDeleteImageBuildResponse(rsp *http.Response) (*DeleteImageBuildResponse, error)

ParseDeleteImageBuildResponse parses an HTTP response from a DeleteImageBuildWithResponse call

func (DeleteImageBuildResponse) Status

func (r DeleteImageBuildResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteImageBuildResponse) StatusCode

func (r DeleteImageBuildResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteImageExportResponse

type DeleteImageExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImageExport
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON404      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseDeleteImageExportResponse

func ParseDeleteImageExportResponse(rsp *http.Response) (*DeleteImageExportResponse, error)

ParseDeleteImageExportResponse parses an HTTP response from a DeleteImageExportWithResponse call

func (DeleteImageExportResponse) Status

func (r DeleteImageExportResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteImageExportResponse) StatusCode

func (r DeleteImageExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DownloadImageExportResponse

type DownloadImageExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *externalRef0.Status
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON404      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON500      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseDownloadImageExportResponse

func ParseDownloadImageExportResponse(rsp *http.Response) (*DownloadImageExportResponse, error)

ParseDownloadImageExportResponse parses an HTTP response from a DownloadImageExportWithResponse call

func (DownloadImageExportResponse) Status

Status returns HTTPResponse.Status

func (DownloadImageExportResponse) StatusCode

func (r DownloadImageExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetImageBuildLogResponse

type GetImageBuildLogResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON404      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseGetImageBuildLogResponse

func ParseGetImageBuildLogResponse(rsp *http.Response) (*GetImageBuildLogResponse, error)

ParseGetImageBuildLogResponse parses an HTTP response from a GetImageBuildLogWithResponse call

func (GetImageBuildLogResponse) Status

func (r GetImageBuildLogResponse) Status() string

Status returns HTTPResponse.Status

func (GetImageBuildLogResponse) StatusCode

func (r GetImageBuildLogResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetImageBuildResponse

type GetImageBuildResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImageBuild
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON404      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseGetImageBuildResponse

func ParseGetImageBuildResponse(rsp *http.Response) (*GetImageBuildResponse, error)

ParseGetImageBuildResponse parses an HTTP response from a GetImageBuildWithResponse call

func (GetImageBuildResponse) Status

func (r GetImageBuildResponse) Status() string

Status returns HTTPResponse.Status

func (GetImageBuildResponse) StatusCode

func (r GetImageBuildResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetImageExportLogResponse

type GetImageExportLogResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON404      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseGetImageExportLogResponse

func ParseGetImageExportLogResponse(rsp *http.Response) (*GetImageExportLogResponse, error)

ParseGetImageExportLogResponse parses an HTTP response from a GetImageExportLogWithResponse call

func (GetImageExportLogResponse) Status

func (r GetImageExportLogResponse) Status() string

Status returns HTTPResponse.Status

func (GetImageExportLogResponse) StatusCode

func (r GetImageExportLogResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetImageExportResponse

type GetImageExportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImageExport
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON404      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseGetImageExportResponse

func ParseGetImageExportResponse(rsp *http.Response) (*GetImageExportResponse, error)

ParseGetImageExportResponse parses an HTTP response from a GetImageExportWithResponse call

func (GetImageExportResponse) Status

func (r GetImageExportResponse) Status() string

Status returns HTTPResponse.Status

func (GetImageExportResponse) StatusCode

func (r GetImageExportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListImageBuildsResponse

type ListImageBuildsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImageBuildList
	JSON400      *externalRef0.Status
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseListImageBuildsResponse

func ParseListImageBuildsResponse(rsp *http.Response) (*ListImageBuildsResponse, error)

ParseListImageBuildsResponse parses an HTTP response from a ListImageBuildsWithResponse call

func (ListImageBuildsResponse) Status

func (r ListImageBuildsResponse) Status() string

Status returns HTTPResponse.Status

func (ListImageBuildsResponse) StatusCode

func (r ListImageBuildsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListImageExportsResponse

type ListImageExportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ImageExportList
	JSON400      *externalRef0.Status
	JSON401      *externalRef0.Status
	JSON403      *externalRef0.Status
	JSON429      *externalRef0.Status
	JSON503      *externalRef0.Status
}

func ParseListImageExportsResponse

func ParseListImageExportsResponse(rsp *http.Response) (*ListImageExportsResponse, error)

ParseListImageExportsResponse parses an HTTP response from a ListImageExportsWithResponse call

func (ListImageExportsResponse) Status

func (r ListImageExportsResponse) Status() string

Status returns HTTPResponse.Status

func (ListImageExportsResponse) StatusCode

func (r ListImageExportsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL