artifact

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 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 artifact API

func (*Client) GetAddition

func (a *Client) GetAddition(params *GetAdditionParams, authInfo runtime.ClientAuthInfoWriter) (*GetAdditionOK, error)

GetAddition gets the addition of the specific artifact

Get the addition of the artifact specified by the reference under the project and repository.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetAddition(params *GetAdditionParams, authInfo runtime.ClientAuthInfoWriter) (*GetAdditionOK, 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 artifact API client.

type GetAdditionBadRequest

type GetAdditionBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetAdditionBadRequest handles this case with default header values.

Bad request

func NewGetAdditionBadRequest

func NewGetAdditionBadRequest() *GetAdditionBadRequest

NewGetAdditionBadRequest creates a GetAdditionBadRequest with default headers values

func (*GetAdditionBadRequest) Error

func (o *GetAdditionBadRequest) Error() string

func (*GetAdditionBadRequest) GetPayload

func (o *GetAdditionBadRequest) GetPayload() *models.Errors

type GetAdditionForbidden

type GetAdditionForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetAdditionForbidden handles this case with default header values.

Forbidden

func NewGetAdditionForbidden

func NewGetAdditionForbidden() *GetAdditionForbidden

NewGetAdditionForbidden creates a GetAdditionForbidden with default headers values

func (*GetAdditionForbidden) Error

func (o *GetAdditionForbidden) Error() string

func (*GetAdditionForbidden) GetPayload

func (o *GetAdditionForbidden) GetPayload() *models.Errors

type GetAdditionInternalServerError

type GetAdditionInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetAdditionInternalServerError handles this case with default header values.

Internal server error

func NewGetAdditionInternalServerError

func NewGetAdditionInternalServerError() *GetAdditionInternalServerError

NewGetAdditionInternalServerError creates a GetAdditionInternalServerError with default headers values

func (*GetAdditionInternalServerError) Error

func (*GetAdditionInternalServerError) GetPayload

func (o *GetAdditionInternalServerError) GetPayload() *models.Errors

type GetAdditionNotFound

type GetAdditionNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetAdditionNotFound handles this case with default header values.

Not found

func NewGetAdditionNotFound

func NewGetAdditionNotFound() *GetAdditionNotFound

NewGetAdditionNotFound creates a GetAdditionNotFound with default headers values

func (*GetAdditionNotFound) Error

func (o *GetAdditionNotFound) Error() string

func (*GetAdditionNotFound) GetPayload

func (o *GetAdditionNotFound) GetPayload() *models.Errors

type GetAdditionOK

type GetAdditionOK struct {
	/*The content type of the addition
	 */
	ContentType string

	Payload interface{}
}

GetAdditionOK handles this case with default header values.

Success

func NewGetAdditionOK

func NewGetAdditionOK() *GetAdditionOK

NewGetAdditionOK creates a GetAdditionOK with default headers values

func (*GetAdditionOK) Error

func (o *GetAdditionOK) Error() string

func (*GetAdditionOK) GetPayload

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

type GetAdditionParams

type GetAdditionParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Addition
	  The type of addition.

	*/
	Addition string
	/*ProjectName
	  The name of the project

	*/
	ProjectName string
	/*Reference
	  The reference of the artifact, can be digest or tag

	*/
	Reference string
	/*RepositoryName
	  The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb

	*/
	RepositoryName string

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

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

func NewGetAdditionParams

func NewGetAdditionParams() *GetAdditionParams

NewGetAdditionParams creates a new GetAdditionParams object with the default values initialized.

func NewGetAdditionParamsWithContext

func NewGetAdditionParamsWithContext(ctx context.Context) *GetAdditionParams

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

func NewGetAdditionParamsWithHTTPClient

func NewGetAdditionParamsWithHTTPClient(client *http.Client) *GetAdditionParams

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

func NewGetAdditionParamsWithTimeout

func NewGetAdditionParamsWithTimeout(timeout time.Duration) *GetAdditionParams

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

func (*GetAdditionParams) SetAddition

func (o *GetAdditionParams) SetAddition(addition string)

SetAddition adds the addition to the get addition params

func (*GetAdditionParams) SetContext

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

SetContext adds the context to the get addition params

func (*GetAdditionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get addition params

func (*GetAdditionParams) SetProjectName

func (o *GetAdditionParams) SetProjectName(projectName string)

SetProjectName adds the projectName to the get addition params

func (*GetAdditionParams) SetReference

func (o *GetAdditionParams) SetReference(reference string)

SetReference adds the reference to the get addition params

func (*GetAdditionParams) SetRepositoryName

func (o *GetAdditionParams) SetRepositoryName(repositoryName string)

SetRepositoryName adds the repositoryName to the get addition params

func (*GetAdditionParams) SetTimeout

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

SetTimeout adds the timeout to the get addition params

func (*GetAdditionParams) SetXRequestID

func (o *GetAdditionParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get addition params

func (*GetAdditionParams) WithAddition

func (o *GetAdditionParams) WithAddition(addition string) *GetAdditionParams

WithAddition adds the addition to the get addition params

func (*GetAdditionParams) WithContext

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

WithContext adds the context to the get addition params

func (*GetAdditionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get addition params

func (*GetAdditionParams) WithProjectName

func (o *GetAdditionParams) WithProjectName(projectName string) *GetAdditionParams

WithProjectName adds the projectName to the get addition params

func (*GetAdditionParams) WithReference

func (o *GetAdditionParams) WithReference(reference string) *GetAdditionParams

WithReference adds the reference to the get addition params

func (*GetAdditionParams) WithRepositoryName

func (o *GetAdditionParams) WithRepositoryName(repositoryName string) *GetAdditionParams

WithRepositoryName adds the repositoryName to the get addition params

func (*GetAdditionParams) WithTimeout

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

WithTimeout adds the timeout to the get addition params

func (*GetAdditionParams) WithXRequestID

func (o *GetAdditionParams) WithXRequestID(xRequestID *string) *GetAdditionParams

WithXRequestID adds the xRequestID to the get addition params

func (*GetAdditionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAdditionReader

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

GetAdditionReader is a Reader for the GetAddition structure.

func (*GetAdditionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAdditionUnauthorized

type GetAdditionUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetAdditionUnauthorized handles this case with default header values.

Unauthorized

func NewGetAdditionUnauthorized

func NewGetAdditionUnauthorized() *GetAdditionUnauthorized

NewGetAdditionUnauthorized creates a GetAdditionUnauthorized with default headers values

func (*GetAdditionUnauthorized) Error

func (o *GetAdditionUnauthorized) Error() string

func (*GetAdditionUnauthorized) GetPayload

func (o *GetAdditionUnauthorized) GetPayload() *models.Errors

Jump to

Keyboard shortcuts

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