repository

package
v5.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 11 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 repository API

func (*Client) DeleteRepository

func (a *Client) DeleteRepository(params *DeleteRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRepositoryOK, error)

DeleteRepository deletes repository

Delete the repository specified by name

func (*Client) GetRepository

func (a *Client) GetRepository(params *GetRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepositoryOK, error)

GetRepository gets repository

Get the repository specified by name

func (*Client) ListAllRepositories

func (a *Client) ListAllRepositories(params *ListAllRepositoriesParams, authInfo runtime.ClientAuthInfoWriter) (*ListAllRepositoriesOK, error)

ListAllRepositories lists all authorized repositories

List all authorized repositories

func (*Client) ListRepositories

func (a *Client) ListRepositories(params *ListRepositoriesParams, authInfo runtime.ClientAuthInfoWriter) (*ListRepositoriesOK, error)

ListRepositories lists repositories

List repositories of the specified project

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRepository

func (a *Client) UpdateRepository(params *UpdateRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRepositoryOK, error)

UpdateRepository updates repository

Update the repository specified by name

type ClientService

type ClientService interface {
	DeleteRepository(params *DeleteRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRepositoryOK, error)

	GetRepository(params *GetRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepositoryOK, error)

	ListAllRepositories(params *ListAllRepositoriesParams, authInfo runtime.ClientAuthInfoWriter) (*ListAllRepositoriesOK, error)

	ListRepositories(params *ListRepositoriesParams, authInfo runtime.ClientAuthInfoWriter) (*ListRepositoriesOK, error)

	UpdateRepository(params *UpdateRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRepositoryOK, 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 repository API client.

type DeleteRepositoryBadRequest

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

	Payload *model.Errors
}

DeleteRepositoryBadRequest handles this case with default header values.

Bad request

func NewDeleteRepositoryBadRequest

func NewDeleteRepositoryBadRequest() *DeleteRepositoryBadRequest

NewDeleteRepositoryBadRequest creates a DeleteRepositoryBadRequest with default headers values

func (*DeleteRepositoryBadRequest) Error

func (*DeleteRepositoryBadRequest) GetPayload

func (o *DeleteRepositoryBadRequest) GetPayload() *model.Errors

type DeleteRepositoryForbidden

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

	Payload *model.Errors
}

DeleteRepositoryForbidden handles this case with default header values.

Forbidden

func NewDeleteRepositoryForbidden

func NewDeleteRepositoryForbidden() *DeleteRepositoryForbidden

NewDeleteRepositoryForbidden creates a DeleteRepositoryForbidden with default headers values

func (*DeleteRepositoryForbidden) Error

func (o *DeleteRepositoryForbidden) Error() string

func (*DeleteRepositoryForbidden) GetPayload

func (o *DeleteRepositoryForbidden) GetPayload() *model.Errors

type DeleteRepositoryInternalServerError

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

	Payload *model.Errors
}

DeleteRepositoryInternalServerError handles this case with default header values.

Internal server error

func NewDeleteRepositoryInternalServerError

func NewDeleteRepositoryInternalServerError() *DeleteRepositoryInternalServerError

NewDeleteRepositoryInternalServerError creates a DeleteRepositoryInternalServerError with default headers values

func (*DeleteRepositoryInternalServerError) Error

func (*DeleteRepositoryInternalServerError) GetPayload

type DeleteRepositoryNotFound

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

	Payload *model.Errors
}

DeleteRepositoryNotFound handles this case with default header values.

Not found

func NewDeleteRepositoryNotFound

func NewDeleteRepositoryNotFound() *DeleteRepositoryNotFound

NewDeleteRepositoryNotFound creates a DeleteRepositoryNotFound with default headers values

func (*DeleteRepositoryNotFound) Error

func (o *DeleteRepositoryNotFound) Error() string

func (*DeleteRepositoryNotFound) GetPayload

func (o *DeleteRepositoryNotFound) GetPayload() *model.Errors

type DeleteRepositoryOK

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

DeleteRepositoryOK handles this case with default header values.

Success

func NewDeleteRepositoryOK

func NewDeleteRepositoryOK() *DeleteRepositoryOK

NewDeleteRepositoryOK creates a DeleteRepositoryOK with default headers values

func (*DeleteRepositoryOK) Error

func (o *DeleteRepositoryOK) Error() string

type DeleteRepositoryParams

type DeleteRepositoryParams struct {

	/*XRequestID
	  An unique ID for the request

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

	*/
	ProjectName 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
}

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

func NewDeleteRepositoryParams

func NewDeleteRepositoryParams() *DeleteRepositoryParams

NewDeleteRepositoryParams creates a new DeleteRepositoryParams object with the default values initialized.

func NewDeleteRepositoryParamsWithContext

func NewDeleteRepositoryParamsWithContext(ctx context.Context) *DeleteRepositoryParams

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

func NewDeleteRepositoryParamsWithHTTPClient

func NewDeleteRepositoryParamsWithHTTPClient(client *http.Client) *DeleteRepositoryParams

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

func NewDeleteRepositoryParamsWithTimeout

func NewDeleteRepositoryParamsWithTimeout(timeout time.Duration) *DeleteRepositoryParams

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

func (*DeleteRepositoryParams) SetContext

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

SetContext adds the context to the delete repository params

func (*DeleteRepositoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete repository params

func (*DeleteRepositoryParams) SetProjectName

func (o *DeleteRepositoryParams) SetProjectName(projectName string)

SetProjectName adds the projectName to the delete repository params

func (*DeleteRepositoryParams) SetRepositoryName

func (o *DeleteRepositoryParams) SetRepositoryName(repositoryName string)

SetRepositoryName adds the repositoryName to the delete repository params

func (*DeleteRepositoryParams) SetTimeout

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

SetTimeout adds the timeout to the delete repository params

func (*DeleteRepositoryParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the delete repository params

func (*DeleteRepositoryParams) WithContext

WithContext adds the context to the delete repository params

func (*DeleteRepositoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete repository params

func (*DeleteRepositoryParams) WithProjectName

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

WithProjectName adds the projectName to the delete repository params

func (*DeleteRepositoryParams) WithRepositoryName

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

WithRepositoryName adds the repositoryName to the delete repository params

func (*DeleteRepositoryParams) WithTimeout

WithTimeout adds the timeout to the delete repository params

func (*DeleteRepositoryParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the delete repository params

func (*DeleteRepositoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRepositoryReader

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

DeleteRepositoryReader is a Reader for the DeleteRepository structure.

func (*DeleteRepositoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRepositoryUnauthorized

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

	Payload *model.Errors
}

DeleteRepositoryUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteRepositoryUnauthorized

func NewDeleteRepositoryUnauthorized() *DeleteRepositoryUnauthorized

NewDeleteRepositoryUnauthorized creates a DeleteRepositoryUnauthorized with default headers values

func (*DeleteRepositoryUnauthorized) Error

func (*DeleteRepositoryUnauthorized) GetPayload

func (o *DeleteRepositoryUnauthorized) GetPayload() *model.Errors

type GetRepositoryBadRequest

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

	Payload *model.Errors
}

GetRepositoryBadRequest handles this case with default header values.

Bad request

func NewGetRepositoryBadRequest

func NewGetRepositoryBadRequest() *GetRepositoryBadRequest

NewGetRepositoryBadRequest creates a GetRepositoryBadRequest with default headers values

func (*GetRepositoryBadRequest) Error

func (o *GetRepositoryBadRequest) Error() string

func (*GetRepositoryBadRequest) GetPayload

func (o *GetRepositoryBadRequest) GetPayload() *model.Errors

type GetRepositoryForbidden

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

	Payload *model.Errors
}

GetRepositoryForbidden handles this case with default header values.

Forbidden

func NewGetRepositoryForbidden

func NewGetRepositoryForbidden() *GetRepositoryForbidden

NewGetRepositoryForbidden creates a GetRepositoryForbidden with default headers values

func (*GetRepositoryForbidden) Error

func (o *GetRepositoryForbidden) Error() string

func (*GetRepositoryForbidden) GetPayload

func (o *GetRepositoryForbidden) GetPayload() *model.Errors

type GetRepositoryInternalServerError

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

	Payload *model.Errors
}

GetRepositoryInternalServerError handles this case with default header values.

Internal server error

func NewGetRepositoryInternalServerError

func NewGetRepositoryInternalServerError() *GetRepositoryInternalServerError

NewGetRepositoryInternalServerError creates a GetRepositoryInternalServerError with default headers values

func (*GetRepositoryInternalServerError) Error

func (*GetRepositoryInternalServerError) GetPayload

type GetRepositoryNotFound

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

	Payload *model.Errors
}

GetRepositoryNotFound handles this case with default header values.

Not found

func NewGetRepositoryNotFound

func NewGetRepositoryNotFound() *GetRepositoryNotFound

NewGetRepositoryNotFound creates a GetRepositoryNotFound with default headers values

func (*GetRepositoryNotFound) Error

func (o *GetRepositoryNotFound) Error() string

func (*GetRepositoryNotFound) GetPayload

func (o *GetRepositoryNotFound) GetPayload() *model.Errors

type GetRepositoryOK

type GetRepositoryOK struct {
	Payload *model.Repository
}

GetRepositoryOK handles this case with default header values.

Success

func NewGetRepositoryOK

func NewGetRepositoryOK() *GetRepositoryOK

NewGetRepositoryOK creates a GetRepositoryOK with default headers values

func (*GetRepositoryOK) Error

func (o *GetRepositoryOK) Error() string

func (*GetRepositoryOK) GetPayload

func (o *GetRepositoryOK) GetPayload() *model.Repository

type GetRepositoryParams

type GetRepositoryParams struct {

	/*XRequestID
	  An unique ID for the request

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

	*/
	ProjectName 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
}

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

func NewGetRepositoryParams

func NewGetRepositoryParams() *GetRepositoryParams

NewGetRepositoryParams creates a new GetRepositoryParams object with the default values initialized.

func NewGetRepositoryParamsWithContext

func NewGetRepositoryParamsWithContext(ctx context.Context) *GetRepositoryParams

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

func NewGetRepositoryParamsWithHTTPClient

func NewGetRepositoryParamsWithHTTPClient(client *http.Client) *GetRepositoryParams

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

func NewGetRepositoryParamsWithTimeout

func NewGetRepositoryParamsWithTimeout(timeout time.Duration) *GetRepositoryParams

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

func (*GetRepositoryParams) SetContext

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

SetContext adds the context to the get repository params

func (*GetRepositoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get repository params

func (*GetRepositoryParams) SetProjectName

func (o *GetRepositoryParams) SetProjectName(projectName string)

SetProjectName adds the projectName to the get repository params

func (*GetRepositoryParams) SetRepositoryName

func (o *GetRepositoryParams) SetRepositoryName(repositoryName string)

SetRepositoryName adds the repositoryName to the get repository params

func (*GetRepositoryParams) SetTimeout

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

SetTimeout adds the timeout to the get repository params

func (*GetRepositoryParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get repository params

func (*GetRepositoryParams) WithContext

WithContext adds the context to the get repository params

func (*GetRepositoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get repository params

func (*GetRepositoryParams) WithProjectName

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

WithProjectName adds the projectName to the get repository params

func (*GetRepositoryParams) WithRepositoryName

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

WithRepositoryName adds the repositoryName to the get repository params

func (*GetRepositoryParams) WithTimeout

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

WithTimeout adds the timeout to the get repository params

func (*GetRepositoryParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get repository params

func (*GetRepositoryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRepositoryReader

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

GetRepositoryReader is a Reader for the GetRepository structure.

func (*GetRepositoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRepositoryUnauthorized

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

	Payload *model.Errors
}

GetRepositoryUnauthorized handles this case with default header values.

Unauthorized

func NewGetRepositoryUnauthorized

func NewGetRepositoryUnauthorized() *GetRepositoryUnauthorized

NewGetRepositoryUnauthorized creates a GetRepositoryUnauthorized with default headers values

func (*GetRepositoryUnauthorized) Error

func (o *GetRepositoryUnauthorized) Error() string

func (*GetRepositoryUnauthorized) GetPayload

func (o *GetRepositoryUnauthorized) GetPayload() *model.Errors

type ListAllRepositoriesBadRequest

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

	Payload *model.Errors
}

ListAllRepositoriesBadRequest handles this case with default header values.

Bad request

func NewListAllRepositoriesBadRequest

func NewListAllRepositoriesBadRequest() *ListAllRepositoriesBadRequest

NewListAllRepositoriesBadRequest creates a ListAllRepositoriesBadRequest with default headers values

func (*ListAllRepositoriesBadRequest) Error

func (*ListAllRepositoriesBadRequest) GetPayload

func (o *ListAllRepositoriesBadRequest) GetPayload() *model.Errors

type ListAllRepositoriesInternalServerError

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

	Payload *model.Errors
}

ListAllRepositoriesInternalServerError handles this case with default header values.

Internal server error

func NewListAllRepositoriesInternalServerError

func NewListAllRepositoriesInternalServerError() *ListAllRepositoriesInternalServerError

NewListAllRepositoriesInternalServerError creates a ListAllRepositoriesInternalServerError with default headers values

func (*ListAllRepositoriesInternalServerError) Error

func (*ListAllRepositoriesInternalServerError) GetPayload

type ListAllRepositoriesOK

type ListAllRepositoriesOK struct {
	/*Link refers to the previous page and next page
	 */
	Link string
	/*The total count of repositories
	 */
	XTotalCount int64

	Payload []*model.Repository
}

ListAllRepositoriesOK handles this case with default header values.

Success

func NewListAllRepositoriesOK

func NewListAllRepositoriesOK() *ListAllRepositoriesOK

NewListAllRepositoriesOK creates a ListAllRepositoriesOK with default headers values

func (*ListAllRepositoriesOK) Error

func (o *ListAllRepositoriesOK) Error() string

func (*ListAllRepositoriesOK) GetPayload

func (o *ListAllRepositoriesOK) GetPayload() []*model.Repository

type ListAllRepositoriesParams

type ListAllRepositoriesParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64
	/*Q
	  Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]

	*/
	Q *string
	/*Sort
	  Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2"

	*/
	Sort *string

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

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

func NewListAllRepositoriesParams

func NewListAllRepositoriesParams() *ListAllRepositoriesParams

NewListAllRepositoriesParams creates a new ListAllRepositoriesParams object with the default values initialized.

func NewListAllRepositoriesParamsWithContext

func NewListAllRepositoriesParamsWithContext(ctx context.Context) *ListAllRepositoriesParams

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

func NewListAllRepositoriesParamsWithHTTPClient

func NewListAllRepositoriesParamsWithHTTPClient(client *http.Client) *ListAllRepositoriesParams

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

func NewListAllRepositoriesParamsWithTimeout

func NewListAllRepositoriesParamsWithTimeout(timeout time.Duration) *ListAllRepositoriesParams

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

func (*ListAllRepositoriesParams) SetContext

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

SetContext adds the context to the list all repositories params

func (*ListAllRepositoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list all repositories params

func (*ListAllRepositoriesParams) SetPage

func (o *ListAllRepositoriesParams) SetPage(page *int64)

SetPage adds the page to the list all repositories params

func (*ListAllRepositoriesParams) SetPageSize

func (o *ListAllRepositoriesParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list all repositories params

func (*ListAllRepositoriesParams) SetQ

func (o *ListAllRepositoriesParams) SetQ(q *string)

SetQ adds the q to the list all repositories params

func (*ListAllRepositoriesParams) SetSort

func (o *ListAllRepositoriesParams) SetSort(sort *string)

SetSort adds the sort to the list all repositories params

func (*ListAllRepositoriesParams) SetTimeout

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

SetTimeout adds the timeout to the list all repositories params

func (*ListAllRepositoriesParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the list all repositories params

func (*ListAllRepositoriesParams) WithContext

WithContext adds the context to the list all repositories params

func (*ListAllRepositoriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list all repositories params

func (*ListAllRepositoriesParams) WithPage

WithPage adds the page to the list all repositories params

func (*ListAllRepositoriesParams) WithPageSize

func (o *ListAllRepositoriesParams) WithPageSize(pageSize *int64) *ListAllRepositoriesParams

WithPageSize adds the pageSize to the list all repositories params

func (*ListAllRepositoriesParams) WithQ

WithQ adds the q to the list all repositories params

func (*ListAllRepositoriesParams) WithSort

WithSort adds the sort to the list all repositories params

func (*ListAllRepositoriesParams) WithTimeout

WithTimeout adds the timeout to the list all repositories params

func (*ListAllRepositoriesParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the list all repositories params

func (*ListAllRepositoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListAllRepositoriesReader

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

ListAllRepositoriesReader is a Reader for the ListAllRepositories structure.

func (*ListAllRepositoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRepositoriesBadRequest

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

	Payload *model.Errors
}

ListRepositoriesBadRequest handles this case with default header values.

Bad request

func NewListRepositoriesBadRequest

func NewListRepositoriesBadRequest() *ListRepositoriesBadRequest

NewListRepositoriesBadRequest creates a ListRepositoriesBadRequest with default headers values

func (*ListRepositoriesBadRequest) Error

func (*ListRepositoriesBadRequest) GetPayload

func (o *ListRepositoriesBadRequest) GetPayload() *model.Errors

type ListRepositoriesForbidden

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

	Payload *model.Errors
}

ListRepositoriesForbidden handles this case with default header values.

Forbidden

func NewListRepositoriesForbidden

func NewListRepositoriesForbidden() *ListRepositoriesForbidden

NewListRepositoriesForbidden creates a ListRepositoriesForbidden with default headers values

func (*ListRepositoriesForbidden) Error

func (o *ListRepositoriesForbidden) Error() string

func (*ListRepositoriesForbidden) GetPayload

func (o *ListRepositoriesForbidden) GetPayload() *model.Errors

type ListRepositoriesInternalServerError

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

	Payload *model.Errors
}

ListRepositoriesInternalServerError handles this case with default header values.

Internal server error

func NewListRepositoriesInternalServerError

func NewListRepositoriesInternalServerError() *ListRepositoriesInternalServerError

NewListRepositoriesInternalServerError creates a ListRepositoriesInternalServerError with default headers values

func (*ListRepositoriesInternalServerError) Error

func (*ListRepositoriesInternalServerError) GetPayload

type ListRepositoriesNotFound

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

	Payload *model.Errors
}

ListRepositoriesNotFound handles this case with default header values.

Not found

func NewListRepositoriesNotFound

func NewListRepositoriesNotFound() *ListRepositoriesNotFound

NewListRepositoriesNotFound creates a ListRepositoriesNotFound with default headers values

func (*ListRepositoriesNotFound) Error

func (o *ListRepositoriesNotFound) Error() string

func (*ListRepositoriesNotFound) GetPayload

func (o *ListRepositoriesNotFound) GetPayload() *model.Errors

type ListRepositoriesOK

type ListRepositoriesOK struct {
	/*Link refers to the previous page and next page
	 */
	Link string
	/*The total count of repositories
	 */
	XTotalCount int64

	Payload []*model.Repository
}

ListRepositoriesOK handles this case with default header values.

Success

func NewListRepositoriesOK

func NewListRepositoriesOK() *ListRepositoriesOK

NewListRepositoriesOK creates a ListRepositoriesOK with default headers values

func (*ListRepositoriesOK) Error

func (o *ListRepositoriesOK) Error() string

func (*ListRepositoriesOK) GetPayload

func (o *ListRepositoriesOK) GetPayload() []*model.Repository

type ListRepositoriesParams

type ListRepositoriesParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64
	/*ProjectName
	  The name of the project

	*/
	ProjectName string
	/*Q
	  Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]

	*/
	Q *string
	/*Sort
	  Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2"

	*/
	Sort *string

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

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

func NewListRepositoriesParams

func NewListRepositoriesParams() *ListRepositoriesParams

NewListRepositoriesParams creates a new ListRepositoriesParams object with the default values initialized.

func NewListRepositoriesParamsWithContext

func NewListRepositoriesParamsWithContext(ctx context.Context) *ListRepositoriesParams

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

func NewListRepositoriesParamsWithHTTPClient

func NewListRepositoriesParamsWithHTTPClient(client *http.Client) *ListRepositoriesParams

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

func NewListRepositoriesParamsWithTimeout

func NewListRepositoriesParamsWithTimeout(timeout time.Duration) *ListRepositoriesParams

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

func (*ListRepositoriesParams) SetContext

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

SetContext adds the context to the list repositories params

func (*ListRepositoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list repositories params

func (*ListRepositoriesParams) SetPage

func (o *ListRepositoriesParams) SetPage(page *int64)

SetPage adds the page to the list repositories params

func (*ListRepositoriesParams) SetPageSize

func (o *ListRepositoriesParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list repositories params

func (*ListRepositoriesParams) SetProjectName

func (o *ListRepositoriesParams) SetProjectName(projectName string)

SetProjectName adds the projectName to the list repositories params

func (*ListRepositoriesParams) SetQ

func (o *ListRepositoriesParams) SetQ(q *string)

SetQ adds the q to the list repositories params

func (*ListRepositoriesParams) SetSort

func (o *ListRepositoriesParams) SetSort(sort *string)

SetSort adds the sort to the list repositories params

func (*ListRepositoriesParams) SetTimeout

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

SetTimeout adds the timeout to the list repositories params

func (*ListRepositoriesParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the list repositories params

func (*ListRepositoriesParams) WithContext

WithContext adds the context to the list repositories params

func (*ListRepositoriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list repositories params

func (*ListRepositoriesParams) WithPage

WithPage adds the page to the list repositories params

func (*ListRepositoriesParams) WithPageSize

func (o *ListRepositoriesParams) WithPageSize(pageSize *int64) *ListRepositoriesParams

WithPageSize adds the pageSize to the list repositories params

func (*ListRepositoriesParams) WithProjectName

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

WithProjectName adds the projectName to the list repositories params

func (*ListRepositoriesParams) WithQ

WithQ adds the q to the list repositories params

func (*ListRepositoriesParams) WithSort

WithSort adds the sort to the list repositories params

func (*ListRepositoriesParams) WithTimeout

WithTimeout adds the timeout to the list repositories params

func (*ListRepositoriesParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the list repositories params

func (*ListRepositoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListRepositoriesReader

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

ListRepositoriesReader is a Reader for the ListRepositories structure.

func (*ListRepositoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRepositoriesUnauthorized

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

	Payload *model.Errors
}

ListRepositoriesUnauthorized handles this case with default header values.

Unauthorized

func NewListRepositoriesUnauthorized

func NewListRepositoriesUnauthorized() *ListRepositoriesUnauthorized

NewListRepositoriesUnauthorized creates a ListRepositoriesUnauthorized with default headers values

func (*ListRepositoriesUnauthorized) Error

func (*ListRepositoriesUnauthorized) GetPayload

func (o *ListRepositoriesUnauthorized) GetPayload() *model.Errors

type UpdateRepositoryBadRequest

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

	Payload *model.Errors
}

UpdateRepositoryBadRequest handles this case with default header values.

Bad request

func NewUpdateRepositoryBadRequest

func NewUpdateRepositoryBadRequest() *UpdateRepositoryBadRequest

NewUpdateRepositoryBadRequest creates a UpdateRepositoryBadRequest with default headers values

func (*UpdateRepositoryBadRequest) Error

func (*UpdateRepositoryBadRequest) GetPayload

func (o *UpdateRepositoryBadRequest) GetPayload() *model.Errors

type UpdateRepositoryForbidden

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

	Payload *model.Errors
}

UpdateRepositoryForbidden handles this case with default header values.

Forbidden

func NewUpdateRepositoryForbidden

func NewUpdateRepositoryForbidden() *UpdateRepositoryForbidden

NewUpdateRepositoryForbidden creates a UpdateRepositoryForbidden with default headers values

func (*UpdateRepositoryForbidden) Error

func (o *UpdateRepositoryForbidden) Error() string

func (*UpdateRepositoryForbidden) GetPayload

func (o *UpdateRepositoryForbidden) GetPayload() *model.Errors

type UpdateRepositoryInternalServerError

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

	Payload *model.Errors
}

UpdateRepositoryInternalServerError handles this case with default header values.

Internal server error

func NewUpdateRepositoryInternalServerError

func NewUpdateRepositoryInternalServerError() *UpdateRepositoryInternalServerError

NewUpdateRepositoryInternalServerError creates a UpdateRepositoryInternalServerError with default headers values

func (*UpdateRepositoryInternalServerError) Error

func (*UpdateRepositoryInternalServerError) GetPayload

type UpdateRepositoryNotFound

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

	Payload *model.Errors
}

UpdateRepositoryNotFound handles this case with default header values.

Not found

func NewUpdateRepositoryNotFound

func NewUpdateRepositoryNotFound() *UpdateRepositoryNotFound

NewUpdateRepositoryNotFound creates a UpdateRepositoryNotFound with default headers values

func (*UpdateRepositoryNotFound) Error

func (o *UpdateRepositoryNotFound) Error() string

func (*UpdateRepositoryNotFound) GetPayload

func (o *UpdateRepositoryNotFound) GetPayload() *model.Errors

type UpdateRepositoryOK

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

UpdateRepositoryOK handles this case with default header values.

Success

func NewUpdateRepositoryOK

func NewUpdateRepositoryOK() *UpdateRepositoryOK

NewUpdateRepositoryOK creates a UpdateRepositoryOK with default headers values

func (*UpdateRepositoryOK) Error

func (o *UpdateRepositoryOK) Error() string

type UpdateRepositoryParams

type UpdateRepositoryParams struct {

	/*XRequestID
	  An unique ID for the request

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

	*/
	ProjectName string
	/*Repository
	  The JSON object of repository.

	*/
	Repository *model.Repository
	/*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
}

UpdateRepositoryParams contains all the parameters to send to the API endpoint for the update repository operation typically these are written to a http.Request

func NewUpdateRepositoryParams

func NewUpdateRepositoryParams() *UpdateRepositoryParams

NewUpdateRepositoryParams creates a new UpdateRepositoryParams object with the default values initialized.

func NewUpdateRepositoryParamsWithContext

func NewUpdateRepositoryParamsWithContext(ctx context.Context) *UpdateRepositoryParams

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

func NewUpdateRepositoryParamsWithHTTPClient

func NewUpdateRepositoryParamsWithHTTPClient(client *http.Client) *UpdateRepositoryParams

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

func NewUpdateRepositoryParamsWithTimeout

func NewUpdateRepositoryParamsWithTimeout(timeout time.Duration) *UpdateRepositoryParams

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

func (*UpdateRepositoryParams) SetContext

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

SetContext adds the context to the update repository params

func (*UpdateRepositoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update repository params

func (*UpdateRepositoryParams) SetProjectName

func (o *UpdateRepositoryParams) SetProjectName(projectName string)

SetProjectName adds the projectName to the update repository params

func (*UpdateRepositoryParams) SetRepository

func (o *UpdateRepositoryParams) SetRepository(repository *model.Repository)

SetRepository adds the repository to the update repository params

func (*UpdateRepositoryParams) SetRepositoryName

func (o *UpdateRepositoryParams) SetRepositoryName(repositoryName string)

SetRepositoryName adds the repositoryName to the update repository params

func (*UpdateRepositoryParams) SetTimeout

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

SetTimeout adds the timeout to the update repository params

func (*UpdateRepositoryParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the update repository params

func (*UpdateRepositoryParams) WithContext

WithContext adds the context to the update repository params

func (*UpdateRepositoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update repository params

func (*UpdateRepositoryParams) WithProjectName

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

WithProjectName adds the projectName to the update repository params

func (*UpdateRepositoryParams) WithRepository

func (o *UpdateRepositoryParams) WithRepository(repository *model.Repository) *UpdateRepositoryParams

WithRepository adds the repository to the update repository params

func (*UpdateRepositoryParams) WithRepositoryName

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

WithRepositoryName adds the repositoryName to the update repository params

func (*UpdateRepositoryParams) WithTimeout

WithTimeout adds the timeout to the update repository params

func (*UpdateRepositoryParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the update repository params

func (*UpdateRepositoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateRepositoryReader

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

UpdateRepositoryReader is a Reader for the UpdateRepository structure.

func (*UpdateRepositoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRepositoryUnauthorized

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

	Payload *model.Errors
}

UpdateRepositoryUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateRepositoryUnauthorized

func NewUpdateRepositoryUnauthorized() *UpdateRepositoryUnauthorized

NewUpdateRepositoryUnauthorized creates a UpdateRepositoryUnauthorized with default headers values

func (*UpdateRepositoryUnauthorized) Error

func (*UpdateRepositoryUnauthorized) GetPayload

func (o *UpdateRepositoryUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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