build

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for build API

func (*Client) GetBuilds

func (a *Client) GetBuilds(params *GetBuildsParams, opts ...ClientOption) (*GetBuildsOK, error)

GetBuilds fetches a list of all builds

Fetch a list of all builds.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetBuilds(params *GetBuildsParams, opts ...ClientOption) (*GetBuildsOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new build API client.

type GetBuildsInternalServerError

type GetBuildsInternalServerError struct {
	Payload interface{}
}
GetBuildsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetBuildsInternalServerError

func NewGetBuildsInternalServerError() *GetBuildsInternalServerError

NewGetBuildsInternalServerError creates a GetBuildsInternalServerError with default headers values

func (*GetBuildsInternalServerError) Error

func (*GetBuildsInternalServerError) GetPayload

func (o *GetBuildsInternalServerError) GetPayload() interface{}

type GetBuildsOK

type GetBuildsOK struct {
	Payload []*models.BuildBuild
}
GetBuildsOK describes a response with status code 200, with default header values.

OK

func NewGetBuildsOK

func NewGetBuildsOK() *GetBuildsOK

NewGetBuildsOK creates a GetBuildsOK with default headers values

func (*GetBuildsOK) Error

func (o *GetBuildsOK) Error() string

func (*GetBuildsOK) GetPayload

func (o *GetBuildsOK) GetPayload() []*models.BuildBuild

type GetBuildsParams

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

GetBuildsParams contains all the parameters to send to the API endpoint

for the get builds operation.

Typically these are written to a http.Request.

func NewGetBuildsParams

func NewGetBuildsParams() *GetBuildsParams

NewGetBuildsParams creates a new GetBuildsParams 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 NewGetBuildsParamsWithContext

func NewGetBuildsParamsWithContext(ctx context.Context) *GetBuildsParams

NewGetBuildsParamsWithContext creates a new GetBuildsParams object with the ability to set a context for a request.

func NewGetBuildsParamsWithHTTPClient

func NewGetBuildsParamsWithHTTPClient(client *http.Client) *GetBuildsParams

NewGetBuildsParamsWithHTTPClient creates a new GetBuildsParams object with the ability to set a custom HTTPClient for a request.

func NewGetBuildsParamsWithTimeout

func NewGetBuildsParamsWithTimeout(timeout time.Duration) *GetBuildsParams

NewGetBuildsParamsWithTimeout creates a new GetBuildsParams object with the ability to set a timeout on a request.

func (*GetBuildsParams) SetContext

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

SetContext adds the context to the get builds params

func (*GetBuildsParams) SetDefaults

func (o *GetBuildsParams) SetDefaults()

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

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

func (*GetBuildsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get builds params

func (*GetBuildsParams) SetTimeout

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

SetTimeout adds the timeout to the get builds params

func (*GetBuildsParams) WithContext

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

WithContext adds the context to the get builds params

func (*GetBuildsParams) WithDefaults

func (o *GetBuildsParams) WithDefaults() *GetBuildsParams

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

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

func (*GetBuildsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get builds params

func (*GetBuildsParams) WithTimeout

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

WithTimeout adds the timeout to the get builds params

func (*GetBuildsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBuildsReader

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

GetBuildsReader is a Reader for the GetBuilds structure.

func (*GetBuildsReader) ReadResponse

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