repository

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 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 API

type API interface {
	/*
	   DeleteRepository deletes repository

	   Delete the repository specified by name*/
	DeleteRepository(ctx context.Context, params *DeleteRepositoryParams) (*DeleteRepositoryOK, error)
	/*
	   GetRepository gets repository

	   Get the repository specified by name*/
	GetRepository(ctx context.Context, params *GetRepositoryParams) (*GetRepositoryOK, error)
	/*
	   ListAllRepositories lists all authorized repositories

	   List all authorized repositories*/
	ListAllRepositories(ctx context.Context, params *ListAllRepositoriesParams) (*ListAllRepositoriesOK, error)
	/*
	   ListRepositories lists repositories

	   List repositories of the specified project*/
	ListRepositories(ctx context.Context, params *ListRepositoriesParams) (*ListRepositoriesOK, error)
	/*
	   UpdateRepository updates repository

	   Update the repository specified by name*/
	UpdateRepository(ctx context.Context, params *UpdateRepositoryParams) (*UpdateRepositoryOK, error)
}

API is the interface of the repository client

type Client

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

Client for repository API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new repository API client.

func (*Client) DeleteRepository

func (a *Client) DeleteRepository(ctx context.Context, params *DeleteRepositoryParams) (*DeleteRepositoryOK, error)

DeleteRepository deletes repository

Delete the repository specified by name

func (*Client) GetRepository

func (a *Client) GetRepository(ctx context.Context, params *GetRepositoryParams) (*GetRepositoryOK, error)

GetRepository gets repository

Get the repository specified by name

func (*Client) ListAllRepositories

func (a *Client) ListAllRepositories(ctx context.Context, params *ListAllRepositoriesParams) (*ListAllRepositoriesOK, error)

ListAllRepositories lists all authorized repositories

List all authorized repositories

func (*Client) ListRepositories

func (a *Client) ListRepositories(ctx context.Context, params *ListRepositoriesParams) (*ListRepositoriesOK, error)

ListRepositories lists repositories

List repositories of the specified project

func (*Client) UpdateRepository

func (a *Client) UpdateRepository(ctx context.Context, params *UpdateRepositoryParams) (*UpdateRepositoryOK, error)

UpdateRepository updates repository

Update the repository specified by name

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

func (*DeleteRepositoryBadRequest) IsClientError

func (o *DeleteRepositoryBadRequest) IsClientError() bool

IsClientError returns true when this delete repository bad request response has a 4xx status code

func (*DeleteRepositoryBadRequest) IsCode

func (o *DeleteRepositoryBadRequest) IsCode(code int) bool

IsCode returns true when this delete repository bad request response a status code equal to that given

func (*DeleteRepositoryBadRequest) IsRedirect

func (o *DeleteRepositoryBadRequest) IsRedirect() bool

IsRedirect returns true when this delete repository bad request response has a 3xx status code

func (*DeleteRepositoryBadRequest) IsServerError

func (o *DeleteRepositoryBadRequest) IsServerError() bool

IsServerError returns true when this delete repository bad request response has a 5xx status code

func (*DeleteRepositoryBadRequest) IsSuccess

func (o *DeleteRepositoryBadRequest) IsSuccess() bool

IsSuccess returns true when this delete repository bad request response has a 2xx status code

func (*DeleteRepositoryBadRequest) String

func (o *DeleteRepositoryBadRequest) String() string

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

func (*DeleteRepositoryForbidden) IsClientError

func (o *DeleteRepositoryForbidden) IsClientError() bool

IsClientError returns true when this delete repository forbidden response has a 4xx status code

func (*DeleteRepositoryForbidden) IsCode

func (o *DeleteRepositoryForbidden) IsCode(code int) bool

IsCode returns true when this delete repository forbidden response a status code equal to that given

func (*DeleteRepositoryForbidden) IsRedirect

func (o *DeleteRepositoryForbidden) IsRedirect() bool

IsRedirect returns true when this delete repository forbidden response has a 3xx status code

func (*DeleteRepositoryForbidden) IsServerError

func (o *DeleteRepositoryForbidden) IsServerError() bool

IsServerError returns true when this delete repository forbidden response has a 5xx status code

func (*DeleteRepositoryForbidden) IsSuccess

func (o *DeleteRepositoryForbidden) IsSuccess() bool

IsSuccess returns true when this delete repository forbidden response has a 2xx status code

func (*DeleteRepositoryForbidden) String

func (o *DeleteRepositoryForbidden) String() string

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

func (*DeleteRepositoryInternalServerError) IsClientError

func (o *DeleteRepositoryInternalServerError) IsClientError() bool

IsClientError returns true when this delete repository internal server error response has a 4xx status code

func (*DeleteRepositoryInternalServerError) IsCode

IsCode returns true when this delete repository internal server error response a status code equal to that given

func (*DeleteRepositoryInternalServerError) IsRedirect

func (o *DeleteRepositoryInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete repository internal server error response has a 3xx status code

func (*DeleteRepositoryInternalServerError) IsServerError

func (o *DeleteRepositoryInternalServerError) IsServerError() bool

IsServerError returns true when this delete repository internal server error response has a 5xx status code

func (*DeleteRepositoryInternalServerError) IsSuccess

IsSuccess returns true when this delete repository internal server error response has a 2xx status code

func (*DeleteRepositoryInternalServerError) String

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

func (*DeleteRepositoryNotFound) IsClientError

func (o *DeleteRepositoryNotFound) IsClientError() bool

IsClientError returns true when this delete repository not found response has a 4xx status code

func (*DeleteRepositoryNotFound) IsCode

func (o *DeleteRepositoryNotFound) IsCode(code int) bool

IsCode returns true when this delete repository not found response a status code equal to that given

func (*DeleteRepositoryNotFound) IsRedirect

func (o *DeleteRepositoryNotFound) IsRedirect() bool

IsRedirect returns true when this delete repository not found response has a 3xx status code

func (*DeleteRepositoryNotFound) IsServerError

func (o *DeleteRepositoryNotFound) IsServerError() bool

IsServerError returns true when this delete repository not found response has a 5xx status code

func (*DeleteRepositoryNotFound) IsSuccess

func (o *DeleteRepositoryNotFound) IsSuccess() bool

IsSuccess returns true when this delete repository not found response has a 2xx status code

func (*DeleteRepositoryNotFound) String

func (o *DeleteRepositoryNotFound) String() string

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

func (*DeleteRepositoryOK) IsClientError

func (o *DeleteRepositoryOK) IsClientError() bool

IsClientError returns true when this delete repository o k response has a 4xx status code

func (*DeleteRepositoryOK) IsCode

func (o *DeleteRepositoryOK) IsCode(code int) bool

IsCode returns true when this delete repository o k response a status code equal to that given

func (*DeleteRepositoryOK) IsRedirect

func (o *DeleteRepositoryOK) IsRedirect() bool

IsRedirect returns true when this delete repository o k response has a 3xx status code

func (*DeleteRepositoryOK) IsServerError

func (o *DeleteRepositoryOK) IsServerError() bool

IsServerError returns true when this delete repository o k response has a 5xx status code

func (*DeleteRepositoryOK) IsSuccess

func (o *DeleteRepositoryOK) IsSuccess() bool

IsSuccess returns true when this delete repository o k response has a 2xx status code

func (*DeleteRepositoryOK) String

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

func (*DeleteRepositoryUnauthorized) IsClientError

func (o *DeleteRepositoryUnauthorized) IsClientError() bool

IsClientError returns true when this delete repository unauthorized response has a 4xx status code

func (*DeleteRepositoryUnauthorized) IsCode

func (o *DeleteRepositoryUnauthorized) IsCode(code int) bool

IsCode returns true when this delete repository unauthorized response a status code equal to that given

func (*DeleteRepositoryUnauthorized) IsRedirect

func (o *DeleteRepositoryUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete repository unauthorized response has a 3xx status code

func (*DeleteRepositoryUnauthorized) IsServerError

func (o *DeleteRepositoryUnauthorized) IsServerError() bool

IsServerError returns true when this delete repository unauthorized response has a 5xx status code

func (*DeleteRepositoryUnauthorized) IsSuccess

func (o *DeleteRepositoryUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete repository unauthorized response has a 2xx status code

func (*DeleteRepositoryUnauthorized) String

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

func (*GetRepositoryBadRequest) IsClientError

func (o *GetRepositoryBadRequest) IsClientError() bool

IsClientError returns true when this get repository bad request response has a 4xx status code

func (*GetRepositoryBadRequest) IsCode

func (o *GetRepositoryBadRequest) IsCode(code int) bool

IsCode returns true when this get repository bad request response a status code equal to that given

func (*GetRepositoryBadRequest) IsRedirect

func (o *GetRepositoryBadRequest) IsRedirect() bool

IsRedirect returns true when this get repository bad request response has a 3xx status code

func (*GetRepositoryBadRequest) IsServerError

func (o *GetRepositoryBadRequest) IsServerError() bool

IsServerError returns true when this get repository bad request response has a 5xx status code

func (*GetRepositoryBadRequest) IsSuccess

func (o *GetRepositoryBadRequest) IsSuccess() bool

IsSuccess returns true when this get repository bad request response has a 2xx status code

func (*GetRepositoryBadRequest) String

func (o *GetRepositoryBadRequest) String() string

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

func (*GetRepositoryForbidden) IsClientError

func (o *GetRepositoryForbidden) IsClientError() bool

IsClientError returns true when this get repository forbidden response has a 4xx status code

func (*GetRepositoryForbidden) IsCode

func (o *GetRepositoryForbidden) IsCode(code int) bool

IsCode returns true when this get repository forbidden response a status code equal to that given

func (*GetRepositoryForbidden) IsRedirect

func (o *GetRepositoryForbidden) IsRedirect() bool

IsRedirect returns true when this get repository forbidden response has a 3xx status code

func (*GetRepositoryForbidden) IsServerError

func (o *GetRepositoryForbidden) IsServerError() bool

IsServerError returns true when this get repository forbidden response has a 5xx status code

func (*GetRepositoryForbidden) IsSuccess

func (o *GetRepositoryForbidden) IsSuccess() bool

IsSuccess returns true when this get repository forbidden response has a 2xx status code

func (*GetRepositoryForbidden) String

func (o *GetRepositoryForbidden) String() string

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

func (*GetRepositoryInternalServerError) IsClientError

func (o *GetRepositoryInternalServerError) IsClientError() bool

IsClientError returns true when this get repository internal server error response has a 4xx status code

func (*GetRepositoryInternalServerError) IsCode

func (o *GetRepositoryInternalServerError) IsCode(code int) bool

IsCode returns true when this get repository internal server error response a status code equal to that given

func (*GetRepositoryInternalServerError) IsRedirect

func (o *GetRepositoryInternalServerError) IsRedirect() bool

IsRedirect returns true when this get repository internal server error response has a 3xx status code

func (*GetRepositoryInternalServerError) IsServerError

func (o *GetRepositoryInternalServerError) IsServerError() bool

IsServerError returns true when this get repository internal server error response has a 5xx status code

func (*GetRepositoryInternalServerError) IsSuccess

func (o *GetRepositoryInternalServerError) IsSuccess() bool

IsSuccess returns true when this get repository internal server error response has a 2xx status code

func (*GetRepositoryInternalServerError) String

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

func (*GetRepositoryNotFound) IsClientError

func (o *GetRepositoryNotFound) IsClientError() bool

IsClientError returns true when this get repository not found response has a 4xx status code

func (*GetRepositoryNotFound) IsCode

func (o *GetRepositoryNotFound) IsCode(code int) bool

IsCode returns true when this get repository not found response a status code equal to that given

func (*GetRepositoryNotFound) IsRedirect

func (o *GetRepositoryNotFound) IsRedirect() bool

IsRedirect returns true when this get repository not found response has a 3xx status code

func (*GetRepositoryNotFound) IsServerError

func (o *GetRepositoryNotFound) IsServerError() bool

IsServerError returns true when this get repository not found response has a 5xx status code

func (*GetRepositoryNotFound) IsSuccess

func (o *GetRepositoryNotFound) IsSuccess() bool

IsSuccess returns true when this get repository not found response has a 2xx status code

func (*GetRepositoryNotFound) String

func (o *GetRepositoryNotFound) String() string

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

func (*GetRepositoryOK) IsClientError

func (o *GetRepositoryOK) IsClientError() bool

IsClientError returns true when this get repository o k response has a 4xx status code

func (*GetRepositoryOK) IsCode

func (o *GetRepositoryOK) IsCode(code int) bool

IsCode returns true when this get repository o k response a status code equal to that given

func (*GetRepositoryOK) IsRedirect

func (o *GetRepositoryOK) IsRedirect() bool

IsRedirect returns true when this get repository o k response has a 3xx status code

func (*GetRepositoryOK) IsServerError

func (o *GetRepositoryOK) IsServerError() bool

IsServerError returns true when this get repository o k response has a 5xx status code

func (*GetRepositoryOK) IsSuccess

func (o *GetRepositoryOK) IsSuccess() bool

IsSuccess returns true when this get repository o k response has a 2xx status code

func (*GetRepositoryOK) String

func (o *GetRepositoryOK) String() string

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

func (*GetRepositoryUnauthorized) IsClientError

func (o *GetRepositoryUnauthorized) IsClientError() bool

IsClientError returns true when this get repository unauthorized response has a 4xx status code

func (*GetRepositoryUnauthorized) IsCode

func (o *GetRepositoryUnauthorized) IsCode(code int) bool

IsCode returns true when this get repository unauthorized response a status code equal to that given

func (*GetRepositoryUnauthorized) IsRedirect

func (o *GetRepositoryUnauthorized) IsRedirect() bool

IsRedirect returns true when this get repository unauthorized response has a 3xx status code

func (*GetRepositoryUnauthorized) IsServerError

func (o *GetRepositoryUnauthorized) IsServerError() bool

IsServerError returns true when this get repository unauthorized response has a 5xx status code

func (*GetRepositoryUnauthorized) IsSuccess

func (o *GetRepositoryUnauthorized) IsSuccess() bool

IsSuccess returns true when this get repository unauthorized response has a 2xx status code

func (*GetRepositoryUnauthorized) String

func (o *GetRepositoryUnauthorized) String() string

type ListAllRepositoriesBadRequest

type ListAllRepositoriesBadRequest struct {

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

	Payload *models.Errors
}

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

func (*ListAllRepositoriesBadRequest) IsClientError

func (o *ListAllRepositoriesBadRequest) IsClientError() bool

IsClientError returns true when this list all repositories bad request response has a 4xx status code

func (*ListAllRepositoriesBadRequest) IsCode

func (o *ListAllRepositoriesBadRequest) IsCode(code int) bool

IsCode returns true when this list all repositories bad request response a status code equal to that given

func (*ListAllRepositoriesBadRequest) IsRedirect

func (o *ListAllRepositoriesBadRequest) IsRedirect() bool

IsRedirect returns true when this list all repositories bad request response has a 3xx status code

func (*ListAllRepositoriesBadRequest) IsServerError

func (o *ListAllRepositoriesBadRequest) IsServerError() bool

IsServerError returns true when this list all repositories bad request response has a 5xx status code

func (*ListAllRepositoriesBadRequest) IsSuccess

func (o *ListAllRepositoriesBadRequest) IsSuccess() bool

IsSuccess returns true when this list all repositories bad request response has a 2xx status code

func (*ListAllRepositoriesBadRequest) String

type ListAllRepositoriesInternalServerError

type ListAllRepositoriesInternalServerError struct {

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

	Payload *models.Errors
}

ListAllRepositoriesInternalServerError describes a response with status code 500, 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

func (*ListAllRepositoriesInternalServerError) IsClientError

func (o *ListAllRepositoriesInternalServerError) IsClientError() bool

IsClientError returns true when this list all repositories internal server error response has a 4xx status code

func (*ListAllRepositoriesInternalServerError) IsCode

IsCode returns true when this list all repositories internal server error response a status code equal to that given

func (*ListAllRepositoriesInternalServerError) IsRedirect

IsRedirect returns true when this list all repositories internal server error response has a 3xx status code

func (*ListAllRepositoriesInternalServerError) IsServerError

func (o *ListAllRepositoriesInternalServerError) IsServerError() bool

IsServerError returns true when this list all repositories internal server error response has a 5xx status code

func (*ListAllRepositoriesInternalServerError) IsSuccess

IsSuccess returns true when this list all repositories internal server error response has a 2xx status code

func (*ListAllRepositoriesInternalServerError) String

type ListAllRepositoriesOK

type ListAllRepositoriesOK struct {

	/* Link refers to the previous page and next page
	 */
	Link string

	/* The total count of repositories
	 */
	XTotalCount int64

	Payload []*models.Repository
}

ListAllRepositoriesOK describes a response with status code 200, 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() []*models.Repository

func (*ListAllRepositoriesOK) IsClientError

func (o *ListAllRepositoriesOK) IsClientError() bool

IsClientError returns true when this list all repositories o k response has a 4xx status code

func (*ListAllRepositoriesOK) IsCode

func (o *ListAllRepositoriesOK) IsCode(code int) bool

IsCode returns true when this list all repositories o k response a status code equal to that given

func (*ListAllRepositoriesOK) IsRedirect

func (o *ListAllRepositoriesOK) IsRedirect() bool

IsRedirect returns true when this list all repositories o k response has a 3xx status code

func (*ListAllRepositoriesOK) IsServerError

func (o *ListAllRepositoriesOK) IsServerError() bool

IsServerError returns true when this list all repositories o k response has a 5xx status code

func (*ListAllRepositoriesOK) IsSuccess

func (o *ListAllRepositoriesOK) IsSuccess() bool

IsSuccess returns true when this list all repositories o k response has a 2xx status code

func (*ListAllRepositoriesOK) String

func (o *ListAllRepositoriesOK) String() string

type ListAllRepositoriesParams

type ListAllRepositoriesParams 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

	/* 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 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 NewListAllRepositoriesParamsWithContext

func NewListAllRepositoriesParamsWithContext(ctx context.Context) *ListAllRepositoriesParams

NewListAllRepositoriesParamsWithContext creates a new ListAllRepositoriesParams object with 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 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 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) SetDefaults

func (o *ListAllRepositoriesParams) SetDefaults()

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

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

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

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

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

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

func (*ListRepositoriesBadRequest) IsClientError

func (o *ListRepositoriesBadRequest) IsClientError() bool

IsClientError returns true when this list repositories bad request response has a 4xx status code

func (*ListRepositoriesBadRequest) IsCode

func (o *ListRepositoriesBadRequest) IsCode(code int) bool

IsCode returns true when this list repositories bad request response a status code equal to that given

func (*ListRepositoriesBadRequest) IsRedirect

func (o *ListRepositoriesBadRequest) IsRedirect() bool

IsRedirect returns true when this list repositories bad request response has a 3xx status code

func (*ListRepositoriesBadRequest) IsServerError

func (o *ListRepositoriesBadRequest) IsServerError() bool

IsServerError returns true when this list repositories bad request response has a 5xx status code

func (*ListRepositoriesBadRequest) IsSuccess

func (o *ListRepositoriesBadRequest) IsSuccess() bool

IsSuccess returns true when this list repositories bad request response has a 2xx status code

func (*ListRepositoriesBadRequest) String

func (o *ListRepositoriesBadRequest) String() string

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

func (*ListRepositoriesForbidden) IsClientError

func (o *ListRepositoriesForbidden) IsClientError() bool

IsClientError returns true when this list repositories forbidden response has a 4xx status code

func (*ListRepositoriesForbidden) IsCode

func (o *ListRepositoriesForbidden) IsCode(code int) bool

IsCode returns true when this list repositories forbidden response a status code equal to that given

func (*ListRepositoriesForbidden) IsRedirect

func (o *ListRepositoriesForbidden) IsRedirect() bool

IsRedirect returns true when this list repositories forbidden response has a 3xx status code

func (*ListRepositoriesForbidden) IsServerError

func (o *ListRepositoriesForbidden) IsServerError() bool

IsServerError returns true when this list repositories forbidden response has a 5xx status code

func (*ListRepositoriesForbidden) IsSuccess

func (o *ListRepositoriesForbidden) IsSuccess() bool

IsSuccess returns true when this list repositories forbidden response has a 2xx status code

func (*ListRepositoriesForbidden) String

func (o *ListRepositoriesForbidden) String() string

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

func (*ListRepositoriesInternalServerError) IsClientError

func (o *ListRepositoriesInternalServerError) IsClientError() bool

IsClientError returns true when this list repositories internal server error response has a 4xx status code

func (*ListRepositoriesInternalServerError) IsCode

IsCode returns true when this list repositories internal server error response a status code equal to that given

func (*ListRepositoriesInternalServerError) IsRedirect

func (o *ListRepositoriesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list repositories internal server error response has a 3xx status code

func (*ListRepositoriesInternalServerError) IsServerError

func (o *ListRepositoriesInternalServerError) IsServerError() bool

IsServerError returns true when this list repositories internal server error response has a 5xx status code

func (*ListRepositoriesInternalServerError) IsSuccess

IsSuccess returns true when this list repositories internal server error response has a 2xx status code

func (*ListRepositoriesInternalServerError) String

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

func (*ListRepositoriesNotFound) IsClientError

func (o *ListRepositoriesNotFound) IsClientError() bool

IsClientError returns true when this list repositories not found response has a 4xx status code

func (*ListRepositoriesNotFound) IsCode

func (o *ListRepositoriesNotFound) IsCode(code int) bool

IsCode returns true when this list repositories not found response a status code equal to that given

func (*ListRepositoriesNotFound) IsRedirect

func (o *ListRepositoriesNotFound) IsRedirect() bool

IsRedirect returns true when this list repositories not found response has a 3xx status code

func (*ListRepositoriesNotFound) IsServerError

func (o *ListRepositoriesNotFound) IsServerError() bool

IsServerError returns true when this list repositories not found response has a 5xx status code

func (*ListRepositoriesNotFound) IsSuccess

func (o *ListRepositoriesNotFound) IsSuccess() bool

IsSuccess returns true when this list repositories not found response has a 2xx status code

func (*ListRepositoriesNotFound) String

func (o *ListRepositoriesNotFound) String() string

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

func (*ListRepositoriesOK) IsClientError

func (o *ListRepositoriesOK) IsClientError() bool

IsClientError returns true when this list repositories o k response has a 4xx status code

func (*ListRepositoriesOK) IsCode

func (o *ListRepositoriesOK) IsCode(code int) bool

IsCode returns true when this list repositories o k response a status code equal to that given

func (*ListRepositoriesOK) IsRedirect

func (o *ListRepositoriesOK) IsRedirect() bool

IsRedirect returns true when this list repositories o k response has a 3xx status code

func (*ListRepositoriesOK) IsServerError

func (o *ListRepositoriesOK) IsServerError() bool

IsServerError returns true when this list repositories o k response has a 5xx status code

func (*ListRepositoriesOK) IsSuccess

func (o *ListRepositoriesOK) IsSuccess() bool

IsSuccess returns true when this list repositories o k response has a 2xx status code

func (*ListRepositoriesOK) String

func (o *ListRepositoriesOK) String() string

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

	/* 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 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) 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) 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) 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 *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

func (*ListRepositoriesUnauthorized) IsClientError

func (o *ListRepositoriesUnauthorized) IsClientError() bool

IsClientError returns true when this list repositories unauthorized response has a 4xx status code

func (*ListRepositoriesUnauthorized) IsCode

func (o *ListRepositoriesUnauthorized) IsCode(code int) bool

IsCode returns true when this list repositories unauthorized response a status code equal to that given

func (*ListRepositoriesUnauthorized) IsRedirect

func (o *ListRepositoriesUnauthorized) IsRedirect() bool

IsRedirect returns true when this list repositories unauthorized response has a 3xx status code

func (*ListRepositoriesUnauthorized) IsServerError

func (o *ListRepositoriesUnauthorized) IsServerError() bool

IsServerError returns true when this list repositories unauthorized response has a 5xx status code

func (*ListRepositoriesUnauthorized) IsSuccess

func (o *ListRepositoriesUnauthorized) IsSuccess() bool

IsSuccess returns true when this list repositories unauthorized response has a 2xx status code

func (*ListRepositoriesUnauthorized) String

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

func (*UpdateRepositoryBadRequest) IsClientError

func (o *UpdateRepositoryBadRequest) IsClientError() bool

IsClientError returns true when this update repository bad request response has a 4xx status code

func (*UpdateRepositoryBadRequest) IsCode

func (o *UpdateRepositoryBadRequest) IsCode(code int) bool

IsCode returns true when this update repository bad request response a status code equal to that given

func (*UpdateRepositoryBadRequest) IsRedirect

func (o *UpdateRepositoryBadRequest) IsRedirect() bool

IsRedirect returns true when this update repository bad request response has a 3xx status code

func (*UpdateRepositoryBadRequest) IsServerError

func (o *UpdateRepositoryBadRequest) IsServerError() bool

IsServerError returns true when this update repository bad request response has a 5xx status code

func (*UpdateRepositoryBadRequest) IsSuccess

func (o *UpdateRepositoryBadRequest) IsSuccess() bool

IsSuccess returns true when this update repository bad request response has a 2xx status code

func (*UpdateRepositoryBadRequest) String

func (o *UpdateRepositoryBadRequest) String() string

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

func (*UpdateRepositoryForbidden) IsClientError

func (o *UpdateRepositoryForbidden) IsClientError() bool

IsClientError returns true when this update repository forbidden response has a 4xx status code

func (*UpdateRepositoryForbidden) IsCode

func (o *UpdateRepositoryForbidden) IsCode(code int) bool

IsCode returns true when this update repository forbidden response a status code equal to that given

func (*UpdateRepositoryForbidden) IsRedirect

func (o *UpdateRepositoryForbidden) IsRedirect() bool

IsRedirect returns true when this update repository forbidden response has a 3xx status code

func (*UpdateRepositoryForbidden) IsServerError

func (o *UpdateRepositoryForbidden) IsServerError() bool

IsServerError returns true when this update repository forbidden response has a 5xx status code

func (*UpdateRepositoryForbidden) IsSuccess

func (o *UpdateRepositoryForbidden) IsSuccess() bool

IsSuccess returns true when this update repository forbidden response has a 2xx status code

func (*UpdateRepositoryForbidden) String

func (o *UpdateRepositoryForbidden) String() string

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

func (*UpdateRepositoryInternalServerError) IsClientError

func (o *UpdateRepositoryInternalServerError) IsClientError() bool

IsClientError returns true when this update repository internal server error response has a 4xx status code

func (*UpdateRepositoryInternalServerError) IsCode

IsCode returns true when this update repository internal server error response a status code equal to that given

func (*UpdateRepositoryInternalServerError) IsRedirect

func (o *UpdateRepositoryInternalServerError) IsRedirect() bool

IsRedirect returns true when this update repository internal server error response has a 3xx status code

func (*UpdateRepositoryInternalServerError) IsServerError

func (o *UpdateRepositoryInternalServerError) IsServerError() bool

IsServerError returns true when this update repository internal server error response has a 5xx status code

func (*UpdateRepositoryInternalServerError) IsSuccess

IsSuccess returns true when this update repository internal server error response has a 2xx status code

func (*UpdateRepositoryInternalServerError) String

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

func (*UpdateRepositoryNotFound) IsClientError

func (o *UpdateRepositoryNotFound) IsClientError() bool

IsClientError returns true when this update repository not found response has a 4xx status code

func (*UpdateRepositoryNotFound) IsCode

func (o *UpdateRepositoryNotFound) IsCode(code int) bool

IsCode returns true when this update repository not found response a status code equal to that given

func (*UpdateRepositoryNotFound) IsRedirect

func (o *UpdateRepositoryNotFound) IsRedirect() bool

IsRedirect returns true when this update repository not found response has a 3xx status code

func (*UpdateRepositoryNotFound) IsServerError

func (o *UpdateRepositoryNotFound) IsServerError() bool

IsServerError returns true when this update repository not found response has a 5xx status code

func (*UpdateRepositoryNotFound) IsSuccess

func (o *UpdateRepositoryNotFound) IsSuccess() bool

IsSuccess returns true when this update repository not found response has a 2xx status code

func (*UpdateRepositoryNotFound) String

func (o *UpdateRepositoryNotFound) String() string

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

func (*UpdateRepositoryOK) IsClientError

func (o *UpdateRepositoryOK) IsClientError() bool

IsClientError returns true when this update repository o k response has a 4xx status code

func (*UpdateRepositoryOK) IsCode

func (o *UpdateRepositoryOK) IsCode(code int) bool

IsCode returns true when this update repository o k response a status code equal to that given

func (*UpdateRepositoryOK) IsRedirect

func (o *UpdateRepositoryOK) IsRedirect() bool

IsRedirect returns true when this update repository o k response has a 3xx status code

func (*UpdateRepositoryOK) IsServerError

func (o *UpdateRepositoryOK) IsServerError() bool

IsServerError returns true when this update repository o k response has a 5xx status code

func (*UpdateRepositoryOK) IsSuccess

func (o *UpdateRepositoryOK) IsSuccess() bool

IsSuccess returns true when this update repository o k response has a 2xx status code

func (*UpdateRepositoryOK) String

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

func (*UpdateRepositoryUnauthorized) IsClientError

func (o *UpdateRepositoryUnauthorized) IsClientError() bool

IsClientError returns true when this update repository unauthorized response has a 4xx status code

func (*UpdateRepositoryUnauthorized) IsCode

func (o *UpdateRepositoryUnauthorized) IsCode(code int) bool

IsCode returns true when this update repository unauthorized response a status code equal to that given

func (*UpdateRepositoryUnauthorized) IsRedirect

func (o *UpdateRepositoryUnauthorized) IsRedirect() bool

IsRedirect returns true when this update repository unauthorized response has a 3xx status code

func (*UpdateRepositoryUnauthorized) IsServerError

func (o *UpdateRepositoryUnauthorized) IsServerError() bool

IsServerError returns true when this update repository unauthorized response has a 5xx status code

func (*UpdateRepositoryUnauthorized) IsSuccess

func (o *UpdateRepositoryUnauthorized) IsSuccess() bool

IsSuccess returns true when this update repository unauthorized response has a 2xx status code

func (*UpdateRepositoryUnauthorized) String

Jump to

Keyboard shortcuts

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