artifact_controller

package
v0.0.0-...-7b3e9a7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproveArtifactBadRequest

type ApproveArtifactBadRequest struct {
	Payload *models.APIResult
}

ApproveArtifactBadRequest handles this case with default header values.

Bad Request

func NewApproveArtifactBadRequest

func NewApproveArtifactBadRequest() *ApproveArtifactBadRequest

NewApproveArtifactBadRequest creates a ApproveArtifactBadRequest with default headers values

func (*ApproveArtifactBadRequest) Error

func (o *ApproveArtifactBadRequest) Error() string

func (*ApproveArtifactBadRequest) GetPayload

func (o *ApproveArtifactBadRequest) GetPayload() *models.APIResult

type ApproveArtifactConflict

type ApproveArtifactConflict struct {
	Payload *models.APIResult
}

ApproveArtifactConflict handles this case with default header values.

Conflict

func NewApproveArtifactConflict

func NewApproveArtifactConflict() *ApproveArtifactConflict

NewApproveArtifactConflict creates a ApproveArtifactConflict with default headers values

func (*ApproveArtifactConflict) Error

func (o *ApproveArtifactConflict) Error() string

func (*ApproveArtifactConflict) GetPayload

func (o *ApproveArtifactConflict) GetPayload() *models.APIResult

type ApproveArtifactForbidden

type ApproveArtifactForbidden struct {
	Payload *models.APIResult
}

ApproveArtifactForbidden handles this case with default header values.

Forbidden

func NewApproveArtifactForbidden

func NewApproveArtifactForbidden() *ApproveArtifactForbidden

NewApproveArtifactForbidden creates a ApproveArtifactForbidden with default headers values

func (*ApproveArtifactForbidden) Error

func (o *ApproveArtifactForbidden) Error() string

func (*ApproveArtifactForbidden) GetPayload

func (o *ApproveArtifactForbidden) GetPayload() *models.APIResult

type ApproveArtifactInternalServerError

type ApproveArtifactInternalServerError struct {
	Payload *models.APIResult
}

ApproveArtifactInternalServerError handles this case with default header values.

Internal Server Error

func NewApproveArtifactInternalServerError

func NewApproveArtifactInternalServerError() *ApproveArtifactInternalServerError

NewApproveArtifactInternalServerError creates a ApproveArtifactInternalServerError with default headers values

func (*ApproveArtifactInternalServerError) Error

func (*ApproveArtifactInternalServerError) GetPayload

type ApproveArtifactNotFound

type ApproveArtifactNotFound struct {
	Payload *models.APIResult
}

ApproveArtifactNotFound handles this case with default header values.

Not Found

func NewApproveArtifactNotFound

func NewApproveArtifactNotFound() *ApproveArtifactNotFound

NewApproveArtifactNotFound creates a ApproveArtifactNotFound with default headers values

func (*ApproveArtifactNotFound) Error

func (o *ApproveArtifactNotFound) Error() string

func (*ApproveArtifactNotFound) GetPayload

func (o *ApproveArtifactNotFound) GetPayload() *models.APIResult

type ApproveArtifactOK

type ApproveArtifactOK struct {
	Payload *models.APIResultVoid
}

ApproveArtifactOK handles this case with default header values.

OK

func NewApproveArtifactOK

func NewApproveArtifactOK() *ApproveArtifactOK

NewApproveArtifactOK creates a ApproveArtifactOK with default headers values

func (*ApproveArtifactOK) Error

func (o *ApproveArtifactOK) Error() string

func (*ApproveArtifactOK) GetPayload

func (o *ApproveArtifactOK) GetPayload() *models.APIResultVoid

type ApproveArtifactParams

type ApproveArtifactParams struct {

	/*Resource
	  resource

	*/
	Resource *models.ArtifactApproveRequest

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

ApproveArtifactParams contains all the parameters to send to the API endpoint for the approve artifact operation typically these are written to a http.Request

func NewApproveArtifactParams

func NewApproveArtifactParams() *ApproveArtifactParams

NewApproveArtifactParams creates a new ApproveArtifactParams object with the default values initialized.

func NewApproveArtifactParamsWithContext

func NewApproveArtifactParamsWithContext(ctx context.Context) *ApproveArtifactParams

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

func NewApproveArtifactParamsWithHTTPClient

func NewApproveArtifactParamsWithHTTPClient(client *http.Client) *ApproveArtifactParams

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

func NewApproveArtifactParamsWithTimeout

func NewApproveArtifactParamsWithTimeout(timeout time.Duration) *ApproveArtifactParams

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

func (*ApproveArtifactParams) SetContext

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

SetContext adds the context to the approve artifact params

func (*ApproveArtifactParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the approve artifact params

func (*ApproveArtifactParams) SetResource

func (o *ApproveArtifactParams) SetResource(resource *models.ArtifactApproveRequest)

SetResource adds the resource to the approve artifact params

func (*ApproveArtifactParams) SetTimeout

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

SetTimeout adds the timeout to the approve artifact params

func (*ApproveArtifactParams) WithContext

WithContext adds the context to the approve artifact params

func (*ApproveArtifactParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the approve artifact params

func (*ApproveArtifactParams) WithResource

WithResource adds the resource to the approve artifact params

func (*ApproveArtifactParams) WithTimeout

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

WithTimeout adds the timeout to the approve artifact params

func (*ApproveArtifactParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ApproveArtifactReader

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

ApproveArtifactReader is a Reader for the ApproveArtifact structure.

func (*ApproveArtifactReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ApproveArtifactUnauthorized

type ApproveArtifactUnauthorized struct {
	Payload *models.APIResult
}

ApproveArtifactUnauthorized handles this case with default header values.

Unauthorized

func NewApproveArtifactUnauthorized

func NewApproveArtifactUnauthorized() *ApproveArtifactUnauthorized

NewApproveArtifactUnauthorized creates a ApproveArtifactUnauthorized with default headers values

func (*ApproveArtifactUnauthorized) Error

func (*ApproveArtifactUnauthorized) GetPayload

func (o *ApproveArtifactUnauthorized) GetPayload() *models.APIResult

type Client

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

Client for artifact controller API

func (*Client) ApproveArtifact

func (a *Client) ApproveArtifact(params *ApproveArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*ApproveArtifactOK, error)

ApproveArtifact approves the artifact for processing in spite of failing

func (*Client) DeleteArtifact

func (a *Client) DeleteArtifact(params *DeleteArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteArtifactOK, error)

DeleteArtifact deletes

func (*Client) PurgeArtifact

func (a *Client) PurgeArtifact(params *PurgeArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*PurgeArtifactOK, error)

PurgeArtifact purges the specified artifact from the system to recover space without affecting issue metrics use the delete operation instead if you want to completely revert all traces of an artifact

func (*Client) ReadArtifact

func (a *Client) ReadArtifact(params *ReadArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*ReadArtifactOK, error)

ReadArtifact reads

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ApproveArtifact(params *ApproveArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*ApproveArtifactOK, error)

	DeleteArtifact(params *DeleteArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteArtifactOK, error)

	PurgeArtifact(params *PurgeArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*PurgeArtifactOK, error)

	ReadArtifact(params *ReadArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*ReadArtifactOK, 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 controller API client.

type DeleteArtifactBadRequest

type DeleteArtifactBadRequest struct {
	Payload *models.APIResult
}

DeleteArtifactBadRequest handles this case with default header values.

Bad Request

func NewDeleteArtifactBadRequest

func NewDeleteArtifactBadRequest() *DeleteArtifactBadRequest

NewDeleteArtifactBadRequest creates a DeleteArtifactBadRequest with default headers values

func (*DeleteArtifactBadRequest) Error

func (o *DeleteArtifactBadRequest) Error() string

func (*DeleteArtifactBadRequest) GetPayload

func (o *DeleteArtifactBadRequest) GetPayload() *models.APIResult

type DeleteArtifactConflict

type DeleteArtifactConflict struct {
	Payload *models.APIResult
}

DeleteArtifactConflict handles this case with default header values.

Conflict

func NewDeleteArtifactConflict

func NewDeleteArtifactConflict() *DeleteArtifactConflict

NewDeleteArtifactConflict creates a DeleteArtifactConflict with default headers values

func (*DeleteArtifactConflict) Error

func (o *DeleteArtifactConflict) Error() string

func (*DeleteArtifactConflict) GetPayload

func (o *DeleteArtifactConflict) GetPayload() *models.APIResult

type DeleteArtifactForbidden

type DeleteArtifactForbidden struct {
	Payload *models.APIResult
}

DeleteArtifactForbidden handles this case with default header values.

Forbidden

func NewDeleteArtifactForbidden

func NewDeleteArtifactForbidden() *DeleteArtifactForbidden

NewDeleteArtifactForbidden creates a DeleteArtifactForbidden with default headers values

func (*DeleteArtifactForbidden) Error

func (o *DeleteArtifactForbidden) Error() string

func (*DeleteArtifactForbidden) GetPayload

func (o *DeleteArtifactForbidden) GetPayload() *models.APIResult

type DeleteArtifactInternalServerError

type DeleteArtifactInternalServerError struct {
	Payload *models.APIResult
}

DeleteArtifactInternalServerError handles this case with default header values.

Internal Server Error

func NewDeleteArtifactInternalServerError

func NewDeleteArtifactInternalServerError() *DeleteArtifactInternalServerError

NewDeleteArtifactInternalServerError creates a DeleteArtifactInternalServerError with default headers values

func (*DeleteArtifactInternalServerError) Error

func (*DeleteArtifactInternalServerError) GetPayload

type DeleteArtifactNotFound

type DeleteArtifactNotFound struct {
	Payload *models.APIResult
}

DeleteArtifactNotFound handles this case with default header values.

Not Found

func NewDeleteArtifactNotFound

func NewDeleteArtifactNotFound() *DeleteArtifactNotFound

NewDeleteArtifactNotFound creates a DeleteArtifactNotFound with default headers values

func (*DeleteArtifactNotFound) Error

func (o *DeleteArtifactNotFound) Error() string

func (*DeleteArtifactNotFound) GetPayload

func (o *DeleteArtifactNotFound) GetPayload() *models.APIResult

type DeleteArtifactOK

type DeleteArtifactOK struct {
	Payload *models.APIResultVoid
}

DeleteArtifactOK handles this case with default header values.

OK

func NewDeleteArtifactOK

func NewDeleteArtifactOK() *DeleteArtifactOK

NewDeleteArtifactOK creates a DeleteArtifactOK with default headers values

func (*DeleteArtifactOK) Error

func (o *DeleteArtifactOK) Error() string

func (*DeleteArtifactOK) GetPayload

func (o *DeleteArtifactOK) GetPayload() *models.APIResultVoid

type DeleteArtifactParams

type DeleteArtifactParams struct {

	/*ID
	  id

	*/
	ID int64

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

DeleteArtifactParams contains all the parameters to send to the API endpoint for the delete artifact operation typically these are written to a http.Request

func NewDeleteArtifactParams

func NewDeleteArtifactParams() *DeleteArtifactParams

NewDeleteArtifactParams creates a new DeleteArtifactParams object with the default values initialized.

func NewDeleteArtifactParamsWithContext

func NewDeleteArtifactParamsWithContext(ctx context.Context) *DeleteArtifactParams

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

func NewDeleteArtifactParamsWithHTTPClient

func NewDeleteArtifactParamsWithHTTPClient(client *http.Client) *DeleteArtifactParams

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

func NewDeleteArtifactParamsWithTimeout

func NewDeleteArtifactParamsWithTimeout(timeout time.Duration) *DeleteArtifactParams

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

func (*DeleteArtifactParams) SetContext

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

SetContext adds the context to the delete artifact params

func (*DeleteArtifactParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete artifact params

func (*DeleteArtifactParams) SetID

func (o *DeleteArtifactParams) SetID(id int64)

SetID adds the id to the delete artifact params

func (*DeleteArtifactParams) SetTimeout

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

SetTimeout adds the timeout to the delete artifact params

func (*DeleteArtifactParams) WithContext

WithContext adds the context to the delete artifact params

func (*DeleteArtifactParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete artifact params

func (*DeleteArtifactParams) WithID

WithID adds the id to the delete artifact params

func (*DeleteArtifactParams) WithTimeout

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

WithTimeout adds the timeout to the delete artifact params

func (*DeleteArtifactParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteArtifactReader

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

DeleteArtifactReader is a Reader for the DeleteArtifact structure.

func (*DeleteArtifactReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteArtifactUnauthorized

type DeleteArtifactUnauthorized struct {
	Payload *models.APIResult
}

DeleteArtifactUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteArtifactUnauthorized

func NewDeleteArtifactUnauthorized() *DeleteArtifactUnauthorized

NewDeleteArtifactUnauthorized creates a DeleteArtifactUnauthorized with default headers values

func (*DeleteArtifactUnauthorized) Error

func (*DeleteArtifactUnauthorized) GetPayload

func (o *DeleteArtifactUnauthorized) GetPayload() *models.APIResult

type PurgeArtifactBadRequest

type PurgeArtifactBadRequest struct {
	Payload *models.APIResult
}

PurgeArtifactBadRequest handles this case with default header values.

Bad Request

func NewPurgeArtifactBadRequest

func NewPurgeArtifactBadRequest() *PurgeArtifactBadRequest

NewPurgeArtifactBadRequest creates a PurgeArtifactBadRequest with default headers values

func (*PurgeArtifactBadRequest) Error

func (o *PurgeArtifactBadRequest) Error() string

func (*PurgeArtifactBadRequest) GetPayload

func (o *PurgeArtifactBadRequest) GetPayload() *models.APIResult

type PurgeArtifactConflict

type PurgeArtifactConflict struct {
	Payload *models.APIResult
}

PurgeArtifactConflict handles this case with default header values.

Conflict

func NewPurgeArtifactConflict

func NewPurgeArtifactConflict() *PurgeArtifactConflict

NewPurgeArtifactConflict creates a PurgeArtifactConflict with default headers values

func (*PurgeArtifactConflict) Error

func (o *PurgeArtifactConflict) Error() string

func (*PurgeArtifactConflict) GetPayload

func (o *PurgeArtifactConflict) GetPayload() *models.APIResult

type PurgeArtifactForbidden

type PurgeArtifactForbidden struct {
	Payload *models.APIResult
}

PurgeArtifactForbidden handles this case with default header values.

Forbidden

func NewPurgeArtifactForbidden

func NewPurgeArtifactForbidden() *PurgeArtifactForbidden

NewPurgeArtifactForbidden creates a PurgeArtifactForbidden with default headers values

func (*PurgeArtifactForbidden) Error

func (o *PurgeArtifactForbidden) Error() string

func (*PurgeArtifactForbidden) GetPayload

func (o *PurgeArtifactForbidden) GetPayload() *models.APIResult

type PurgeArtifactInternalServerError

type PurgeArtifactInternalServerError struct {
	Payload *models.APIResult
}

PurgeArtifactInternalServerError handles this case with default header values.

Internal Server Error

func NewPurgeArtifactInternalServerError

func NewPurgeArtifactInternalServerError() *PurgeArtifactInternalServerError

NewPurgeArtifactInternalServerError creates a PurgeArtifactInternalServerError with default headers values

func (*PurgeArtifactInternalServerError) Error

func (*PurgeArtifactInternalServerError) GetPayload

type PurgeArtifactNotFound

type PurgeArtifactNotFound struct {
	Payload *models.APIResult
}

PurgeArtifactNotFound handles this case with default header values.

Not Found

func NewPurgeArtifactNotFound

func NewPurgeArtifactNotFound() *PurgeArtifactNotFound

NewPurgeArtifactNotFound creates a PurgeArtifactNotFound with default headers values

func (*PurgeArtifactNotFound) Error

func (o *PurgeArtifactNotFound) Error() string

func (*PurgeArtifactNotFound) GetPayload

func (o *PurgeArtifactNotFound) GetPayload() *models.APIResult

type PurgeArtifactOK

type PurgeArtifactOK struct {
	Payload *models.APIResultVoid
}

PurgeArtifactOK handles this case with default header values.

OK

func NewPurgeArtifactOK

func NewPurgeArtifactOK() *PurgeArtifactOK

NewPurgeArtifactOK creates a PurgeArtifactOK with default headers values

func (*PurgeArtifactOK) Error

func (o *PurgeArtifactOK) Error() string

func (*PurgeArtifactOK) GetPayload

func (o *PurgeArtifactOK) GetPayload() *models.APIResultVoid

type PurgeArtifactParams

type PurgeArtifactParams struct {

	/*Resource
	  resource

	*/
	Resource *models.ArtifactPurgeRequest

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

PurgeArtifactParams contains all the parameters to send to the API endpoint for the purge artifact operation typically these are written to a http.Request

func NewPurgeArtifactParams

func NewPurgeArtifactParams() *PurgeArtifactParams

NewPurgeArtifactParams creates a new PurgeArtifactParams object with the default values initialized.

func NewPurgeArtifactParamsWithContext

func NewPurgeArtifactParamsWithContext(ctx context.Context) *PurgeArtifactParams

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

func NewPurgeArtifactParamsWithHTTPClient

func NewPurgeArtifactParamsWithHTTPClient(client *http.Client) *PurgeArtifactParams

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

func NewPurgeArtifactParamsWithTimeout

func NewPurgeArtifactParamsWithTimeout(timeout time.Duration) *PurgeArtifactParams

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

func (*PurgeArtifactParams) SetContext

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

SetContext adds the context to the purge artifact params

func (*PurgeArtifactParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the purge artifact params

func (*PurgeArtifactParams) SetResource

func (o *PurgeArtifactParams) SetResource(resource *models.ArtifactPurgeRequest)

SetResource adds the resource to the purge artifact params

func (*PurgeArtifactParams) SetTimeout

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

SetTimeout adds the timeout to the purge artifact params

func (*PurgeArtifactParams) WithContext

WithContext adds the context to the purge artifact params

func (*PurgeArtifactParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the purge artifact params

func (*PurgeArtifactParams) WithResource

WithResource adds the resource to the purge artifact params

func (*PurgeArtifactParams) WithTimeout

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

WithTimeout adds the timeout to the purge artifact params

func (*PurgeArtifactParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PurgeArtifactReader

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

PurgeArtifactReader is a Reader for the PurgeArtifact structure.

func (*PurgeArtifactReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PurgeArtifactUnauthorized

type PurgeArtifactUnauthorized struct {
	Payload *models.APIResult
}

PurgeArtifactUnauthorized handles this case with default header values.

Unauthorized

func NewPurgeArtifactUnauthorized

func NewPurgeArtifactUnauthorized() *PurgeArtifactUnauthorized

NewPurgeArtifactUnauthorized creates a PurgeArtifactUnauthorized with default headers values

func (*PurgeArtifactUnauthorized) Error

func (o *PurgeArtifactUnauthorized) Error() string

func (*PurgeArtifactUnauthorized) GetPayload

func (o *PurgeArtifactUnauthorized) GetPayload() *models.APIResult

type ReadArtifactBadRequest

type ReadArtifactBadRequest struct {
	Payload *models.APIResult
}

ReadArtifactBadRequest handles this case with default header values.

Bad Request

func NewReadArtifactBadRequest

func NewReadArtifactBadRequest() *ReadArtifactBadRequest

NewReadArtifactBadRequest creates a ReadArtifactBadRequest with default headers values

func (*ReadArtifactBadRequest) Error

func (o *ReadArtifactBadRequest) Error() string

func (*ReadArtifactBadRequest) GetPayload

func (o *ReadArtifactBadRequest) GetPayload() *models.APIResult

type ReadArtifactConflict

type ReadArtifactConflict struct {
	Payload *models.APIResult
}

ReadArtifactConflict handles this case with default header values.

Conflict

func NewReadArtifactConflict

func NewReadArtifactConflict() *ReadArtifactConflict

NewReadArtifactConflict creates a ReadArtifactConflict with default headers values

func (*ReadArtifactConflict) Error

func (o *ReadArtifactConflict) Error() string

func (*ReadArtifactConflict) GetPayload

func (o *ReadArtifactConflict) GetPayload() *models.APIResult

type ReadArtifactForbidden

type ReadArtifactForbidden struct {
	Payload *models.APIResult
}

ReadArtifactForbidden handles this case with default header values.

Forbidden

func NewReadArtifactForbidden

func NewReadArtifactForbidden() *ReadArtifactForbidden

NewReadArtifactForbidden creates a ReadArtifactForbidden with default headers values

func (*ReadArtifactForbidden) Error

func (o *ReadArtifactForbidden) Error() string

func (*ReadArtifactForbidden) GetPayload

func (o *ReadArtifactForbidden) GetPayload() *models.APIResult

type ReadArtifactInternalServerError

type ReadArtifactInternalServerError struct {
	Payload *models.APIResult
}

ReadArtifactInternalServerError handles this case with default header values.

Internal Server Error

func NewReadArtifactInternalServerError

func NewReadArtifactInternalServerError() *ReadArtifactInternalServerError

NewReadArtifactInternalServerError creates a ReadArtifactInternalServerError with default headers values

func (*ReadArtifactInternalServerError) Error

func (*ReadArtifactInternalServerError) GetPayload

type ReadArtifactNotFound

type ReadArtifactNotFound struct {
	Payload *models.APIResult
}

ReadArtifactNotFound handles this case with default header values.

Not Found

func NewReadArtifactNotFound

func NewReadArtifactNotFound() *ReadArtifactNotFound

NewReadArtifactNotFound creates a ReadArtifactNotFound with default headers values

func (*ReadArtifactNotFound) Error

func (o *ReadArtifactNotFound) Error() string

func (*ReadArtifactNotFound) GetPayload

func (o *ReadArtifactNotFound) GetPayload() *models.APIResult

type ReadArtifactOK

type ReadArtifactOK struct {
	Payload *models.APIResultArtifact
}

ReadArtifactOK handles this case with default header values.

OK

func NewReadArtifactOK

func NewReadArtifactOK() *ReadArtifactOK

NewReadArtifactOK creates a ReadArtifactOK with default headers values

func (*ReadArtifactOK) Error

func (o *ReadArtifactOK) Error() string

func (*ReadArtifactOK) GetPayload

func (o *ReadArtifactOK) GetPayload() *models.APIResultArtifact

type ReadArtifactParams

type ReadArtifactParams struct {

	/*Embed
	  Fields to embed

	*/
	Embed *string
	/*Fields
	  Output fields

	*/
	Fields *string
	/*ID
	  id

	*/
	ID int64

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

ReadArtifactParams contains all the parameters to send to the API endpoint for the read artifact operation typically these are written to a http.Request

func NewReadArtifactParams

func NewReadArtifactParams() *ReadArtifactParams

NewReadArtifactParams creates a new ReadArtifactParams object with the default values initialized.

func NewReadArtifactParamsWithContext

func NewReadArtifactParamsWithContext(ctx context.Context) *ReadArtifactParams

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

func NewReadArtifactParamsWithHTTPClient

func NewReadArtifactParamsWithHTTPClient(client *http.Client) *ReadArtifactParams

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

func NewReadArtifactParamsWithTimeout

func NewReadArtifactParamsWithTimeout(timeout time.Duration) *ReadArtifactParams

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

func (*ReadArtifactParams) SetContext

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

SetContext adds the context to the read artifact params

func (*ReadArtifactParams) SetEmbed

func (o *ReadArtifactParams) SetEmbed(embed *string)

SetEmbed adds the embed to the read artifact params

func (*ReadArtifactParams) SetFields

func (o *ReadArtifactParams) SetFields(fields *string)

SetFields adds the fields to the read artifact params

func (*ReadArtifactParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read artifact params

func (*ReadArtifactParams) SetID

func (o *ReadArtifactParams) SetID(id int64)

SetID adds the id to the read artifact params

func (*ReadArtifactParams) SetTimeout

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

SetTimeout adds the timeout to the read artifact params

func (*ReadArtifactParams) WithContext

WithContext adds the context to the read artifact params

func (*ReadArtifactParams) WithEmbed

func (o *ReadArtifactParams) WithEmbed(embed *string) *ReadArtifactParams

WithEmbed adds the embed to the read artifact params

func (*ReadArtifactParams) WithFields

func (o *ReadArtifactParams) WithFields(fields *string) *ReadArtifactParams

WithFields adds the fields to the read artifact params

func (*ReadArtifactParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read artifact params

func (*ReadArtifactParams) WithID

WithID adds the id to the read artifact params

func (*ReadArtifactParams) WithTimeout

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

WithTimeout adds the timeout to the read artifact params

func (*ReadArtifactParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadArtifactReader

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

ReadArtifactReader is a Reader for the ReadArtifact structure.

func (*ReadArtifactReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadArtifactUnauthorized

type ReadArtifactUnauthorized struct {
	Payload *models.APIResult
}

ReadArtifactUnauthorized handles this case with default header values.

Unauthorized

func NewReadArtifactUnauthorized

func NewReadArtifactUnauthorized() *ReadArtifactUnauthorized

NewReadArtifactUnauthorized creates a ReadArtifactUnauthorized with default headers values

func (*ReadArtifactUnauthorized) Error

func (o *ReadArtifactUnauthorized) Error() string

func (*ReadArtifactUnauthorized) GetPayload

func (o *ReadArtifactUnauthorized) GetPayload() *models.APIResult

Jump to

Keyboard shortcuts

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