repository

package
v0.0.0-...-fde7ecd Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 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, opts ...ClientOption) (*DeleteRepositoryOK, error)

DeleteRepository deletes repository

Delete the repository specified by name

func (*Client) GetRepository

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

GetRepository gets repository

Get the repository specified by name

func (*Client) ListRepositories

func (a *Client) ListRepositories(params *ListRepositoriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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, opts ...ClientOption) (*UpdateRepositoryOK, error)

UpdateRepository updates repository

Update the repository specified by name

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

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

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

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

	UpdateRepository(params *UpdateRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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 *models.Errors
}
DeleteRepositoryBadRequest describes a response with status code 400, 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() *models.Errors

type DeleteRepositoryForbidden

type DeleteRepositoryForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
DeleteRepositoryForbidden describes a response with status code 403, 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() *models.Errors

type DeleteRepositoryInternalServerError

type DeleteRepositoryInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
DeleteRepositoryInternalServerError describes a response with status code 500, 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 *models.Errors
}
DeleteRepositoryNotFound describes a response with status code 404, 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() *models.Errors

type DeleteRepositoryOK

type DeleteRepositoryOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}
DeleteRepositoryOK describes a response with status code 200, 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 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 NewDeleteRepositoryParamsWithContext

func NewDeleteRepositoryParamsWithContext(ctx context.Context) *DeleteRepositoryParams

NewDeleteRepositoryParamsWithContext creates a new DeleteRepositoryParams object with 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 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 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) SetDefaults

func (o *DeleteRepositoryParams) SetDefaults()

SetDefaults hydrates default values in the delete repository params (not the query body).

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

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) WithDefaults

WithDefaults hydrates default values in the delete repository params (not the query body).

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

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 *models.Errors
}
DeleteRepositoryUnauthorized describes a response with status code 401, 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() *models.Errors

type GetRepositoryBadRequest

type GetRepositoryBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
GetRepositoryBadRequest describes a response with status code 400, 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() *models.Errors

type GetRepositoryForbidden

type GetRepositoryForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
GetRepositoryForbidden describes a response with status code 403, 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() *models.Errors

type GetRepositoryInternalServerError

type GetRepositoryInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
GetRepositoryInternalServerError describes a response with status code 500, 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 *models.Errors
}
GetRepositoryNotFound describes a response with status code 404, 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() *models.Errors

type GetRepositoryOK

type GetRepositoryOK struct {
	Payload *models.Repository
}
GetRepositoryOK describes a response with status code 200, 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() *models.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 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 NewGetRepositoryParamsWithContext

func NewGetRepositoryParamsWithContext(ctx context.Context) *GetRepositoryParams

NewGetRepositoryParamsWithContext creates a new GetRepositoryParams object with 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 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 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) SetDefaults

func (o *GetRepositoryParams) SetDefaults()

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

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

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) WithDefaults

func (o *GetRepositoryParams) WithDefaults() *GetRepositoryParams

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

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

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 *models.Errors
}
GetRepositoryUnauthorized describes a response with status code 401, 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() *models.Errors

type ListRepositoriesBadRequest

type ListRepositoriesBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
ListRepositoriesBadRequest describes a response with status code 400, 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() *models.Errors

type ListRepositoriesForbidden

type ListRepositoriesForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
ListRepositoriesForbidden describes a response with status code 403, 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() *models.Errors

type ListRepositoriesInternalServerError

type ListRepositoriesInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
ListRepositoriesInternalServerError describes a response with status code 500, 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 *models.Errors
}
ListRepositoriesNotFound describes a response with status code 404, 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() *models.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 []*models.Repository
}
ListRepositoriesOK describes a response with status code 200, 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() []*models.Repository

type ListRepositoriesParams

type ListRepositoriesParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Page.

	   The page number

	   Format: int64
	   Default: 1
	*/
	Page *int64

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	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

	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 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 NewListRepositoriesParamsWithContext

func NewListRepositoriesParamsWithContext(ctx context.Context) *ListRepositoriesParams

NewListRepositoriesParamsWithContext creates a new ListRepositoriesParams object with 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 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 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) SetDefaults

func (o *ListRepositoriesParams) SetDefaults()

SetDefaults hydrates default values in the list repositories params (not the query body).

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

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) 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) WithDefaults

WithDefaults hydrates default values in the list repositories params (not the query body).

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

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) 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 *models.Errors
}
ListRepositoriesUnauthorized describes a response with status code 401, 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() *models.Errors

type UpdateRepositoryBadRequest

type UpdateRepositoryBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
UpdateRepositoryBadRequest describes a response with status code 400, 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() *models.Errors

type UpdateRepositoryForbidden

type UpdateRepositoryForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
UpdateRepositoryForbidden describes a response with status code 403, 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() *models.Errors

type UpdateRepositoryInternalServerError

type UpdateRepositoryInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
UpdateRepositoryInternalServerError describes a response with status code 500, 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 *models.Errors
}
UpdateRepositoryNotFound describes a response with status code 404, 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() *models.Errors

type UpdateRepositoryOK

type UpdateRepositoryOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}
UpdateRepositoryOK describes a response with status code 200, 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 *models.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 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 NewUpdateRepositoryParamsWithContext

func NewUpdateRepositoryParamsWithContext(ctx context.Context) *UpdateRepositoryParams

NewUpdateRepositoryParamsWithContext creates a new UpdateRepositoryParams object with 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 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 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) SetDefaults

func (o *UpdateRepositoryParams) SetDefaults()

SetDefaults hydrates default values in the update repository params (not the query body).

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

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 *models.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) WithDefaults

WithDefaults hydrates default values in the update repository params (not the query body).

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

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 *models.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 *models.Errors
}
UpdateRepositoryUnauthorized describes a response with status code 401, 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() *models.Errors

Jump to

Keyboard shortcuts

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