images

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 15 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 images API

func (*Client) ImageGet deprecated

Deprecated: 2022-08-10 - Use ImageGetShort instead.

ImageGet get image details. Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [READ]

func (*Client) ImageGetShort

func (a *Client) ImageGetShort(params *ImageGetParams, authInfo runtime.ClientAuthInfoWriter) (*ImageGetOK, error)

ImageGetShort get image details. Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [READ]

func (*Client) ImageList deprecated

Deprecated: 2022-08-10 - Use ImageListShort instead.

ImageList get a list of existing images Returns images which exist (uploaded, uploading, or building) in the linked account. This route fails if no account is linked

Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [READ]

func (*Client) ImageListShort

func (a *Client) ImageListShort(params *ImageListParams, authInfo runtime.ClientAuthInfoWriter) (*ImageListOK, error)

ImageListShort get a list of existing images Returns images which exist (uploaded, uploading, or building) in the linked account. This route fails if no account is linked

Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [READ]

func (*Client) ImagePatch deprecated

Deprecated: 2022-08-10 - Use ImagePatchShort instead.

ImagePatch edit the image This allows editing of the image name, toggling `IsProtected`, or adding & removal of tags

Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [UPDATE]

func (*Client) ImagePatchShort

func (a *Client) ImagePatchShort(params *ImagePatchParams, authInfo runtime.ClientAuthInfoWriter) (*ImagePatchOK, error)

ImagePatchShort edit the image This allows editing of the image name, toggling `IsProtected`, or adding & removal of tags

Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [UPDATE]

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new images API client.

type ImageGetForbidden

type ImageGetForbidden struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImageGetForbidden handles this case with default header values.

insufficient permissions

func NewImageGetForbidden

func NewImageGetForbidden() *ImageGetForbidden

NewImageGetForbidden creates a ImageGetForbidden with default headers values

func (*ImageGetForbidden) Error

func (o *ImageGetForbidden) Error() string

func (*ImageGetForbidden) GetPayload

func (*ImageGetForbidden) ToJSONString

func (o *ImageGetForbidden) ToJSONString() string

type ImageGetInternalServerError

type ImageGetInternalServerError struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImageGetInternalServerError handles this case with default header values.

internal server error

func NewImageGetInternalServerError

func NewImageGetInternalServerError() *ImageGetInternalServerError

NewImageGetInternalServerError creates a ImageGetInternalServerError with default headers values

func (*ImageGetInternalServerError) Error

func (*ImageGetInternalServerError) GetPayload

func (*ImageGetInternalServerError) ToJSONString

func (o *ImageGetInternalServerError) ToJSONString() string

type ImageGetNotFound

type ImageGetNotFound struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImageGetNotFound handles this case with default header values.

account not linked

func NewImageGetNotFound

func NewImageGetNotFound() *ImageGetNotFound

NewImageGetNotFound creates a ImageGetNotFound with default headers values

func (*ImageGetNotFound) Error

func (o *ImageGetNotFound) Error() string

func (*ImageGetNotFound) GetPayload

func (*ImageGetNotFound) ToJSONString

func (o *ImageGetNotFound) ToJSONString() string

type ImageGetOK

type ImageGetOK struct {
	Payload *amsclientmodels.APIImageDetails
}

ImageGetOK handles this case with default header values.

success

func NewImageGetOK

func NewImageGetOK() *ImageGetOK

NewImageGetOK creates a ImageGetOK with default headers values

func (*ImageGetOK) Error

func (o *ImageGetOK) Error() string

func (*ImageGetOK) GetPayload

func (o *ImageGetOK) GetPayload() *amsclientmodels.APIImageDetails

func (*ImageGetOK) ToJSONString

func (o *ImageGetOK) ToJSONString() string

type ImageGetParams

type ImageGetParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ImageID
	  the id of the image

	*/
	ImageID string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

ImageGetParams contains all the parameters to send to the API endpoint for the image get operation typically these are written to a http.Request

func NewImageGetParams

func NewImageGetParams() *ImageGetParams

NewImageGetParams creates a new ImageGetParams object with the default values initialized.

func NewImageGetParamsWithContext

func NewImageGetParamsWithContext(ctx context.Context) *ImageGetParams

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

func NewImageGetParamsWithHTTPClient

func NewImageGetParamsWithHTTPClient(client *http.Client) *ImageGetParams

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

func NewImageGetParamsWithTimeout

func NewImageGetParamsWithTimeout(timeout time.Duration) *ImageGetParams

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

func (*ImageGetParams) SetAuthInfoWriter

func (o *ImageGetParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the image get params

func (*ImageGetParams) SetContext

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

SetContext adds the context to the image get params

func (*ImageGetParams) SetFlightId added in v0.63.0

func (o *ImageGetParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*ImageGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the image get params

func (*ImageGetParams) SetHTTPClientTransport

func (o *ImageGetParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the image get params

func (*ImageGetParams) SetImageID

func (o *ImageGetParams) SetImageID(imageID string)

SetImageID adds the imageId to the image get params

func (*ImageGetParams) SetNamespace

func (o *ImageGetParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the image get params

func (*ImageGetParams) SetTimeout

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

SetTimeout adds the timeout to the image get params

func (*ImageGetParams) WithContext

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

WithContext adds the context to the image get params

func (*ImageGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the image get params

func (*ImageGetParams) WithImageID

func (o *ImageGetParams) WithImageID(imageID string) *ImageGetParams

WithImageID adds the imageID to the image get params

func (*ImageGetParams) WithNamespace

func (o *ImageGetParams) WithNamespace(namespace string) *ImageGetParams

WithNamespace adds the namespace to the image get params

func (*ImageGetParams) WithTimeout

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

WithTimeout adds the timeout to the image get params

func (*ImageGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ImageGetReader

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

ImageGetReader is a Reader for the ImageGet structure.

func (*ImageGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ImageGetUnauthorized

type ImageGetUnauthorized struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImageGetUnauthorized handles this case with default header values.

no authorization provided

func NewImageGetUnauthorized

func NewImageGetUnauthorized() *ImageGetUnauthorized

NewImageGetUnauthorized creates a ImageGetUnauthorized with default headers values

func (*ImageGetUnauthorized) Error

func (o *ImageGetUnauthorized) Error() string

func (*ImageGetUnauthorized) GetPayload

func (*ImageGetUnauthorized) ToJSONString

func (o *ImageGetUnauthorized) ToJSONString() string

type ImageListForbidden

type ImageListForbidden struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImageListForbidden handles this case with default header values.

insufficient permissions

func NewImageListForbidden

func NewImageListForbidden() *ImageListForbidden

NewImageListForbidden creates a ImageListForbidden with default headers values

func (*ImageListForbidden) Error

func (o *ImageListForbidden) Error() string

func (*ImageListForbidden) GetPayload

func (*ImageListForbidden) ToJSONString

func (o *ImageListForbidden) ToJSONString() string

type ImageListInternalServerError

type ImageListInternalServerError struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImageListInternalServerError handles this case with default header values.

internal server error

func NewImageListInternalServerError

func NewImageListInternalServerError() *ImageListInternalServerError

NewImageListInternalServerError creates a ImageListInternalServerError with default headers values

func (*ImageListInternalServerError) Error

func (*ImageListInternalServerError) GetPayload

func (*ImageListInternalServerError) ToJSONString

func (o *ImageListInternalServerError) ToJSONString() string

type ImageListNotFound

type ImageListNotFound struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImageListNotFound handles this case with default header values.

account not linked

func NewImageListNotFound

func NewImageListNotFound() *ImageListNotFound

NewImageListNotFound creates a ImageListNotFound with default headers values

func (*ImageListNotFound) Error

func (o *ImageListNotFound) Error() string

func (*ImageListNotFound) GetPayload

func (*ImageListNotFound) ToJSONString

func (o *ImageListNotFound) ToJSONString() string

type ImageListOK

type ImageListOK struct {
	Payload *amsclientmodels.APIImageList
}

ImageListOK handles this case with default header values.

success

func NewImageListOK

func NewImageListOK() *ImageListOK

NewImageListOK creates a ImageListOK with default headers values

func (*ImageListOK) Error

func (o *ImageListOK) Error() string

func (*ImageListOK) GetPayload

func (o *ImageListOK) GetPayload() *amsclientmodels.APIImageList

func (*ImageListOK) ToJSONString

func (o *ImageListOK) ToJSONString() string

type ImageListParams

type ImageListParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

ImageListParams contains all the parameters to send to the API endpoint for the image list operation typically these are written to a http.Request

func NewImageListParams

func NewImageListParams() *ImageListParams

NewImageListParams creates a new ImageListParams object with the default values initialized.

func NewImageListParamsWithContext

func NewImageListParamsWithContext(ctx context.Context) *ImageListParams

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

func NewImageListParamsWithHTTPClient

func NewImageListParamsWithHTTPClient(client *http.Client) *ImageListParams

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

func NewImageListParamsWithTimeout

func NewImageListParamsWithTimeout(timeout time.Duration) *ImageListParams

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

func (*ImageListParams) SetAuthInfoWriter

func (o *ImageListParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the image list params

func (*ImageListParams) SetContext

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

SetContext adds the context to the image list params

func (*ImageListParams) SetFlightId added in v0.63.0

func (o *ImageListParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*ImageListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the image list params

func (*ImageListParams) SetHTTPClientTransport

func (o *ImageListParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the image list params

func (*ImageListParams) SetNamespace

func (o *ImageListParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the image list params

func (*ImageListParams) SetTimeout

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

SetTimeout adds the timeout to the image list params

func (*ImageListParams) WithContext

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

WithContext adds the context to the image list params

func (*ImageListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the image list params

func (*ImageListParams) WithNamespace

func (o *ImageListParams) WithNamespace(namespace string) *ImageListParams

WithNamespace adds the namespace to the image list params

func (*ImageListParams) WithTimeout

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

WithTimeout adds the timeout to the image list params

func (*ImageListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ImageListReader

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

ImageListReader is a Reader for the ImageList structure.

func (*ImageListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ImageListUnauthorized

type ImageListUnauthorized struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImageListUnauthorized handles this case with default header values.

no authorization provided

func NewImageListUnauthorized

func NewImageListUnauthorized() *ImageListUnauthorized

NewImageListUnauthorized creates a ImageListUnauthorized with default headers values

func (*ImageListUnauthorized) Error

func (o *ImageListUnauthorized) Error() string

func (*ImageListUnauthorized) GetPayload

func (*ImageListUnauthorized) ToJSONString

func (o *ImageListUnauthorized) ToJSONString() string

type ImagePatchForbidden

type ImagePatchForbidden struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImagePatchForbidden handles this case with default header values.

insufficient permissions

func NewImagePatchForbidden

func NewImagePatchForbidden() *ImagePatchForbidden

NewImagePatchForbidden creates a ImagePatchForbidden with default headers values

func (*ImagePatchForbidden) Error

func (o *ImagePatchForbidden) Error() string

func (*ImagePatchForbidden) GetPayload

func (*ImagePatchForbidden) ToJSONString

func (o *ImagePatchForbidden) ToJSONString() string

type ImagePatchInternalServerError

type ImagePatchInternalServerError struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImagePatchInternalServerError handles this case with default header values.

internal server error

func NewImagePatchInternalServerError

func NewImagePatchInternalServerError() *ImagePatchInternalServerError

NewImagePatchInternalServerError creates a ImagePatchInternalServerError with default headers values

func (*ImagePatchInternalServerError) Error

func (*ImagePatchInternalServerError) GetPayload

func (*ImagePatchInternalServerError) ToJSONString

func (o *ImagePatchInternalServerError) ToJSONString() string

type ImagePatchNotFound

type ImagePatchNotFound struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImagePatchNotFound handles this case with default header values.

account not linked

func NewImagePatchNotFound

func NewImagePatchNotFound() *ImagePatchNotFound

NewImagePatchNotFound creates a ImagePatchNotFound with default headers values

func (*ImagePatchNotFound) Error

func (o *ImagePatchNotFound) Error() string

func (*ImagePatchNotFound) GetPayload

func (*ImagePatchNotFound) ToJSONString

func (o *ImagePatchNotFound) ToJSONString() string

type ImagePatchOK

type ImagePatchOK struct {
	Payload *amsclientmodels.APIImageDetails
}

ImagePatchOK handles this case with default header values.

success

func NewImagePatchOK

func NewImagePatchOK() *ImagePatchOK

NewImagePatchOK creates a ImagePatchOK with default headers values

func (*ImagePatchOK) Error

func (o *ImagePatchOK) Error() string

func (*ImagePatchOK) GetPayload

func (o *ImagePatchOK) GetPayload() *amsclientmodels.APIImageDetails

func (*ImagePatchOK) ToJSONString

func (o *ImagePatchOK) ToJSONString() string

type ImagePatchParams

type ImagePatchParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *amsclientmodels.APIImageUpdate
	/*ImageID
	  the id of the image

	*/
	ImageID string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

ImagePatchParams contains all the parameters to send to the API endpoint for the image patch operation typically these are written to a http.Request

func NewImagePatchParams

func NewImagePatchParams() *ImagePatchParams

NewImagePatchParams creates a new ImagePatchParams object with the default values initialized.

func NewImagePatchParamsWithContext

func NewImagePatchParamsWithContext(ctx context.Context) *ImagePatchParams

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

func NewImagePatchParamsWithHTTPClient

func NewImagePatchParamsWithHTTPClient(client *http.Client) *ImagePatchParams

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

func NewImagePatchParamsWithTimeout

func NewImagePatchParamsWithTimeout(timeout time.Duration) *ImagePatchParams

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

func (*ImagePatchParams) SetAuthInfoWriter

func (o *ImagePatchParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the image patch params

func (*ImagePatchParams) SetBody

SetBody adds the body to the image patch params

func (*ImagePatchParams) SetContext

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

SetContext adds the context to the image patch params

func (*ImagePatchParams) SetFlightId added in v0.63.0

func (o *ImagePatchParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*ImagePatchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the image patch params

func (*ImagePatchParams) SetHTTPClientTransport

func (o *ImagePatchParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the image patch params

func (*ImagePatchParams) SetImageID

func (o *ImagePatchParams) SetImageID(imageID string)

SetImageID adds the imageId to the image patch params

func (*ImagePatchParams) SetNamespace

func (o *ImagePatchParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the image patch params

func (*ImagePatchParams) SetTimeout

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

SetTimeout adds the timeout to the image patch params

func (*ImagePatchParams) WithBody

WithBody adds the body to the image patch params

func (*ImagePatchParams) WithContext

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

WithContext adds the context to the image patch params

func (*ImagePatchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the image patch params

func (*ImagePatchParams) WithImageID

func (o *ImagePatchParams) WithImageID(imageID string) *ImagePatchParams

WithImageID adds the imageID to the image patch params

func (*ImagePatchParams) WithNamespace

func (o *ImagePatchParams) WithNamespace(namespace string) *ImagePatchParams

WithNamespace adds the namespace to the image patch params

func (*ImagePatchParams) WithTimeout

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

WithTimeout adds the timeout to the image patch params

func (*ImagePatchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ImagePatchReader

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

ImagePatchReader is a Reader for the ImagePatch structure.

func (*ImagePatchReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ImagePatchUnauthorized

type ImagePatchUnauthorized struct {
	Payload *amsclientmodels.ResponseErrorResponse
}

ImagePatchUnauthorized handles this case with default header values.

no authorization provided

func NewImagePatchUnauthorized

func NewImagePatchUnauthorized() *ImagePatchUnauthorized

NewImagePatchUnauthorized creates a ImagePatchUnauthorized with default headers values

func (*ImagePatchUnauthorized) Error

func (o *ImagePatchUnauthorized) Error() string

func (*ImagePatchUnauthorized) GetPayload

func (*ImagePatchUnauthorized) ToJSONString

func (o *ImagePatchUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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