artifacts_stores_v1

package
v0.0.0-...-13a6dad Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 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 artifacts stores v1 API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UploadArtifact

UploadArtifact uploads artifact to a store

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	UploadArtifact(params *UploadArtifactParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadArtifactOK, *UploadArtifactNoContent, 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 artifacts stores v1 API client.

type UploadArtifactForbidden

type UploadArtifactForbidden struct {
	Payload interface{}
}
UploadArtifactForbidden describes a response with status code 403, with default header values.

You don't have permission to access the resource.

func NewUploadArtifactForbidden

func NewUploadArtifactForbidden() *UploadArtifactForbidden

NewUploadArtifactForbidden creates a UploadArtifactForbidden with default headers values

func (*UploadArtifactForbidden) Error

func (o *UploadArtifactForbidden) Error() string

func (*UploadArtifactForbidden) GetPayload

func (o *UploadArtifactForbidden) GetPayload() interface{}

type UploadArtifactNoContent

type UploadArtifactNoContent struct {
	Payload interface{}
}
UploadArtifactNoContent describes a response with status code 204, with default header values.

No content.

func NewUploadArtifactNoContent

func NewUploadArtifactNoContent() *UploadArtifactNoContent

NewUploadArtifactNoContent creates a UploadArtifactNoContent with default headers values

func (*UploadArtifactNoContent) Error

func (o *UploadArtifactNoContent) Error() string

func (*UploadArtifactNoContent) GetPayload

func (o *UploadArtifactNoContent) GetPayload() interface{}

type UploadArtifactNotFound

type UploadArtifactNotFound struct {
	Payload interface{}
}
UploadArtifactNotFound describes a response with status code 404, with default header values.

Resource does not exist.

func NewUploadArtifactNotFound

func NewUploadArtifactNotFound() *UploadArtifactNotFound

NewUploadArtifactNotFound creates a UploadArtifactNotFound with default headers values

func (*UploadArtifactNotFound) Error

func (o *UploadArtifactNotFound) Error() string

func (*UploadArtifactNotFound) GetPayload

func (o *UploadArtifactNotFound) GetPayload() interface{}

type UploadArtifactOK

type UploadArtifactOK struct {
}
UploadArtifactOK describes a response with status code 200, with default header values.

A successful response.

func NewUploadArtifactOK

func NewUploadArtifactOK() *UploadArtifactOK

NewUploadArtifactOK creates a UploadArtifactOK with default headers values

func (*UploadArtifactOK) Error

func (o *UploadArtifactOK) Error() string

type UploadArtifactParams

type UploadArtifactParams struct {

	/* Overwrite.

	   File path query params.
	*/
	Overwrite *bool

	/* Owner.

	   Owner of the namespace
	*/
	Owner string

	/* Path.

	   File path query params.
	*/
	Path *string

	/* Uploadfile.

	   The file to upload.
	*/
	Uploadfile runtime.NamedReadCloser

	/* UUID.

	   Unique integer identifier of the entity
	*/
	UUID string

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

UploadArtifactParams contains all the parameters to send to the API endpoint

for the upload artifact operation.

Typically these are written to a http.Request.

func NewUploadArtifactParams

func NewUploadArtifactParams() *UploadArtifactParams

NewUploadArtifactParams creates a new UploadArtifactParams 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 NewUploadArtifactParamsWithContext

func NewUploadArtifactParamsWithContext(ctx context.Context) *UploadArtifactParams

NewUploadArtifactParamsWithContext creates a new UploadArtifactParams object with the ability to set a context for a request.

func NewUploadArtifactParamsWithHTTPClient

func NewUploadArtifactParamsWithHTTPClient(client *http.Client) *UploadArtifactParams

NewUploadArtifactParamsWithHTTPClient creates a new UploadArtifactParams object with the ability to set a custom HTTPClient for a request.

func NewUploadArtifactParamsWithTimeout

func NewUploadArtifactParamsWithTimeout(timeout time.Duration) *UploadArtifactParams

NewUploadArtifactParamsWithTimeout creates a new UploadArtifactParams object with the ability to set a timeout on a request.

func (*UploadArtifactParams) SetContext

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

SetContext adds the context to the upload artifact params

func (*UploadArtifactParams) SetDefaults

func (o *UploadArtifactParams) SetDefaults()

SetDefaults hydrates default values in the upload artifact params (not the query body).

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

func (*UploadArtifactParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload artifact params

func (*UploadArtifactParams) SetOverwrite

func (o *UploadArtifactParams) SetOverwrite(overwrite *bool)

SetOverwrite adds the overwrite to the upload artifact params

func (*UploadArtifactParams) SetOwner

func (o *UploadArtifactParams) SetOwner(owner string)

SetOwner adds the owner to the upload artifact params

func (*UploadArtifactParams) SetPath

func (o *UploadArtifactParams) SetPath(path *string)

SetPath adds the path to the upload artifact params

func (*UploadArtifactParams) SetTimeout

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

SetTimeout adds the timeout to the upload artifact params

func (*UploadArtifactParams) SetUUID

func (o *UploadArtifactParams) SetUUID(uuid string)

SetUUID adds the uuid to the upload artifact params

func (*UploadArtifactParams) SetUploadfile

func (o *UploadArtifactParams) SetUploadfile(uploadfile runtime.NamedReadCloser)

SetUploadfile adds the uploadfile to the upload artifact params

func (*UploadArtifactParams) WithContext

WithContext adds the context to the upload artifact params

func (*UploadArtifactParams) WithDefaults

func (o *UploadArtifactParams) WithDefaults() *UploadArtifactParams

WithDefaults hydrates default values in the upload artifact params (not the query body).

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

func (*UploadArtifactParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upload artifact params

func (*UploadArtifactParams) WithOverwrite

func (o *UploadArtifactParams) WithOverwrite(overwrite *bool) *UploadArtifactParams

WithOverwrite adds the overwrite to the upload artifact params

func (*UploadArtifactParams) WithOwner

func (o *UploadArtifactParams) WithOwner(owner string) *UploadArtifactParams

WithOwner adds the owner to the upload artifact params

func (*UploadArtifactParams) WithPath

func (o *UploadArtifactParams) WithPath(path *string) *UploadArtifactParams

WithPath adds the path to the upload artifact params

func (*UploadArtifactParams) WithTimeout

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

WithTimeout adds the timeout to the upload artifact params

func (*UploadArtifactParams) WithUUID

WithUUID adds the uuid to the upload artifact params

func (*UploadArtifactParams) WithUploadfile

func (o *UploadArtifactParams) WithUploadfile(uploadfile runtime.NamedReadCloser) *UploadArtifactParams

WithUploadfile adds the uploadfile to the upload artifact params

func (*UploadArtifactParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UploadArtifactReader

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

UploadArtifactReader is a Reader for the UploadArtifact structure.

func (*UploadArtifactReader) ReadResponse

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