repo_manager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: Apache-2.0 Imports: 11 Imported by: 4

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 repo manager API

func New

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

New creates a new repo manager API client.

func (*Client) CreateRepo

func (a *Client) CreateRepo(params *CreateRepoParams) (*CreateRepoOK, error)

CreateRepo creates repo

func (*Client) DeleteRepos

func (a *Client) DeleteRepos(params *DeleteReposParams) (*DeleteReposOK, error)

DeleteRepos deletes repos

func (*Client) DescribeRepos

func (a *Client) DescribeRepos(params *DescribeReposParams) (*DescribeReposOK, error)

DescribeRepos describes repos with filter

func (*Client) ModifyRepo

func (a *Client) ModifyRepo(params *ModifyRepoParams) (*ModifyRepoOK, error)

ModifyRepo modifies repo

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) ValidateRepo

func (a *Client) ValidateRepo(params *ValidateRepoParams) (*ValidateRepoOK, error)

ValidateRepo validates repo

type CreateRepoOK

type CreateRepoOK struct {
	Payload *models.OpenpitrixCreateRepoResponse
}

CreateRepoOK handles this case with default header values.

CreateRepoOK create repo o k

func NewCreateRepoOK

func NewCreateRepoOK() *CreateRepoOK

NewCreateRepoOK creates a CreateRepoOK with default headers values

func (*CreateRepoOK) Error

func (o *CreateRepoOK) Error() string

type CreateRepoParams

type CreateRepoParams struct {

	/*Body*/
	Body *models.OpenpitrixCreateRepoRequest

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

CreateRepoParams contains all the parameters to send to the API endpoint for the create repo operation typically these are written to a http.Request

func NewCreateRepoParams

func NewCreateRepoParams() *CreateRepoParams

NewCreateRepoParams creates a new CreateRepoParams object with the default values initialized.

func NewCreateRepoParamsWithContext

func NewCreateRepoParamsWithContext(ctx context.Context) *CreateRepoParams

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

func NewCreateRepoParamsWithHTTPClient

func NewCreateRepoParamsWithHTTPClient(client *http.Client) *CreateRepoParams

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

func NewCreateRepoParamsWithTimeout

func NewCreateRepoParamsWithTimeout(timeout time.Duration) *CreateRepoParams

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

func (*CreateRepoParams) SetBody

SetBody adds the body to the create repo params

func (*CreateRepoParams) SetContext

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

SetContext adds the context to the create repo params

func (*CreateRepoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create repo params

func (*CreateRepoParams) SetTimeout

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

SetTimeout adds the timeout to the create repo params

func (*CreateRepoParams) WithBody

WithBody adds the body to the create repo params

func (*CreateRepoParams) WithContext

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

WithContext adds the context to the create repo params

func (*CreateRepoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create repo params

func (*CreateRepoParams) WithTimeout

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

WithTimeout adds the timeout to the create repo params

func (*CreateRepoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRepoReader

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

CreateRepoReader is a Reader for the CreateRepo structure.

func (*CreateRepoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteReposOK

type DeleteReposOK struct {
	Payload *models.OpenpitrixDeleteReposResponse
}

DeleteReposOK handles this case with default header values.

DeleteReposOK delete repos o k

func NewDeleteReposOK

func NewDeleteReposOK() *DeleteReposOK

NewDeleteReposOK creates a DeleteReposOK with default headers values

func (*DeleteReposOK) Error

func (o *DeleteReposOK) Error() string

type DeleteReposParams

type DeleteReposParams struct {

	/*Body*/
	Body *models.OpenpitrixDeleteReposRequest

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

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

func NewDeleteReposParams

func NewDeleteReposParams() *DeleteReposParams

NewDeleteReposParams creates a new DeleteReposParams object with the default values initialized.

func NewDeleteReposParamsWithContext

func NewDeleteReposParamsWithContext(ctx context.Context) *DeleteReposParams

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

func NewDeleteReposParamsWithHTTPClient

func NewDeleteReposParamsWithHTTPClient(client *http.Client) *DeleteReposParams

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

func NewDeleteReposParamsWithTimeout

func NewDeleteReposParamsWithTimeout(timeout time.Duration) *DeleteReposParams

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

func (*DeleteReposParams) SetBody

SetBody adds the body to the delete repos params

func (*DeleteReposParams) SetContext

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

SetContext adds the context to the delete repos params

func (*DeleteReposParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete repos params

func (*DeleteReposParams) SetTimeout

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

SetTimeout adds the timeout to the delete repos params

func (*DeleteReposParams) WithBody

WithBody adds the body to the delete repos params

func (*DeleteReposParams) WithContext

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

WithContext adds the context to the delete repos params

func (*DeleteReposParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete repos params

func (*DeleteReposParams) WithTimeout

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

WithTimeout adds the timeout to the delete repos params

func (*DeleteReposParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteReposReader

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

DeleteReposReader is a Reader for the DeleteRepos structure.

func (*DeleteReposReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DescribeReposOK

type DescribeReposOK struct {
	Payload *models.OpenpitrixDescribeReposResponse
}

DescribeReposOK handles this case with default header values.

DescribeReposOK describe repos o k

func NewDescribeReposOK

func NewDescribeReposOK() *DescribeReposOK

NewDescribeReposOK creates a DescribeReposOK with default headers values

func (*DescribeReposOK) Error

func (o *DescribeReposOK) Error() string

type DescribeReposParams

type DescribeReposParams struct {

	/*CategoryID*/
	CategoryID []string
	/*Label*/
	Label *string
	/*Limit*/
	Limit *int64
	/*Name*/
	Name []string
	/*Offset*/
	Offset *int64
	/*Provider*/
	Provider []string
	/*RepoID*/
	RepoID []string
	/*Selector*/
	Selector *string
	/*Status*/
	Status []string
	/*Type*/
	Type []string
	/*Visibility*/
	Visibility []string

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

DescribeReposParams contains all the parameters to send to the API endpoint for the describe repos operation typically these are written to a http.Request

func NewDescribeReposParams

func NewDescribeReposParams() *DescribeReposParams

NewDescribeReposParams creates a new DescribeReposParams object with the default values initialized.

func NewDescribeReposParamsWithContext

func NewDescribeReposParamsWithContext(ctx context.Context) *DescribeReposParams

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

func NewDescribeReposParamsWithHTTPClient

func NewDescribeReposParamsWithHTTPClient(client *http.Client) *DescribeReposParams

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

func NewDescribeReposParamsWithTimeout

func NewDescribeReposParamsWithTimeout(timeout time.Duration) *DescribeReposParams

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

func (*DescribeReposParams) SetCategoryID

func (o *DescribeReposParams) SetCategoryID(categoryID []string)

SetCategoryID adds the categoryId to the describe repos params

func (*DescribeReposParams) SetContext

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

SetContext adds the context to the describe repos params

func (*DescribeReposParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the describe repos params

func (*DescribeReposParams) SetLabel

func (o *DescribeReposParams) SetLabel(label *string)

SetLabel adds the label to the describe repos params

func (*DescribeReposParams) SetLimit

func (o *DescribeReposParams) SetLimit(limit *int64)

SetLimit adds the limit to the describe repos params

func (*DescribeReposParams) SetName

func (o *DescribeReposParams) SetName(name []string)

SetName adds the name to the describe repos params

func (*DescribeReposParams) SetOffset

func (o *DescribeReposParams) SetOffset(offset *int64)

SetOffset adds the offset to the describe repos params

func (*DescribeReposParams) SetProvider

func (o *DescribeReposParams) SetProvider(provider []string)

SetProvider adds the provider to the describe repos params

func (*DescribeReposParams) SetRepoID

func (o *DescribeReposParams) SetRepoID(repoID []string)

SetRepoID adds the repoId to the describe repos params

func (*DescribeReposParams) SetSelector

func (o *DescribeReposParams) SetSelector(selector *string)

SetSelector adds the selector to the describe repos params

func (*DescribeReposParams) SetStatus

func (o *DescribeReposParams) SetStatus(status []string)

SetStatus adds the status to the describe repos params

func (*DescribeReposParams) SetTimeout

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

SetTimeout adds the timeout to the describe repos params

func (*DescribeReposParams) SetType

func (o *DescribeReposParams) SetType(typeVar []string)

SetType adds the type to the describe repos params

func (*DescribeReposParams) SetVisibility

func (o *DescribeReposParams) SetVisibility(visibility []string)

SetVisibility adds the visibility to the describe repos params

func (*DescribeReposParams) WithCategoryID

func (o *DescribeReposParams) WithCategoryID(categoryID []string) *DescribeReposParams

WithCategoryID adds the categoryID to the describe repos params

func (*DescribeReposParams) WithContext

WithContext adds the context to the describe repos params

func (*DescribeReposParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the describe repos params

func (*DescribeReposParams) WithLabel

func (o *DescribeReposParams) WithLabel(label *string) *DescribeReposParams

WithLabel adds the label to the describe repos params

func (*DescribeReposParams) WithLimit

func (o *DescribeReposParams) WithLimit(limit *int64) *DescribeReposParams

WithLimit adds the limit to the describe repos params

func (*DescribeReposParams) WithName

func (o *DescribeReposParams) WithName(name []string) *DescribeReposParams

WithName adds the name to the describe repos params

func (*DescribeReposParams) WithOffset

func (o *DescribeReposParams) WithOffset(offset *int64) *DescribeReposParams

WithOffset adds the offset to the describe repos params

func (*DescribeReposParams) WithProvider

func (o *DescribeReposParams) WithProvider(provider []string) *DescribeReposParams

WithProvider adds the provider to the describe repos params

func (*DescribeReposParams) WithRepoID

func (o *DescribeReposParams) WithRepoID(repoID []string) *DescribeReposParams

WithRepoID adds the repoID to the describe repos params

func (*DescribeReposParams) WithSelector

func (o *DescribeReposParams) WithSelector(selector *string) *DescribeReposParams

WithSelector adds the selector to the describe repos params

func (*DescribeReposParams) WithStatus

func (o *DescribeReposParams) WithStatus(status []string) *DescribeReposParams

WithStatus adds the status to the describe repos params

func (*DescribeReposParams) WithTimeout

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

WithTimeout adds the timeout to the describe repos params

func (*DescribeReposParams) WithType

func (o *DescribeReposParams) WithType(typeVar []string) *DescribeReposParams

WithType adds the typeVar to the describe repos params

func (*DescribeReposParams) WithVisibility

func (o *DescribeReposParams) WithVisibility(visibility []string) *DescribeReposParams

WithVisibility adds the visibility to the describe repos params

func (*DescribeReposParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DescribeReposReader

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

DescribeReposReader is a Reader for the DescribeRepos structure.

func (*DescribeReposReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ModifyRepoOK

type ModifyRepoOK struct {
	Payload *models.OpenpitrixModifyRepoResponse
}

ModifyRepoOK handles this case with default header values.

ModifyRepoOK modify repo o k

func NewModifyRepoOK

func NewModifyRepoOK() *ModifyRepoOK

NewModifyRepoOK creates a ModifyRepoOK with default headers values

func (*ModifyRepoOK) Error

func (o *ModifyRepoOK) Error() string

type ModifyRepoParams

type ModifyRepoParams struct {

	/*Body*/
	Body *models.OpenpitrixModifyRepoRequest

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

ModifyRepoParams contains all the parameters to send to the API endpoint for the modify repo operation typically these are written to a http.Request

func NewModifyRepoParams

func NewModifyRepoParams() *ModifyRepoParams

NewModifyRepoParams creates a new ModifyRepoParams object with the default values initialized.

func NewModifyRepoParamsWithContext

func NewModifyRepoParamsWithContext(ctx context.Context) *ModifyRepoParams

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

func NewModifyRepoParamsWithHTTPClient

func NewModifyRepoParamsWithHTTPClient(client *http.Client) *ModifyRepoParams

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

func NewModifyRepoParamsWithTimeout

func NewModifyRepoParamsWithTimeout(timeout time.Duration) *ModifyRepoParams

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

func (*ModifyRepoParams) SetBody

SetBody adds the body to the modify repo params

func (*ModifyRepoParams) SetContext

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

SetContext adds the context to the modify repo params

func (*ModifyRepoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the modify repo params

func (*ModifyRepoParams) SetTimeout

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

SetTimeout adds the timeout to the modify repo params

func (*ModifyRepoParams) WithBody

WithBody adds the body to the modify repo params

func (*ModifyRepoParams) WithContext

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

WithContext adds the context to the modify repo params

func (*ModifyRepoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the modify repo params

func (*ModifyRepoParams) WithTimeout

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

WithTimeout adds the timeout to the modify repo params

func (*ModifyRepoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ModifyRepoReader

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

ModifyRepoReader is a Reader for the ModifyRepo structure.

func (*ModifyRepoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ValidateRepoOK

type ValidateRepoOK struct {
	Payload *models.OpenpitrixValidateRepoResponse
}

ValidateRepoOK handles this case with default header values.

ValidateRepoOK validate repo o k

func NewValidateRepoOK

func NewValidateRepoOK() *ValidateRepoOK

NewValidateRepoOK creates a ValidateRepoOK with default headers values

func (*ValidateRepoOK) Error

func (o *ValidateRepoOK) Error() string

type ValidateRepoParams

type ValidateRepoParams struct {

	/*Credential*/
	Credential *string
	/*Type*/
	Type *string
	/*URL*/
	URL *string

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

ValidateRepoParams contains all the parameters to send to the API endpoint for the validate repo operation typically these are written to a http.Request

func NewValidateRepoParams

func NewValidateRepoParams() *ValidateRepoParams

NewValidateRepoParams creates a new ValidateRepoParams object with the default values initialized.

func NewValidateRepoParamsWithContext

func NewValidateRepoParamsWithContext(ctx context.Context) *ValidateRepoParams

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

func NewValidateRepoParamsWithHTTPClient

func NewValidateRepoParamsWithHTTPClient(client *http.Client) *ValidateRepoParams

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

func NewValidateRepoParamsWithTimeout

func NewValidateRepoParamsWithTimeout(timeout time.Duration) *ValidateRepoParams

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

func (*ValidateRepoParams) SetContext

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

SetContext adds the context to the validate repo params

func (*ValidateRepoParams) SetCredential

func (o *ValidateRepoParams) SetCredential(credential *string)

SetCredential adds the credential to the validate repo params

func (*ValidateRepoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the validate repo params

func (*ValidateRepoParams) SetTimeout

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

SetTimeout adds the timeout to the validate repo params

func (*ValidateRepoParams) SetType

func (o *ValidateRepoParams) SetType(typeVar *string)

SetType adds the type to the validate repo params

func (*ValidateRepoParams) SetURL

func (o *ValidateRepoParams) SetURL(url *string)

SetURL adds the url to the validate repo params

func (*ValidateRepoParams) WithContext

WithContext adds the context to the validate repo params

func (*ValidateRepoParams) WithCredential

func (o *ValidateRepoParams) WithCredential(credential *string) *ValidateRepoParams

WithCredential adds the credential to the validate repo params

func (*ValidateRepoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the validate repo params

func (*ValidateRepoParams) WithTimeout

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

WithTimeout adds the timeout to the validate repo params

func (*ValidateRepoParams) WithType

func (o *ValidateRepoParams) WithType(typeVar *string) *ValidateRepoParams

WithType adds the typeVar to the validate repo params

func (*ValidateRepoParams) WithURL

func (o *ValidateRepoParams) WithURL(url *string) *ValidateRepoParams

WithURL adds the url to the validate repo params

func (*ValidateRepoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ValidateRepoReader

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

ValidateRepoReader is a Reader for the ValidateRepo structure.

func (*ValidateRepoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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