buildlogstream_operations

package
v0.0.0-...-e2d7b3d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: BSD-3-Clause 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 buildlogstream operations API

func (*Client) Get

func (a *Client) Get(params *GetParams) (*GetOK, error)

Get starts streaming build logs

streams build logs for a given build_id

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	Get(params *GetParams) (*GetOK, 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 buildlogstream operations API client.

type GetBadRequest

type GetBadRequest struct {
	Payload *buildlogstream_models.Message
}

GetBadRequest handles this case with default header values.

Bad Request

func NewGetBadRequest

func NewGetBadRequest() *GetBadRequest

NewGetBadRequest creates a GetBadRequest with default headers values

func (*GetBadRequest) Error

func (o *GetBadRequest) Error() string

func (*GetBadRequest) GetPayload

func (o *GetBadRequest) GetPayload() *buildlogstream_models.Message

type GetForbidden

type GetForbidden struct {
	Payload *buildlogstream_models.Message
}

GetForbidden handles this case with default header values.

Forbidden

func NewGetForbidden

func NewGetForbidden() *GetForbidden

NewGetForbidden creates a GetForbidden with default headers values

func (*GetForbidden) Error

func (o *GetForbidden) Error() string

func (*GetForbidden) GetPayload

func (o *GetForbidden) GetPayload() *buildlogstream_models.Message

type GetInternalServerError

type GetInternalServerError struct {
	Payload *buildlogstream_models.Message
}

GetInternalServerError handles this case with default header values.

Server Error

func NewGetInternalServerError

func NewGetInternalServerError() *GetInternalServerError

NewGetInternalServerError creates a GetInternalServerError with default headers values

func (*GetInternalServerError) Error

func (o *GetInternalServerError) Error() string

func (*GetInternalServerError) GetPayload

type GetNotFound

type GetNotFound struct {
	Payload *buildlogstream_models.Message
}

GetNotFound handles this case with default header values.

Not Found

func NewGetNotFound

func NewGetNotFound() *GetNotFound

NewGetNotFound creates a GetNotFound with default headers values

func (*GetNotFound) Error

func (o *GetNotFound) Error() string

func (*GetNotFound) GetPayload

func (o *GetNotFound) GetPayload() *buildlogstream_models.Message

type GetOK

type GetOK struct {
	Payload *buildlogstream_models.StatusMessageEnvelope
}

GetOK handles this case with default header values.

Open websocket connection to stream build logs

func NewGetOK

func NewGetOK() *GetOK

NewGetOK creates a GetOK with default headers values

func (*GetOK) Error

func (o *GetOK) Error() string

func (*GetOK) GetPayload

type GetParams

type GetParams struct {

	/*LogRequest*/
	LogRequest *buildlogstream_models.LogRequest

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

GetParams contains all the parameters to send to the API endpoint for the get operation typically these are written to a http.Request

func NewGetParams

func NewGetParams() *GetParams

NewGetParams creates a new GetParams object with the default values initialized.

func NewGetParamsWithContext

func NewGetParamsWithContext(ctx context.Context) *GetParams

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

func NewGetParamsWithHTTPClient

func NewGetParamsWithHTTPClient(client *http.Client) *GetParams

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

func NewGetParamsWithTimeout

func NewGetParamsWithTimeout(timeout time.Duration) *GetParams

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

func (*GetParams) SetContext

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

SetContext adds the context to the get params

func (*GetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get params

func (*GetParams) SetLogRequest

func (o *GetParams) SetLogRequest(logRequest *buildlogstream_models.LogRequest)

SetLogRequest adds the logRequest to the get params

func (*GetParams) SetTimeout

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

SetTimeout adds the timeout to the get params

func (*GetParams) WithContext

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

WithContext adds the context to the get params

func (*GetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get params

func (*GetParams) WithLogRequest

func (o *GetParams) WithLogRequest(logRequest *buildlogstream_models.LogRequest) *GetParams

WithLogRequest adds the logRequest to the get params

func (*GetParams) WithTimeout

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

WithTimeout adds the timeout to the get params

func (*GetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReader

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

GetReader is a Reader for the Get structure.

func (*GetReader) ReadResponse

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