project

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: MIT Imports: 10 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 project API

func New

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

New creates a new project API client.

func (*Client) FindProject

func (a *Client) FindProject(params *FindProjectParams, authInfo runtime.ClientAuthInfoWriter) (*FindProjectOK, error)

FindProject gets project by id

func (*Client) FindProjects

func (a *Client) FindProjects(params *FindProjectsParams, authInfo runtime.ClientAuthInfoWriter) (*FindProjectsOK, error)

FindProjects gets all projects that match given properties

func (*Client) ListProjects

func (a *Client) ListProjects(params *ListProjectsParams, authInfo runtime.ClientAuthInfoWriter) (*ListProjectsOK, error)

ListProjects gets all projects

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type FindProjectDefault

type FindProjectDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

FindProjectDefault handles this case with default header values.

Error

func NewFindProjectDefault

func NewFindProjectDefault(code int) *FindProjectDefault

NewFindProjectDefault creates a FindProjectDefault with default headers values

func (*FindProjectDefault) Code

func (o *FindProjectDefault) Code() int

Code gets the status code for the find project default response

func (*FindProjectDefault) Error

func (o *FindProjectDefault) Error() string

type FindProjectOK

type FindProjectOK struct {
	Payload *models.V1ProjectResponse
}

FindProjectOK handles this case with default header values.

OK

func NewFindProjectOK

func NewFindProjectOK() *FindProjectOK

NewFindProjectOK creates a FindProjectOK with default headers values

func (*FindProjectOK) Error

func (o *FindProjectOK) Error() string

type FindProjectParams

type FindProjectParams struct {

	/*ID
	  identifier of the project

	*/
	ID string

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

FindProjectParams contains all the parameters to send to the API endpoint for the find project operation typically these are written to a http.Request

func NewFindProjectParams

func NewFindProjectParams() *FindProjectParams

NewFindProjectParams creates a new FindProjectParams object with the default values initialized.

func NewFindProjectParamsWithContext

func NewFindProjectParamsWithContext(ctx context.Context) *FindProjectParams

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

func NewFindProjectParamsWithHTTPClient

func NewFindProjectParamsWithHTTPClient(client *http.Client) *FindProjectParams

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

func NewFindProjectParamsWithTimeout

func NewFindProjectParamsWithTimeout(timeout time.Duration) *FindProjectParams

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

func (*FindProjectParams) SetContext

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

SetContext adds the context to the find project params

func (*FindProjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find project params

func (*FindProjectParams) SetID

func (o *FindProjectParams) SetID(id string)

SetID adds the id to the find project params

func (*FindProjectParams) SetTimeout

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

SetTimeout adds the timeout to the find project params

func (*FindProjectParams) WithContext

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

WithContext adds the context to the find project params

func (*FindProjectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the find project params

func (*FindProjectParams) WithID

WithID adds the id to the find project params

func (*FindProjectParams) WithTimeout

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

WithTimeout adds the timeout to the find project params

func (*FindProjectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FindProjectReader

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

FindProjectReader is a Reader for the FindProject structure.

func (*FindProjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FindProjectsDefault

type FindProjectsDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

FindProjectsDefault handles this case with default header values.

Error

func NewFindProjectsDefault

func NewFindProjectsDefault(code int) *FindProjectsDefault

NewFindProjectsDefault creates a FindProjectsDefault with default headers values

func (*FindProjectsDefault) Code

func (o *FindProjectsDefault) Code() int

Code gets the status code for the find projects default response

func (*FindProjectsDefault) Error

func (o *FindProjectsDefault) Error() string

type FindProjectsOK

type FindProjectsOK struct {
	Payload []*models.V1ProjectResponse
}

FindProjectsOK handles this case with default header values.

OK

func NewFindProjectsOK

func NewFindProjectsOK() *FindProjectsOK

NewFindProjectsOK creates a FindProjectsOK with default headers values

func (*FindProjectsOK) Error

func (o *FindProjectsOK) Error() string

type FindProjectsParams

type FindProjectsParams struct {

	/*Body*/
	Body *models.V1ProjectFindRequest

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

FindProjectsParams contains all the parameters to send to the API endpoint for the find projects operation typically these are written to a http.Request

func NewFindProjectsParams

func NewFindProjectsParams() *FindProjectsParams

NewFindProjectsParams creates a new FindProjectsParams object with the default values initialized.

func NewFindProjectsParamsWithContext

func NewFindProjectsParamsWithContext(ctx context.Context) *FindProjectsParams

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

func NewFindProjectsParamsWithHTTPClient

func NewFindProjectsParamsWithHTTPClient(client *http.Client) *FindProjectsParams

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

func NewFindProjectsParamsWithTimeout

func NewFindProjectsParamsWithTimeout(timeout time.Duration) *FindProjectsParams

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

func (*FindProjectsParams) SetBody

SetBody adds the body to the find projects params

func (*FindProjectsParams) SetContext

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

SetContext adds the context to the find projects params

func (*FindProjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the find projects params

func (*FindProjectsParams) SetTimeout

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

SetTimeout adds the timeout to the find projects params

func (*FindProjectsParams) WithBody

WithBody adds the body to the find projects params

func (*FindProjectsParams) WithContext

WithContext adds the context to the find projects params

func (*FindProjectsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the find projects params

func (*FindProjectsParams) WithTimeout

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

WithTimeout adds the timeout to the find projects params

func (*FindProjectsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FindProjectsReader

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

FindProjectsReader is a Reader for the FindProjects structure.

func (*FindProjectsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProjectsDefault

type ListProjectsDefault struct {
	Payload *models.HttperrorsHTTPErrorResponse
	// contains filtered or unexported fields
}

ListProjectsDefault handles this case with default header values.

Error

func NewListProjectsDefault

func NewListProjectsDefault(code int) *ListProjectsDefault

NewListProjectsDefault creates a ListProjectsDefault with default headers values

func (*ListProjectsDefault) Code

func (o *ListProjectsDefault) Code() int

Code gets the status code for the list projects default response

func (*ListProjectsDefault) Error

func (o *ListProjectsDefault) Error() string

type ListProjectsOK

type ListProjectsOK struct {
	Payload []*models.V1ProjectResponse
}

ListProjectsOK handles this case with default header values.

OK

func NewListProjectsOK

func NewListProjectsOK() *ListProjectsOK

NewListProjectsOK creates a ListProjectsOK with default headers values

func (*ListProjectsOK) Error

func (o *ListProjectsOK) Error() string

type ListProjectsParams

type ListProjectsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewListProjectsParams

func NewListProjectsParams() *ListProjectsParams

NewListProjectsParams creates a new ListProjectsParams object with the default values initialized.

func NewListProjectsParamsWithContext

func NewListProjectsParamsWithContext(ctx context.Context) *ListProjectsParams

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

func NewListProjectsParamsWithHTTPClient

func NewListProjectsParamsWithHTTPClient(client *http.Client) *ListProjectsParams

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

func NewListProjectsParamsWithTimeout

func NewListProjectsParamsWithTimeout(timeout time.Duration) *ListProjectsParams

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

func (*ListProjectsParams) SetContext

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

SetContext adds the context to the list projects params

func (*ListProjectsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list projects params

func (*ListProjectsParams) SetTimeout

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

SetTimeout adds the timeout to the list projects params

func (*ListProjectsParams) WithContext

WithContext adds the context to the list projects params

func (*ListProjectsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list projects params

func (*ListProjectsParams) WithTimeout

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

WithTimeout adds the timeout to the list projects params

func (*ListProjectsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListProjectsReader

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

ListProjectsReader is a Reader for the ListProjects structure.

func (*ListProjectsReader) ReadResponse

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