buildstatus

package
v1.40.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 8 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 buildstatus API.

func (*Client) GetBuildStatus

func (a *Client) GetBuildStatus(params *GetBuildStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBuildStatusOK, error)

GetBuildStatus shows the application build status.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetBuildStatusContext instead.

func (*Client) GetBuildStatusContext added in v1.40.2

func (a *Client) GetBuildStatusContext(ctx context.Context, params *GetBuildStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBuildStatusOK, error)

GetBuildStatusContext shows the application build status.

Do not use the deprecated [GetBuildStatusParams.Context] with this method: it would be ignored.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {

	// GetBuildStatus show the application build status.
	GetBuildStatus(params *GetBuildStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBuildStatusOK, error)

	// GetBuildStatusContext show the application build status.
	GetBuildStatusContext(ctx context.Context, params *GetBuildStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBuildStatusOK, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new buildstatus API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new buildstatus API client with basic auth credentials.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new buildstatus API client with a bearer token for authentication.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetBuildStatusInternalServerError

type GetBuildStatusInternalServerError struct {
}

GetBuildStatusInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetBuildStatusInternalServerError

func NewGetBuildStatusInternalServerError() *GetBuildStatusInternalServerError

NewGetBuildStatusInternalServerError creates a GetBuildStatusInternalServerError with default headers values

func (*GetBuildStatusInternalServerError) Code

Code gets the status code for the get build status internal server error response

func (*GetBuildStatusInternalServerError) Error

func (*GetBuildStatusInternalServerError) IsClientError

func (o *GetBuildStatusInternalServerError) IsClientError() bool

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

func (*GetBuildStatusInternalServerError) IsCode

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

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

func (*GetBuildStatusInternalServerError) IsRedirect

func (o *GetBuildStatusInternalServerError) IsRedirect() bool

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

func (*GetBuildStatusInternalServerError) IsServerError

func (o *GetBuildStatusInternalServerError) IsServerError() bool

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

func (*GetBuildStatusInternalServerError) IsSuccess

func (o *GetBuildStatusInternalServerError) IsSuccess() bool

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

func (*GetBuildStatusInternalServerError) String

type GetBuildStatusOK

type GetBuildStatusOK struct {
}

GetBuildStatusOK describes a response with status code 200, with default header values.

Successful operation

func NewGetBuildStatusOK

func NewGetBuildStatusOK() *GetBuildStatusOK

NewGetBuildStatusOK creates a GetBuildStatusOK with default headers values

func (*GetBuildStatusOK) Code

func (o *GetBuildStatusOK) Code() int

Code gets the status code for the get build status o k response

func (*GetBuildStatusOK) Error

func (o *GetBuildStatusOK) Error() string

func (*GetBuildStatusOK) IsClientError

func (o *GetBuildStatusOK) IsClientError() bool

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

func (*GetBuildStatusOK) IsCode

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

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

func (*GetBuildStatusOK) IsRedirect

func (o *GetBuildStatusOK) IsRedirect() bool

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

func (*GetBuildStatusOK) IsServerError

func (o *GetBuildStatusOK) IsServerError() bool

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

func (*GetBuildStatusOK) IsSuccess

func (o *GetBuildStatusOK) IsSuccess() bool

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

func (*GetBuildStatusOK) String

func (o *GetBuildStatusOK) String() string

type GetBuildStatusParams

type GetBuildStatusParams struct {

	// AppName.
	//
	// name of Radix application
	AppName string

	// EnvName.
	//
	// name of the environment
	EnvName string

	// Pipeline.
	//
	// Type of pipeline job to get status for.
	//
	// Default: "build-deploy"
	Pipeline *string

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

GetBuildStatusParams contains all the parameters to send to the API endpoint

for the get build status operation.

Typically these are written to a http.Request.

func NewGetBuildStatusParams

func NewGetBuildStatusParams() *GetBuildStatusParams

NewGetBuildStatusParams creates a new GetBuildStatusParams 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 NewGetBuildStatusParamsWithContext deprecated

func NewGetBuildStatusParamsWithContext(ctx context.Context) *GetBuildStatusParams

NewGetBuildStatusParamsWithContext creates a new GetBuildStatusParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetBuildStatusParams.

func NewGetBuildStatusParamsWithHTTPClient

func NewGetBuildStatusParamsWithHTTPClient(client *http.Client) *GetBuildStatusParams

NewGetBuildStatusParamsWithHTTPClient creates a new GetBuildStatusParams object with the ability to set a custom HTTPClient for a request.

func NewGetBuildStatusParamsWithTimeout

func NewGetBuildStatusParamsWithTimeout(timeout time.Duration) *GetBuildStatusParams

NewGetBuildStatusParamsWithTimeout creates a new GetBuildStatusParams object with the ability to set a timeout on a request.

func (*GetBuildStatusParams) SetAppName

func (o *GetBuildStatusParams) SetAppName(appName string)

SetAppName adds the appName to the get build status params.

func (*GetBuildStatusParams) SetContext deprecated

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

SetContext adds the context to the get build status params.

Deprecated: use the operation call with context to pass the context instead of GetBuildStatusParams.

func (*GetBuildStatusParams) SetDefaults

func (o *GetBuildStatusParams) SetDefaults()

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

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

func (*GetBuildStatusParams) SetEnvName

func (o *GetBuildStatusParams) SetEnvName(envName string)

SetEnvName adds the envName to the get build status params.

func (*GetBuildStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get build status params.

func (*GetBuildStatusParams) SetPipeline

func (o *GetBuildStatusParams) SetPipeline(pipeline *string)

SetPipeline adds the pipeline to the get build status params.

func (*GetBuildStatusParams) SetTimeout

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

SetTimeout adds the timeout to the get build status params.

func (*GetBuildStatusParams) WithAppName

func (o *GetBuildStatusParams) WithAppName(appName string) *GetBuildStatusParams

WithAppName adds the appName to the get build status params.

func (*GetBuildStatusParams) WithContext deprecated

WithContext adds the context to the get build status params.

Deprecated: use the operation call with context to pass the context instead of GetBuildStatusParams.

func (*GetBuildStatusParams) WithDefaults

func (o *GetBuildStatusParams) WithDefaults() *GetBuildStatusParams

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

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

func (*GetBuildStatusParams) WithEnvName

func (o *GetBuildStatusParams) WithEnvName(envName string) *GetBuildStatusParams

WithEnvName adds the envName to the get build status params.

func (*GetBuildStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get build status params.

func (*GetBuildStatusParams) WithPipeline

func (o *GetBuildStatusParams) WithPipeline(pipeline *string) *GetBuildStatusParams

WithPipeline adds the pipeline to the get build status params.

func (*GetBuildStatusParams) WithTimeout

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

WithTimeout adds the timeout to the get build status params.

func (*GetBuildStatusParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type GetBuildStatusReader

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

GetBuildStatusReader is a Reader for the GetBuildStatus structure.

func (*GetBuildStatusReader) ReadResponse

func (o *GetBuildStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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