manifests

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-2-Clause Imports: 10 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 manifests API

func (*Client) GetManifest added in v0.1.1

func (a *Client) GetManifest(params *GetManifestParams, opts ...ClientOption) (*GetManifestOK, error)

GetManifest gets manifest

Get manifest. There should be only one valid manifest in the System.

func (*Client) SaveManifest

func (a *Client) SaveManifest(params *SaveManifestParams, opts ...ClientOption) (*SaveManifestAccepted, error)

SaveManifest saves load manifest

Save/Load manifest. Make sure manifest is a valid one. If manifest already exists, it gets overridden.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetManifest(params *GetManifestParams, opts ...ClientOption) (*GetManifestOK, error)

	SaveManifest(params *SaveManifestParams, opts ...ClientOption) (*SaveManifestAccepted, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new manifests API client.

type GetManifestInternalServerError added in v0.1.1

type GetManifestInternalServerError struct {
	Payload *models.Error
}

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

Internal Server Error

func NewGetManifestInternalServerError added in v0.1.1

func NewGetManifestInternalServerError() *GetManifestInternalServerError

NewGetManifestInternalServerError creates a GetManifestInternalServerError with default headers values

func (*GetManifestInternalServerError) Error added in v0.1.1

func (*GetManifestInternalServerError) GetPayload added in v0.1.1

func (o *GetManifestInternalServerError) GetPayload() *models.Error

func (*GetManifestInternalServerError) IsClientError added in v0.1.1

func (o *GetManifestInternalServerError) IsClientError() bool

IsClientError returns true when this get manifest internal server error response has a 4xx status code

func (*GetManifestInternalServerError) IsCode added in v0.1.1

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

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

func (*GetManifestInternalServerError) IsRedirect added in v0.1.1

func (o *GetManifestInternalServerError) IsRedirect() bool

IsRedirect returns true when this get manifest internal server error response has a 3xx status code

func (*GetManifestInternalServerError) IsServerError added in v0.1.1

func (o *GetManifestInternalServerError) IsServerError() bool

IsServerError returns true when this get manifest internal server error response has a 5xx status code

func (*GetManifestInternalServerError) IsSuccess added in v0.1.1

func (o *GetManifestInternalServerError) IsSuccess() bool

IsSuccess returns true when this get manifest internal server error response has a 2xx status code

func (*GetManifestInternalServerError) String added in v0.1.1

type GetManifestNotFound added in v0.1.1

type GetManifestNotFound struct {
	Payload *models.Error
}

GetManifestNotFound describes a response with status code 404, with default header values.

Manifest Not Found

func NewGetManifestNotFound added in v0.1.1

func NewGetManifestNotFound() *GetManifestNotFound

NewGetManifestNotFound creates a GetManifestNotFound with default headers values

func (*GetManifestNotFound) Error added in v0.1.1

func (o *GetManifestNotFound) Error() string

func (*GetManifestNotFound) GetPayload added in v0.1.1

func (o *GetManifestNotFound) GetPayload() *models.Error

func (*GetManifestNotFound) IsClientError added in v0.1.1

func (o *GetManifestNotFound) IsClientError() bool

IsClientError returns true when this get manifest not found response has a 4xx status code

func (*GetManifestNotFound) IsCode added in v0.1.1

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

IsCode returns true when this get manifest not found response a status code equal to that given

func (*GetManifestNotFound) IsRedirect added in v0.1.1

func (o *GetManifestNotFound) IsRedirect() bool

IsRedirect returns true when this get manifest not found response has a 3xx status code

func (*GetManifestNotFound) IsServerError added in v0.1.1

func (o *GetManifestNotFound) IsServerError() bool

IsServerError returns true when this get manifest not found response has a 5xx status code

func (*GetManifestNotFound) IsSuccess added in v0.1.1

func (o *GetManifestNotFound) IsSuccess() bool

IsSuccess returns true when this get manifest not found response has a 2xx status code

func (*GetManifestNotFound) String added in v0.1.1

func (o *GetManifestNotFound) String() string

type GetManifestOK added in v0.1.1

type GetManifestOK struct {
	Payload *models.Manifest
}

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

Ok

func NewGetManifestOK added in v0.1.1

func NewGetManifestOK() *GetManifestOK

NewGetManifestOK creates a GetManifestOK with default headers values

func (*GetManifestOK) Error added in v0.1.1

func (o *GetManifestOK) Error() string

func (*GetManifestOK) GetPayload added in v0.1.1

func (o *GetManifestOK) GetPayload() *models.Manifest

func (*GetManifestOK) IsClientError added in v0.1.1

func (o *GetManifestOK) IsClientError() bool

IsClientError returns true when this get manifest o k response has a 4xx status code

func (*GetManifestOK) IsCode added in v0.1.1

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

IsCode returns true when this get manifest o k response a status code equal to that given

func (*GetManifestOK) IsRedirect added in v0.1.1

func (o *GetManifestOK) IsRedirect() bool

IsRedirect returns true when this get manifest o k response has a 3xx status code

func (*GetManifestOK) IsServerError added in v0.1.1

func (o *GetManifestOK) IsServerError() bool

IsServerError returns true when this get manifest o k response has a 5xx status code

func (*GetManifestOK) IsSuccess added in v0.1.1

func (o *GetManifestOK) IsSuccess() bool

IsSuccess returns true when this get manifest o k response has a 2xx status code

func (*GetManifestOK) String added in v0.1.1

func (o *GetManifestOK) String() string

type GetManifestParams added in v0.1.1

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

GetManifestParams contains all the parameters to send to the API endpoint

for the get manifest operation.

Typically these are written to a http.Request.

func NewGetManifestParams added in v0.1.1

func NewGetManifestParams() *GetManifestParams

NewGetManifestParams creates a new GetManifestParams 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 NewGetManifestParamsWithContext added in v0.1.1

func NewGetManifestParamsWithContext(ctx context.Context) *GetManifestParams

NewGetManifestParamsWithContext creates a new GetManifestParams object with the ability to set a context for a request.

func NewGetManifestParamsWithHTTPClient added in v0.1.1

func NewGetManifestParamsWithHTTPClient(client *http.Client) *GetManifestParams

NewGetManifestParamsWithHTTPClient creates a new GetManifestParams object with the ability to set a custom HTTPClient for a request.

func NewGetManifestParamsWithTimeout added in v0.1.1

func NewGetManifestParamsWithTimeout(timeout time.Duration) *GetManifestParams

NewGetManifestParamsWithTimeout creates a new GetManifestParams object with the ability to set a timeout on a request.

func (*GetManifestParams) SetContext added in v0.1.1

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

SetContext adds the context to the get manifest params

func (*GetManifestParams) SetDefaults added in v0.1.1

func (o *GetManifestParams) SetDefaults()

SetDefaults hydrates default values in the get manifest params (not the query body).

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

func (*GetManifestParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get manifest params

func (*GetManifestParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get manifest params

func (*GetManifestParams) WithContext added in v0.1.1

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

WithContext adds the context to the get manifest params

func (*GetManifestParams) WithDefaults added in v0.1.1

func (o *GetManifestParams) WithDefaults() *GetManifestParams

WithDefaults hydrates default values in the get manifest params (not the query body).

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

func (*GetManifestParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get manifest params

func (*GetManifestParams) WithTimeout added in v0.1.1

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

WithTimeout adds the timeout to the get manifest params

func (*GetManifestParams) WriteToRequest added in v0.1.1

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

WriteToRequest writes these params to a swagger request

type GetManifestReader added in v0.1.1

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

GetManifestReader is a Reader for the GetManifest structure.

func (*GetManifestReader) ReadResponse added in v0.1.1

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

ReadResponse reads a server response into the received o.

type SaveManifestAccepted

type SaveManifestAccepted struct {
}

SaveManifestAccepted describes a response with status code 202, with default header values.

Accepted

func NewSaveManifestAccepted

func NewSaveManifestAccepted() *SaveManifestAccepted

NewSaveManifestAccepted creates a SaveManifestAccepted with default headers values

func (*SaveManifestAccepted) Error

func (o *SaveManifestAccepted) Error() string

func (*SaveManifestAccepted) IsClientError

func (o *SaveManifestAccepted) IsClientError() bool

IsClientError returns true when this save manifest accepted response has a 4xx status code

func (*SaveManifestAccepted) IsCode

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

IsCode returns true when this save manifest accepted response a status code equal to that given

func (*SaveManifestAccepted) IsRedirect

func (o *SaveManifestAccepted) IsRedirect() bool

IsRedirect returns true when this save manifest accepted response has a 3xx status code

func (*SaveManifestAccepted) IsServerError

func (o *SaveManifestAccepted) IsServerError() bool

IsServerError returns true when this save manifest accepted response has a 5xx status code

func (*SaveManifestAccepted) IsSuccess

func (o *SaveManifestAccepted) IsSuccess() bool

IsSuccess returns true when this save manifest accepted response has a 2xx status code

func (*SaveManifestAccepted) String

func (o *SaveManifestAccepted) String() string

type SaveManifestBadRequest

type SaveManifestBadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewSaveManifestBadRequest

func NewSaveManifestBadRequest() *SaveManifestBadRequest

NewSaveManifestBadRequest creates a SaveManifestBadRequest with default headers values

func (*SaveManifestBadRequest) Error

func (o *SaveManifestBadRequest) Error() string

func (*SaveManifestBadRequest) GetPayload

func (o *SaveManifestBadRequest) GetPayload() *models.Error

func (*SaveManifestBadRequest) IsClientError

func (o *SaveManifestBadRequest) IsClientError() bool

IsClientError returns true when this save manifest bad request response has a 4xx status code

func (*SaveManifestBadRequest) IsCode

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

IsCode returns true when this save manifest bad request response a status code equal to that given

func (*SaveManifestBadRequest) IsRedirect

func (o *SaveManifestBadRequest) IsRedirect() bool

IsRedirect returns true when this save manifest bad request response has a 3xx status code

func (*SaveManifestBadRequest) IsServerError

func (o *SaveManifestBadRequest) IsServerError() bool

IsServerError returns true when this save manifest bad request response has a 5xx status code

func (*SaveManifestBadRequest) IsSuccess

func (o *SaveManifestBadRequest) IsSuccess() bool

IsSuccess returns true when this save manifest bad request response has a 2xx status code

func (*SaveManifestBadRequest) String

func (o *SaveManifestBadRequest) String() string

type SaveManifestInternalServerError

type SaveManifestInternalServerError struct {
	Payload *models.Error
}

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

Internal Server Error

func NewSaveManifestInternalServerError

func NewSaveManifestInternalServerError() *SaveManifestInternalServerError

NewSaveManifestInternalServerError creates a SaveManifestInternalServerError with default headers values

func (*SaveManifestInternalServerError) Error

func (*SaveManifestInternalServerError) GetPayload

func (o *SaveManifestInternalServerError) GetPayload() *models.Error

func (*SaveManifestInternalServerError) IsClientError

func (o *SaveManifestInternalServerError) IsClientError() bool

IsClientError returns true when this save manifest internal server error response has a 4xx status code

func (*SaveManifestInternalServerError) IsCode

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

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

func (*SaveManifestInternalServerError) IsRedirect

func (o *SaveManifestInternalServerError) IsRedirect() bool

IsRedirect returns true when this save manifest internal server error response has a 3xx status code

func (*SaveManifestInternalServerError) IsServerError

func (o *SaveManifestInternalServerError) IsServerError() bool

IsServerError returns true when this save manifest internal server error response has a 5xx status code

func (*SaveManifestInternalServerError) IsSuccess

func (o *SaveManifestInternalServerError) IsSuccess() bool

IsSuccess returns true when this save manifest internal server error response has a 2xx status code

func (*SaveManifestInternalServerError) String

type SaveManifestParams

type SaveManifestParams struct {

	/* Manifest.

	   manifest
	*/
	Manifest *models.Manifest

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

SaveManifestParams contains all the parameters to send to the API endpoint

for the save manifest operation.

Typically these are written to a http.Request.

func NewSaveManifestParams

func NewSaveManifestParams() *SaveManifestParams

NewSaveManifestParams creates a new SaveManifestParams 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 NewSaveManifestParamsWithContext

func NewSaveManifestParamsWithContext(ctx context.Context) *SaveManifestParams

NewSaveManifestParamsWithContext creates a new SaveManifestParams object with the ability to set a context for a request.

func NewSaveManifestParamsWithHTTPClient

func NewSaveManifestParamsWithHTTPClient(client *http.Client) *SaveManifestParams

NewSaveManifestParamsWithHTTPClient creates a new SaveManifestParams object with the ability to set a custom HTTPClient for a request.

func NewSaveManifestParamsWithTimeout

func NewSaveManifestParamsWithTimeout(timeout time.Duration) *SaveManifestParams

NewSaveManifestParamsWithTimeout creates a new SaveManifestParams object with the ability to set a timeout on a request.

func (*SaveManifestParams) SetContext

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

SetContext adds the context to the save manifest params

func (*SaveManifestParams) SetDefaults

func (o *SaveManifestParams) SetDefaults()

SetDefaults hydrates default values in the save manifest params (not the query body).

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

func (*SaveManifestParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the save manifest params

func (*SaveManifestParams) SetManifest

func (o *SaveManifestParams) SetManifest(manifest *models.Manifest)

SetManifest adds the manifest to the save manifest params

func (*SaveManifestParams) SetTimeout

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

SetTimeout adds the timeout to the save manifest params

func (*SaveManifestParams) WithContext

WithContext adds the context to the save manifest params

func (*SaveManifestParams) WithDefaults

func (o *SaveManifestParams) WithDefaults() *SaveManifestParams

WithDefaults hydrates default values in the save manifest params (not the query body).

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

func (*SaveManifestParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the save manifest params

func (*SaveManifestParams) WithManifest

func (o *SaveManifestParams) WithManifest(manifest *models.Manifest) *SaveManifestParams

WithManifest adds the manifest to the save manifest params

func (*SaveManifestParams) WithTimeout

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

WithTimeout adds the timeout to the save manifest params

func (*SaveManifestParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SaveManifestReader

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

SaveManifestReader is a Reader for the SaveManifest structure.

func (*SaveManifestReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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