headchef_operations

package
v0.0.0-...-7426b64 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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 ArtifactJobStatusDefault

type ArtifactJobStatusDefault struct {
	Payload *headchef_models.RestAPIError
	// contains filtered or unexported fields
}

ArtifactJobStatusDefault handles this case with default header values.

If there is an error processing the request

func NewArtifactJobStatusDefault

func NewArtifactJobStatusDefault(code int) *ArtifactJobStatusDefault

NewArtifactJobStatusDefault creates a ArtifactJobStatusDefault with default headers values

func (*ArtifactJobStatusDefault) Code

func (o *ArtifactJobStatusDefault) Code() int

Code gets the status code for the artifact job status default response

func (*ArtifactJobStatusDefault) Error

func (o *ArtifactJobStatusDefault) Error() string

type ArtifactJobStatusNotFound

type ArtifactJobStatusNotFound struct {
	Payload *headchef_models.RestAPIError
}

ArtifactJobStatusNotFound handles this case with default header values.

No artifact exists with the request artifact ID

func NewArtifactJobStatusNotFound

func NewArtifactJobStatusNotFound() *ArtifactJobStatusNotFound

NewArtifactJobStatusNotFound creates a ArtifactJobStatusNotFound with default headers values

func (*ArtifactJobStatusNotFound) Error

func (o *ArtifactJobStatusNotFound) Error() string

type ArtifactJobStatusOK

type ArtifactJobStatusOK struct {
}

ArtifactJobStatusOK handles this case with default header values.

Job completion has been recorded

func NewArtifactJobStatusOK

func NewArtifactJobStatusOK() *ArtifactJobStatusOK

NewArtifactJobStatusOK creates a ArtifactJobStatusOK with default headers values

func (*ArtifactJobStatusOK) Error

func (o *ArtifactJobStatusOK) Error() string

type ArtifactJobStatusParams

type ArtifactJobStatusParams struct {

	/*ArtifactID*/
	ArtifactID strfmt.UUID
	/*Job*/
	Job *headchef_models.JobComplete

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

ArtifactJobStatusParams contains all the parameters to send to the API endpoint for the artifact job status operation typically these are written to a http.Request

func NewArtifactJobStatusParams

func NewArtifactJobStatusParams() *ArtifactJobStatusParams

NewArtifactJobStatusParams creates a new ArtifactJobStatusParams object with the default values initialized.

func NewArtifactJobStatusParamsWithContext

func NewArtifactJobStatusParamsWithContext(ctx context.Context) *ArtifactJobStatusParams

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

func NewArtifactJobStatusParamsWithHTTPClient

func NewArtifactJobStatusParamsWithHTTPClient(client *http.Client) *ArtifactJobStatusParams

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

func NewArtifactJobStatusParamsWithTimeout

func NewArtifactJobStatusParamsWithTimeout(timeout time.Duration) *ArtifactJobStatusParams

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

func (*ArtifactJobStatusParams) SetArtifactID

func (o *ArtifactJobStatusParams) SetArtifactID(artifactID strfmt.UUID)

SetArtifactID adds the artifactId to the artifact job status params

func (*ArtifactJobStatusParams) SetContext

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

SetContext adds the context to the artifact job status params

func (*ArtifactJobStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the artifact job status params

func (*ArtifactJobStatusParams) SetJob

SetJob adds the job to the artifact job status params

func (*ArtifactJobStatusParams) SetTimeout

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

SetTimeout adds the timeout to the artifact job status params

func (*ArtifactJobStatusParams) WithArtifactID

func (o *ArtifactJobStatusParams) WithArtifactID(artifactID strfmt.UUID) *ArtifactJobStatusParams

WithArtifactID adds the artifactID to the artifact job status params

func (*ArtifactJobStatusParams) WithContext

WithContext adds the context to the artifact job status params

func (*ArtifactJobStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the artifact job status params

func (*ArtifactJobStatusParams) WithJob

WithJob adds the job to the artifact job status params

func (*ArtifactJobStatusParams) WithTimeout

WithTimeout adds the timeout to the artifact job status params

func (*ArtifactJobStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ArtifactJobStatusReader

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

ArtifactJobStatusReader is a Reader for the ArtifactJobStatus structure.

func (*ArtifactJobStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for headchef operations API

func New

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

New creates a new headchef operations API client.

func (*Client) ArtifactJobStatus

func (a *Client) ArtifactJobStatus(params *ArtifactJobStatusParams) (*ArtifactJobStatusOK, error)

ArtifactJobStatus Receives job status callbacks from the scheduler when a build job for a given artifact request completes/fails. If a job fails or errors, the build will be marked as failed.

func (*Client) GetArtifact

func (a *Client) GetArtifact(params *GetArtifactParams) (*GetArtifactOK, error)

GetArtifact Get an individual artifact.

func (*Client) GetBuildStatus

func (a *Client) GetBuildStatus(params *GetBuildStatusParams) (*GetBuildStatusOK, error)

GetBuildStatus DEPRECATED, USE getBuildStatusV1 INSTEAD

func (*Client) GetBuildStatusV1

func (a *Client) GetBuildStatusV1(params *GetBuildStatusV1Params) (*GetBuildStatusV1OK, error)

GetBuildStatusV1 Get the status of a build that has previously been started using the submitted recipe's ID. It is also possible to get a camel build's status by build request ID, but this functionality is deprecated and does not work for alternative builds. Status requests for pre-platform builds will always result in a 404 as these are not actual platform builds.

func (*Client) GetBuildStatusV2

func (a *Client) GetBuildStatusV2(params *GetBuildStatusV2Params) (*GetBuildStatusV2OK, error)

GetBuildStatusV2 Get the status of a build plan driven build that has previously been started.

func (*Client) HealthCheck

func (a *Client) HealthCheck(params *HealthCheckParams) (*HealthCheckOK, error)

HealthCheck health check API

func (*Client) JobStatus

func (a *Client) JobStatus(params *JobStatusParams) (*JobStatusOK, error)

JobStatus Receives job status callbacks from the scheduler when jobs for a given build request complete/fail. If a job fails the build will be marked as failed.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StartBuildV1

StartBuildV1 start build v1 API

func (*Client) StartBuildV2

StartBuildV2 start build v2 API

type GetArtifactDefault

type GetArtifactDefault struct {
	Payload *headchef_models.RestAPIError
	// contains filtered or unexported fields
}

GetArtifactDefault handles this case with default header values.

If there is an error processing the request

func NewGetArtifactDefault

func NewGetArtifactDefault(code int) *GetArtifactDefault

NewGetArtifactDefault creates a GetArtifactDefault with default headers values

func (*GetArtifactDefault) Code

func (o *GetArtifactDefault) Code() int

Code gets the status code for the get artifact default response

func (*GetArtifactDefault) Error

func (o *GetArtifactDefault) Error() string

type GetArtifactNotFound

type GetArtifactNotFound struct {
	Payload *headchef_models.RestAPIError
}

GetArtifactNotFound handles this case with default header values.

No artifact with the specified artifact ID has been submitted to the Head Chef.

func NewGetArtifactNotFound

func NewGetArtifactNotFound() *GetArtifactNotFound

NewGetArtifactNotFound creates a GetArtifactNotFound with default headers values

func (*GetArtifactNotFound) Error

func (o *GetArtifactNotFound) Error() string

type GetArtifactOK

type GetArtifactOK struct {
	Payload *headchef_models.V1Artifact
}

GetArtifactOK handles this case with default header values.

The requested artifact

func NewGetArtifactOK

func NewGetArtifactOK() *GetArtifactOK

NewGetArtifactOK creates a GetArtifactOK with default headers values

func (*GetArtifactOK) Error

func (o *GetArtifactOK) Error() string

type GetArtifactParams

type GetArtifactParams struct {

	/*ArtifactID*/
	ArtifactID strfmt.UUID

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

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

func NewGetArtifactParams

func NewGetArtifactParams() *GetArtifactParams

NewGetArtifactParams creates a new GetArtifactParams object with the default values initialized.

func NewGetArtifactParamsWithContext

func NewGetArtifactParamsWithContext(ctx context.Context) *GetArtifactParams

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

func NewGetArtifactParamsWithHTTPClient

func NewGetArtifactParamsWithHTTPClient(client *http.Client) *GetArtifactParams

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

func NewGetArtifactParamsWithTimeout

func NewGetArtifactParamsWithTimeout(timeout time.Duration) *GetArtifactParams

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

func (*GetArtifactParams) SetArtifactID

func (o *GetArtifactParams) SetArtifactID(artifactID strfmt.UUID)

SetArtifactID adds the artifactId to the get artifact params

func (*GetArtifactParams) SetContext

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

SetContext adds the context to the get artifact params

func (*GetArtifactParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get artifact params

func (*GetArtifactParams) SetTimeout

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

SetTimeout adds the timeout to the get artifact params

func (*GetArtifactParams) WithArtifactID

func (o *GetArtifactParams) WithArtifactID(artifactID strfmt.UUID) *GetArtifactParams

WithArtifactID adds the artifactID to the get artifact params

func (*GetArtifactParams) WithContext

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

WithContext adds the context to the get artifact params

func (*GetArtifactParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get artifact params

func (*GetArtifactParams) WithTimeout

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

WithTimeout adds the timeout to the get artifact params

func (*GetArtifactParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetArtifactReader

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

GetArtifactReader is a Reader for the GetArtifact structure.

func (*GetArtifactReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBuildStatusDefault

type GetBuildStatusDefault struct {
	Payload *headchef_models.RestAPIError
	// contains filtered or unexported fields
}

GetBuildStatusDefault handles this case with default header values.

If there is an error processing the request

func NewGetBuildStatusDefault

func NewGetBuildStatusDefault(code int) *GetBuildStatusDefault

NewGetBuildStatusDefault creates a GetBuildStatusDefault with default headers values

func (*GetBuildStatusDefault) Code

func (o *GetBuildStatusDefault) Code() int

Code gets the status code for the get build status default response

func (*GetBuildStatusDefault) Error

func (o *GetBuildStatusDefault) Error() string

type GetBuildStatusNotFound

type GetBuildStatusNotFound struct {
	Payload *headchef_models.RestAPIError
}

GetBuildStatusNotFound handles this case with default header values.

No build has been requested with that request ID

func NewGetBuildStatusNotFound

func NewGetBuildStatusNotFound() *GetBuildStatusNotFound

NewGetBuildStatusNotFound creates a GetBuildStatusNotFound with default headers values

func (*GetBuildStatusNotFound) Error

func (o *GetBuildStatusNotFound) Error() string

type GetBuildStatusOK

type GetBuildStatusOK struct {
	Payload *headchef_models.V1BuildStatusResponse
}

GetBuildStatusOK handles this case with default header values.

A build has already been requested with that request ID

func NewGetBuildStatusOK

func NewGetBuildStatusOK() *GetBuildStatusOK

NewGetBuildStatusOK creates a GetBuildStatusOK with default headers values

func (*GetBuildStatusOK) Error

func (o *GetBuildStatusOK) Error() string

type GetBuildStatusParams

type GetBuildStatusParams struct {

	/*IDType
	  Optionally specify whether the provided ID is a recipe ID or a build request ID. If specified, this parameter causes the endpoint to override the default behavior and only treat the ID as the specified type when attempting to resolve a build.

	*/
	IDType *string
	/*RecipeOrBuildRequestID
	  Either the recipe ID or the build request ID of the build. This endpoint will try to find the build requested by treating the ID first as a build request ID. Only if no build is found with a matching build request ID will it fall back to treating it as a recipe ID. This behavior can be overridden using the id_type parameter.

	*/
	RecipeOrBuildRequestID strfmt.UUID

	Context    context.Context
	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 values initialized.

func NewGetBuildStatusParamsWithContext

func NewGetBuildStatusParamsWithContext(ctx context.Context) *GetBuildStatusParams

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

func NewGetBuildStatusParamsWithHTTPClient

func NewGetBuildStatusParamsWithHTTPClient(client *http.Client) *GetBuildStatusParams

NewGetBuildStatusParamsWithHTTPClient creates a new GetBuildStatusParams object with the default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*GetBuildStatusParams) SetContext

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

SetContext adds the context 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) SetIDType

func (o *GetBuildStatusParams) SetIDType(iDType *string)

SetIDType adds the idType to the get build status params

func (*GetBuildStatusParams) SetRecipeOrBuildRequestID

func (o *GetBuildStatusParams) SetRecipeOrBuildRequestID(recipeOrBuildRequestID strfmt.UUID)

SetRecipeOrBuildRequestID adds the recipeOrBuildRequestId 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) WithContext

WithContext adds the context 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) WithIDType

func (o *GetBuildStatusParams) WithIDType(iDType *string) *GetBuildStatusParams

WithIDType adds the iDType to the get build status params

func (*GetBuildStatusParams) WithRecipeOrBuildRequestID

func (o *GetBuildStatusParams) WithRecipeOrBuildRequestID(recipeOrBuildRequestID strfmt.UUID) *GetBuildStatusParams

WithRecipeOrBuildRequestID adds the recipeOrBuildRequestID 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 swagger request

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) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetBuildStatusV1Default

type GetBuildStatusV1Default struct {
	Payload *headchef_models.RestAPIError
	// contains filtered or unexported fields
}

GetBuildStatusV1Default handles this case with default header values.

If there is an error processing the request

func NewGetBuildStatusV1Default

func NewGetBuildStatusV1Default(code int) *GetBuildStatusV1Default

NewGetBuildStatusV1Default creates a GetBuildStatusV1Default with default headers values

func (*GetBuildStatusV1Default) Code

func (o *GetBuildStatusV1Default) Code() int

Code gets the status code for the get build status v1 default response

func (*GetBuildStatusV1Default) Error

func (o *GetBuildStatusV1Default) Error() string

type GetBuildStatusV1NotFound

type GetBuildStatusV1NotFound struct {
	Payload *headchef_models.RestAPIError
}

GetBuildStatusV1NotFound handles this case with default header values.

No build has been requested with that request ID

func NewGetBuildStatusV1NotFound

func NewGetBuildStatusV1NotFound() *GetBuildStatusV1NotFound

NewGetBuildStatusV1NotFound creates a GetBuildStatusV1NotFound with default headers values

func (*GetBuildStatusV1NotFound) Error

func (o *GetBuildStatusV1NotFound) Error() string

type GetBuildStatusV1OK

type GetBuildStatusV1OK struct {
	Payload *headchef_models.V1BuildStatusResponse
}

GetBuildStatusV1OK handles this case with default header values.

A build has already been requested with that request ID

func NewGetBuildStatusV1OK

func NewGetBuildStatusV1OK() *GetBuildStatusV1OK

NewGetBuildStatusV1OK creates a GetBuildStatusV1OK with default headers values

func (*GetBuildStatusV1OK) Error

func (o *GetBuildStatusV1OK) Error() string

type GetBuildStatusV1Params

type GetBuildStatusV1Params struct {

	/*IDType
	  Optionally specify whether the provided ID is a recipe ID or a build request ID. If specified, this parameter causes the endpoint to override the default behavior and only treat the ID as the specified type when attempting to resolve a build.

	*/
	IDType *string
	/*RecipeOrBuildRequestID
	  Either the recipe ID or the build request ID of the build. This endpoint will try to find the build requested by treating the ID first as a build request ID. Only if no build is found with a matching build request ID will it fall back to treating it as a recipe ID. This behavior can be overridden using the id_type parameter.

	*/
	RecipeOrBuildRequestID strfmt.UUID

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

GetBuildStatusV1Params contains all the parameters to send to the API endpoint for the get build status v1 operation typically these are written to a http.Request

func NewGetBuildStatusV1Params

func NewGetBuildStatusV1Params() *GetBuildStatusV1Params

NewGetBuildStatusV1Params creates a new GetBuildStatusV1Params object with the default values initialized.

func NewGetBuildStatusV1ParamsWithContext

func NewGetBuildStatusV1ParamsWithContext(ctx context.Context) *GetBuildStatusV1Params

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

func NewGetBuildStatusV1ParamsWithHTTPClient

func NewGetBuildStatusV1ParamsWithHTTPClient(client *http.Client) *GetBuildStatusV1Params

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

func NewGetBuildStatusV1ParamsWithTimeout

func NewGetBuildStatusV1ParamsWithTimeout(timeout time.Duration) *GetBuildStatusV1Params

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

func (*GetBuildStatusV1Params) SetContext

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

SetContext adds the context to the get build status v1 params

func (*GetBuildStatusV1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get build status v1 params

func (*GetBuildStatusV1Params) SetIDType

func (o *GetBuildStatusV1Params) SetIDType(iDType *string)

SetIDType adds the idType to the get build status v1 params

func (*GetBuildStatusV1Params) SetRecipeOrBuildRequestID

func (o *GetBuildStatusV1Params) SetRecipeOrBuildRequestID(recipeOrBuildRequestID strfmt.UUID)

SetRecipeOrBuildRequestID adds the recipeOrBuildRequestId to the get build status v1 params

func (*GetBuildStatusV1Params) SetTimeout

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

SetTimeout adds the timeout to the get build status v1 params

func (*GetBuildStatusV1Params) WithContext

WithContext adds the context to the get build status v1 params

func (*GetBuildStatusV1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get build status v1 params

func (*GetBuildStatusV1Params) WithIDType

func (o *GetBuildStatusV1Params) WithIDType(iDType *string) *GetBuildStatusV1Params

WithIDType adds the iDType to the get build status v1 params

func (*GetBuildStatusV1Params) WithRecipeOrBuildRequestID

func (o *GetBuildStatusV1Params) WithRecipeOrBuildRequestID(recipeOrBuildRequestID strfmt.UUID) *GetBuildStatusV1Params

WithRecipeOrBuildRequestID adds the recipeOrBuildRequestID to the get build status v1 params

func (*GetBuildStatusV1Params) WithTimeout

WithTimeout adds the timeout to the get build status v1 params

func (*GetBuildStatusV1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetBuildStatusV1Reader

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

GetBuildStatusV1Reader is a Reader for the GetBuildStatusV1 structure.

func (*GetBuildStatusV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBuildStatusV2Default

type GetBuildStatusV2Default struct {
	Payload *headchef_models.RestAPIError
	// contains filtered or unexported fields
}

GetBuildStatusV2Default handles this case with default header values.

If there is an error processing the request

func NewGetBuildStatusV2Default

func NewGetBuildStatusV2Default(code int) *GetBuildStatusV2Default

NewGetBuildStatusV2Default creates a GetBuildStatusV2Default with default headers values

func (*GetBuildStatusV2Default) Code

func (o *GetBuildStatusV2Default) Code() int

Code gets the status code for the get build status v2 default response

func (*GetBuildStatusV2Default) Error

func (o *GetBuildStatusV2Default) Error() string

type GetBuildStatusV2NotFound

type GetBuildStatusV2NotFound struct {
	Payload *headchef_models.RestAPIError
}

GetBuildStatusV2NotFound handles this case with default header values.

No build plan build has been started with the provided build plan ID

func NewGetBuildStatusV2NotFound

func NewGetBuildStatusV2NotFound() *GetBuildStatusV2NotFound

NewGetBuildStatusV2NotFound creates a GetBuildStatusV2NotFound with default headers values

func (*GetBuildStatusV2NotFound) Error

func (o *GetBuildStatusV2NotFound) Error() string

type GetBuildStatusV2OK

type GetBuildStatusV2OK struct {
	Payload *headchef_models.V2BuildStatusResponse
}

GetBuildStatusV2OK handles this case with default header values.

The status of the build started with that build plan ID

func NewGetBuildStatusV2OK

func NewGetBuildStatusV2OK() *GetBuildStatusV2OK

NewGetBuildStatusV2OK creates a GetBuildStatusV2OK with default headers values

func (*GetBuildStatusV2OK) Error

func (o *GetBuildStatusV2OK) Error() string

type GetBuildStatusV2Params

type GetBuildStatusV2Params struct {

	/*BuildPlanID
	  The build plan ID of the build.

	*/
	BuildPlanID strfmt.UUID

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

GetBuildStatusV2Params contains all the parameters to send to the API endpoint for the get build status v2 operation typically these are written to a http.Request

func NewGetBuildStatusV2Params

func NewGetBuildStatusV2Params() *GetBuildStatusV2Params

NewGetBuildStatusV2Params creates a new GetBuildStatusV2Params object with the default values initialized.

func NewGetBuildStatusV2ParamsWithContext

func NewGetBuildStatusV2ParamsWithContext(ctx context.Context) *GetBuildStatusV2Params

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

func NewGetBuildStatusV2ParamsWithHTTPClient

func NewGetBuildStatusV2ParamsWithHTTPClient(client *http.Client) *GetBuildStatusV2Params

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

func NewGetBuildStatusV2ParamsWithTimeout

func NewGetBuildStatusV2ParamsWithTimeout(timeout time.Duration) *GetBuildStatusV2Params

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

func (*GetBuildStatusV2Params) SetBuildPlanID

func (o *GetBuildStatusV2Params) SetBuildPlanID(buildPlanID strfmt.UUID)

SetBuildPlanID adds the buildPlanId to the get build status v2 params

func (*GetBuildStatusV2Params) SetContext

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

SetContext adds the context to the get build status v2 params

func (*GetBuildStatusV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get build status v2 params

func (*GetBuildStatusV2Params) SetTimeout

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

SetTimeout adds the timeout to the get build status v2 params

func (*GetBuildStatusV2Params) WithBuildPlanID

func (o *GetBuildStatusV2Params) WithBuildPlanID(buildPlanID strfmt.UUID) *GetBuildStatusV2Params

WithBuildPlanID adds the buildPlanID to the get build status v2 params

func (*GetBuildStatusV2Params) WithContext

WithContext adds the context to the get build status v2 params

func (*GetBuildStatusV2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get build status v2 params

func (*GetBuildStatusV2Params) WithTimeout

WithTimeout adds the timeout to the get build status v2 params

func (*GetBuildStatusV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetBuildStatusV2Reader

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

GetBuildStatusV2Reader is a Reader for the GetBuildStatusV2 structure.

func (*GetBuildStatusV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type HealthCheckDefault

type HealthCheckDefault struct {
	Payload *headchef_models.RestAPIError
	// contains filtered or unexported fields
}

HealthCheckDefault handles this case with default header values.

generic error response

func NewHealthCheckDefault

func NewHealthCheckDefault(code int) *HealthCheckDefault

NewHealthCheckDefault creates a HealthCheckDefault with default headers values

func (*HealthCheckDefault) Code

func (o *HealthCheckDefault) Code() int

Code gets the status code for the health check default response

func (*HealthCheckDefault) Error

func (o *HealthCheckDefault) Error() string

type HealthCheckOK

type HealthCheckOK struct {
	Payload bool
}

HealthCheckOK handles this case with default header values.

Indicates whether the server is healthy

func NewHealthCheckOK

func NewHealthCheckOK() *HealthCheckOK

NewHealthCheckOK creates a HealthCheckOK with default headers values

func (*HealthCheckOK) Error

func (o *HealthCheckOK) Error() string

type HealthCheckParams

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

HealthCheckParams contains all the parameters to send to the API endpoint for the health check operation typically these are written to a http.Request

func NewHealthCheckParams

func NewHealthCheckParams() *HealthCheckParams

NewHealthCheckParams creates a new HealthCheckParams object with the default values initialized.

func NewHealthCheckParamsWithContext

func NewHealthCheckParamsWithContext(ctx context.Context) *HealthCheckParams

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

func NewHealthCheckParamsWithHTTPClient

func NewHealthCheckParamsWithHTTPClient(client *http.Client) *HealthCheckParams

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

func NewHealthCheckParamsWithTimeout

func NewHealthCheckParamsWithTimeout(timeout time.Duration) *HealthCheckParams

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

func (*HealthCheckParams) SetContext

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

SetContext adds the context to the health check params

func (*HealthCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the health check params

func (*HealthCheckParams) SetTimeout

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

SetTimeout adds the timeout to the health check params

func (*HealthCheckParams) WithContext

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

WithContext adds the context to the health check params

func (*HealthCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the health check params

func (*HealthCheckParams) WithTimeout

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

WithTimeout adds the timeout to the health check params

func (*HealthCheckParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type HealthCheckReader

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

HealthCheckReader is a Reader for the HealthCheck structure.

func (*HealthCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type JobStatusDefault

type JobStatusDefault struct {
	Payload *headchef_models.RestAPIError
	// contains filtered or unexported fields
}

JobStatusDefault handles this case with default header values.

If there is an error processing the request

func NewJobStatusDefault

func NewJobStatusDefault(code int) *JobStatusDefault

NewJobStatusDefault creates a JobStatusDefault with default headers values

func (*JobStatusDefault) Code

func (o *JobStatusDefault) Code() int

Code gets the status code for the job status default response

func (*JobStatusDefault) Error

func (o *JobStatusDefault) Error() string

type JobStatusNotFound

type JobStatusNotFound struct {
	Payload *headchef_models.RestAPIError
}

JobStatusNotFound handles this case with default header values.

No build exists with that request ID

func NewJobStatusNotFound

func NewJobStatusNotFound() *JobStatusNotFound

NewJobStatusNotFound creates a JobStatusNotFound with default headers values

func (*JobStatusNotFound) Error

func (o *JobStatusNotFound) Error() string

type JobStatusOK

type JobStatusOK struct {
}

JobStatusOK handles this case with default header values.

Job completion has been recorded

func NewJobStatusOK

func NewJobStatusOK() *JobStatusOK

NewJobStatusOK creates a JobStatusOK with default headers values

func (*JobStatusOK) Error

func (o *JobStatusOK) Error() string

type JobStatusParams

type JobStatusParams struct {

	/*BuildRequestID*/
	BuildRequestID strfmt.UUID
	/*Job*/
	Job *headchef_models.JobComplete

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

JobStatusParams contains all the parameters to send to the API endpoint for the job status operation typically these are written to a http.Request

func NewJobStatusParams

func NewJobStatusParams() *JobStatusParams

NewJobStatusParams creates a new JobStatusParams object with the default values initialized.

func NewJobStatusParamsWithContext

func NewJobStatusParamsWithContext(ctx context.Context) *JobStatusParams

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

func NewJobStatusParamsWithHTTPClient

func NewJobStatusParamsWithHTTPClient(client *http.Client) *JobStatusParams

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

func NewJobStatusParamsWithTimeout

func NewJobStatusParamsWithTimeout(timeout time.Duration) *JobStatusParams

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

func (*JobStatusParams) SetBuildRequestID

func (o *JobStatusParams) SetBuildRequestID(buildRequestID strfmt.UUID)

SetBuildRequestID adds the buildRequestId to the job status params

func (*JobStatusParams) SetContext

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

SetContext adds the context to the job status params

func (*JobStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the job status params

func (*JobStatusParams) SetJob

SetJob adds the job to the job status params

func (*JobStatusParams) SetTimeout

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

SetTimeout adds the timeout to the job status params

func (*JobStatusParams) WithBuildRequestID

func (o *JobStatusParams) WithBuildRequestID(buildRequestID strfmt.UUID) *JobStatusParams

WithBuildRequestID adds the buildRequestID to the job status params

func (*JobStatusParams) WithContext

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

WithContext adds the context to the job status params

func (*JobStatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the job status params

func (*JobStatusParams) WithJob

WithJob adds the job to the job status params

func (*JobStatusParams) WithTimeout

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

WithTimeout adds the timeout to the job status params

func (*JobStatusParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type JobStatusReader

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

JobStatusReader is a Reader for the JobStatus structure.

func (*JobStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StartBuildV1Accepted

type StartBuildV1Accepted struct {
	Payload *headchef_models.V1BuildStatusResponse
}

StartBuildV1Accepted handles this case with default header values.

The requested build has been started but hasn't yet completed. The response's type field is build_started.

func NewStartBuildV1Accepted

func NewStartBuildV1Accepted() *StartBuildV1Accepted

NewStartBuildV1Accepted creates a StartBuildV1Accepted with default headers values

func (*StartBuildV1Accepted) Error

func (o *StartBuildV1Accepted) Error() string

type StartBuildV1BadRequest

type StartBuildV1BadRequest struct {
	Payload *headchef_models.InvalidBuildRequestError
}

StartBuildV1BadRequest handles this case with default header values.

The submitted build request was invalid. Consult the message and error code in the response body for further details.

func NewStartBuildV1BadRequest

func NewStartBuildV1BadRequest() *StartBuildV1BadRequest

NewStartBuildV1BadRequest creates a StartBuildV1BadRequest with default headers values

func (*StartBuildV1BadRequest) Error

func (o *StartBuildV1BadRequest) Error() string

type StartBuildV1Created

type StartBuildV1Created struct {
	Payload *headchef_models.V1BuildStatusResponse
}

StartBuildV1Created handles this case with default header values.

The requested build has already ended. The response's type field is one of: build_completed or build_failed.

func NewStartBuildV1Created

func NewStartBuildV1Created() *StartBuildV1Created

NewStartBuildV1Created creates a StartBuildV1Created with default headers values

func (*StartBuildV1Created) Error

func (o *StartBuildV1Created) Error() string

type StartBuildV1Default

type StartBuildV1Default struct {
	Payload *headchef_models.RestAPIError
	// contains filtered or unexported fields
}

StartBuildV1Default handles this case with default header values.

If there is an error processing the request

func NewStartBuildV1Default

func NewStartBuildV1Default(code int) *StartBuildV1Default

NewStartBuildV1Default creates a StartBuildV1Default with default headers values

func (*StartBuildV1Default) Code

func (o *StartBuildV1Default) Code() int

Code gets the status code for the start build v1 default response

func (*StartBuildV1Default) Error

func (o *StartBuildV1Default) Error() string

type StartBuildV1Forbidden

type StartBuildV1Forbidden struct {
	Payload *headchef_models.RestAPIError
}

StartBuildV1Forbidden handles this case with default header values.

The submitted build request contains a private recipe ID but the authenticated user isn't allow to access it

func NewStartBuildV1Forbidden

func NewStartBuildV1Forbidden() *StartBuildV1Forbidden

NewStartBuildV1Forbidden creates a StartBuildV1Forbidden with default headers values

func (*StartBuildV1Forbidden) Error

func (o *StartBuildV1Forbidden) Error() string

type StartBuildV1Params

type StartBuildV1Params struct {

	/*BuildRequest*/
	BuildRequest *headchef_models.V1BuildRequest

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

StartBuildV1Params contains all the parameters to send to the API endpoint for the start build v1 operation typically these are written to a http.Request

func NewStartBuildV1Params

func NewStartBuildV1Params() *StartBuildV1Params

NewStartBuildV1Params creates a new StartBuildV1Params object with the default values initialized.

func NewStartBuildV1ParamsWithContext

func NewStartBuildV1ParamsWithContext(ctx context.Context) *StartBuildV1Params

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

func NewStartBuildV1ParamsWithHTTPClient

func NewStartBuildV1ParamsWithHTTPClient(client *http.Client) *StartBuildV1Params

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

func NewStartBuildV1ParamsWithTimeout

func NewStartBuildV1ParamsWithTimeout(timeout time.Duration) *StartBuildV1Params

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

func (*StartBuildV1Params) SetBuildRequest

func (o *StartBuildV1Params) SetBuildRequest(buildRequest *headchef_models.V1BuildRequest)

SetBuildRequest adds the buildRequest to the start build v1 params

func (*StartBuildV1Params) SetContext

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

SetContext adds the context to the start build v1 params

func (*StartBuildV1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the start build v1 params

func (*StartBuildV1Params) SetTimeout

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

SetTimeout adds the timeout to the start build v1 params

func (*StartBuildV1Params) WithBuildRequest

func (o *StartBuildV1Params) WithBuildRequest(buildRequest *headchef_models.V1BuildRequest) *StartBuildV1Params

WithBuildRequest adds the buildRequest to the start build v1 params

func (*StartBuildV1Params) WithContext

WithContext adds the context to the start build v1 params

func (*StartBuildV1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the start build v1 params

func (*StartBuildV1Params) WithTimeout

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

WithTimeout adds the timeout to the start build v1 params

func (*StartBuildV1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StartBuildV1Reader

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

StartBuildV1Reader is a Reader for the StartBuildV1 structure.

func (*StartBuildV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StartBuildV1Unauthorized

type StartBuildV1Unauthorized struct {
	Payload *headchef_models.RestAPIError
}

StartBuildV1Unauthorized handles this case with default header values.

The submitted build request contains a private recipe ID but the request couldn't be authenticated

func NewStartBuildV1Unauthorized

func NewStartBuildV1Unauthorized() *StartBuildV1Unauthorized

NewStartBuildV1Unauthorized creates a StartBuildV1Unauthorized with default headers values

func (*StartBuildV1Unauthorized) Error

func (o *StartBuildV1Unauthorized) Error() string

type StartBuildV2Accepted

type StartBuildV2Accepted struct {
	Payload *headchef_models.V2BuildStatusResponse
}

StartBuildV2Accepted handles this case with default header values.

The requested build has been started but hasn't yet completed. The response's build_state field is build_running.

func NewStartBuildV2Accepted

func NewStartBuildV2Accepted() *StartBuildV2Accepted

NewStartBuildV2Accepted creates a StartBuildV2Accepted with default headers values

func (*StartBuildV2Accepted) Error

func (o *StartBuildV2Accepted) Error() string

type StartBuildV2BadRequest

type StartBuildV2BadRequest struct {
	Payload *headchef_models.InvalidBuildRequestError
}

StartBuildV2BadRequest handles this case with default header values.

The submitted build request was invalid. Consult the message and error code in the response body for further details.

func NewStartBuildV2BadRequest

func NewStartBuildV2BadRequest() *StartBuildV2BadRequest

NewStartBuildV2BadRequest creates a StartBuildV2BadRequest with default headers values

func (*StartBuildV2BadRequest) Error

func (o *StartBuildV2BadRequest) Error() string

type StartBuildV2Created

type StartBuildV2Created struct {
	Payload *headchef_models.V2BuildStatusResponse
}

StartBuildV2Created handles this case with default header values.

The requested build has already ended. The response's build_state field is one of: build_succeeded or build_failed.

func NewStartBuildV2Created

func NewStartBuildV2Created() *StartBuildV2Created

NewStartBuildV2Created creates a StartBuildV2Created with default headers values

func (*StartBuildV2Created) Error

func (o *StartBuildV2Created) Error() string

type StartBuildV2Default

type StartBuildV2Default struct {
	Payload *headchef_models.RestAPIError
	// contains filtered or unexported fields
}

StartBuildV2Default handles this case with default header values.

If there is an error processing the request

func NewStartBuildV2Default

func NewStartBuildV2Default(code int) *StartBuildV2Default

NewStartBuildV2Default creates a StartBuildV2Default with default headers values

func (*StartBuildV2Default) Code

func (o *StartBuildV2Default) Code() int

Code gets the status code for the start build v2 default response

func (*StartBuildV2Default) Error

func (o *StartBuildV2Default) Error() string

type StartBuildV2Forbidden

type StartBuildV2Forbidden struct {
	Payload *headchef_models.RestAPIError
}

StartBuildV2Forbidden handles this case with default header values.

The submitted build request contains a private recipe ID but the authenticated user isn't allow to access it

func NewStartBuildV2Forbidden

func NewStartBuildV2Forbidden() *StartBuildV2Forbidden

NewStartBuildV2Forbidden creates a StartBuildV2Forbidden with default headers values

func (*StartBuildV2Forbidden) Error

func (o *StartBuildV2Forbidden) Error() string

type StartBuildV2Params

type StartBuildV2Params struct {

	/*BuildRequest*/
	BuildRequest *headchef_models.V2BuildRequest

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

StartBuildV2Params contains all the parameters to send to the API endpoint for the start build v2 operation typically these are written to a http.Request

func NewStartBuildV2Params

func NewStartBuildV2Params() *StartBuildV2Params

NewStartBuildV2Params creates a new StartBuildV2Params object with the default values initialized.

func NewStartBuildV2ParamsWithContext

func NewStartBuildV2ParamsWithContext(ctx context.Context) *StartBuildV2Params

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

func NewStartBuildV2ParamsWithHTTPClient

func NewStartBuildV2ParamsWithHTTPClient(client *http.Client) *StartBuildV2Params

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

func NewStartBuildV2ParamsWithTimeout

func NewStartBuildV2ParamsWithTimeout(timeout time.Duration) *StartBuildV2Params

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

func (*StartBuildV2Params) SetBuildRequest

func (o *StartBuildV2Params) SetBuildRequest(buildRequest *headchef_models.V2BuildRequest)

SetBuildRequest adds the buildRequest to the start build v2 params

func (*StartBuildV2Params) SetContext

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

SetContext adds the context to the start build v2 params

func (*StartBuildV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the start build v2 params

func (*StartBuildV2Params) SetTimeout

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

SetTimeout adds the timeout to the start build v2 params

func (*StartBuildV2Params) WithBuildRequest

func (o *StartBuildV2Params) WithBuildRequest(buildRequest *headchef_models.V2BuildRequest) *StartBuildV2Params

WithBuildRequest adds the buildRequest to the start build v2 params

func (*StartBuildV2Params) WithContext

WithContext adds the context to the start build v2 params

func (*StartBuildV2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the start build v2 params

func (*StartBuildV2Params) WithTimeout

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

WithTimeout adds the timeout to the start build v2 params

func (*StartBuildV2Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StartBuildV2Reader

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

StartBuildV2Reader is a Reader for the StartBuildV2 structure.

func (*StartBuildV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StartBuildV2Unauthorized

type StartBuildV2Unauthorized struct {
	Payload *headchef_models.RestAPIError
}

StartBuildV2Unauthorized handles this case with default header values.

The submitted build request contains a private recipe ID but the request couldn't be authenticated

func NewStartBuildV2Unauthorized

func NewStartBuildV2Unauthorized() *StartBuildV2Unauthorized

NewStartBuildV2Unauthorized creates a StartBuildV2Unauthorized with default headers values

func (*StartBuildV2Unauthorized) Error

func (o *StartBuildV2Unauthorized) Error() string

Jump to

Keyboard shortcuts

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