lifecycle

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BounceDefault

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

BounceDefault describes a response with status code -1, with default header values.

successful operation

func NewBounceDefault

func NewBounceDefault(code int) *BounceDefault

NewBounceDefault creates a BounceDefault with default headers values

func (*BounceDefault) Code

func (o *BounceDefault) Code() int

Code gets the status code for the bounce default response

func (*BounceDefault) Error

func (o *BounceDefault) Error() string

func (*BounceDefault) IsClientError

func (o *BounceDefault) IsClientError() bool

IsClientError returns true when this bounce default response has a 4xx status code

func (*BounceDefault) IsCode

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

IsCode returns true when this bounce default response a status code equal to that given

func (*BounceDefault) IsRedirect

func (o *BounceDefault) IsRedirect() bool

IsRedirect returns true when this bounce default response has a 3xx status code

func (*BounceDefault) IsServerError

func (o *BounceDefault) IsServerError() bool

IsServerError returns true when this bounce default response has a 5xx status code

func (*BounceDefault) IsSuccess

func (o *BounceDefault) IsSuccess() bool

IsSuccess returns true when this bounce default response has a 2xx status code

func (*BounceDefault) String

func (o *BounceDefault) String() string

type BounceParams

type BounceParams struct {

	/* Body.

	   The phase to bounce
	*/
	Body string

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

BounceParams contains all the parameters to send to the API endpoint

for the bounce operation.

Typically these are written to a http.Request.

func NewBounceParams

func NewBounceParams() *BounceParams

NewBounceParams creates a new BounceParams 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 NewBounceParamsWithContext

func NewBounceParamsWithContext(ctx context.Context) *BounceParams

NewBounceParamsWithContext creates a new BounceParams object with the ability to set a context for a request.

func NewBounceParamsWithHTTPClient

func NewBounceParamsWithHTTPClient(client *http.Client) *BounceParams

NewBounceParamsWithHTTPClient creates a new BounceParams object with the ability to set a custom HTTPClient for a request.

func NewBounceParamsWithTimeout

func NewBounceParamsWithTimeout(timeout time.Duration) *BounceParams

NewBounceParamsWithTimeout creates a new BounceParams object with the ability to set a timeout on a request.

func (*BounceParams) SetBody

func (o *BounceParams) SetBody(body string)

SetBody adds the body to the bounce params

func (*BounceParams) SetContext

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

SetContext adds the context to the bounce params

func (*BounceParams) SetDefaults

func (o *BounceParams) SetDefaults()

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

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

func (*BounceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bounce params

func (*BounceParams) SetTimeout

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

SetTimeout adds the timeout to the bounce params

func (*BounceParams) WithBody

func (o *BounceParams) WithBody(body string) *BounceParams

WithBody adds the body to the bounce params

func (*BounceParams) WithContext

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

WithContext adds the context to the bounce params

func (*BounceParams) WithDefaults

func (o *BounceParams) WithDefaults() *BounceParams

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

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

func (*BounceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the bounce params

func (*BounceParams) WithTimeout

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

WithTimeout adds the timeout to the bounce params

func (*BounceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type BounceReader

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

BounceReader is a Reader for the Bounce structure.

func (*BounceReader) ReadResponse

func (o *BounceReader) 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 lifecycle API

func (*Client) Bounce

func (a *Client) Bounce(params *BounceParams, opts ...ClientOption) error

Bounce bounces lifecycle phase

Re-runs all phases from the given phase to the current phase

func (*Client) GetPhase

func (a *Client) GetPhase(params *GetPhaseParams, opts ...ClientOption) (*GetPhaseOK, error)

GetPhase gets current lifecycle phase

func (*Client) SetPhase

func (a *Client) SetPhase(params *SetPhaseParams, opts ...ClientOption) error

SetPhase moves to new lifecycle phase

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 {
	Bounce(params *BounceParams, opts ...ClientOption) error

	GetPhase(params *GetPhaseParams, opts ...ClientOption) (*GetPhaseOK, error)

	SetPhase(params *SetPhaseParams, opts ...ClientOption) 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 lifecycle API client.

type GetPhaseOK

type GetPhaseOK struct {
	Payload string
}

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

successful operation

func NewGetPhaseOK

func NewGetPhaseOK() *GetPhaseOK

NewGetPhaseOK creates a GetPhaseOK with default headers values

func (*GetPhaseOK) Code

func (o *GetPhaseOK) Code() int

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

func (*GetPhaseOK) Error

func (o *GetPhaseOK) Error() string

func (*GetPhaseOK) GetPayload

func (o *GetPhaseOK) GetPayload() string

func (*GetPhaseOK) IsClientError

func (o *GetPhaseOK) IsClientError() bool

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

func (*GetPhaseOK) IsCode

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

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

func (*GetPhaseOK) IsRedirect

func (o *GetPhaseOK) IsRedirect() bool

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

func (*GetPhaseOK) IsServerError

func (o *GetPhaseOK) IsServerError() bool

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

func (*GetPhaseOK) IsSuccess

func (o *GetPhaseOK) IsSuccess() bool

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

func (*GetPhaseOK) String

func (o *GetPhaseOK) String() string

type GetPhaseParams

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

GetPhaseParams contains all the parameters to send to the API endpoint

for the get phase operation.

Typically these are written to a http.Request.

func NewGetPhaseParams

func NewGetPhaseParams() *GetPhaseParams

NewGetPhaseParams creates a new GetPhaseParams 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 NewGetPhaseParamsWithContext

func NewGetPhaseParamsWithContext(ctx context.Context) *GetPhaseParams

NewGetPhaseParamsWithContext creates a new GetPhaseParams object with the ability to set a context for a request.

func NewGetPhaseParamsWithHTTPClient

func NewGetPhaseParamsWithHTTPClient(client *http.Client) *GetPhaseParams

NewGetPhaseParamsWithHTTPClient creates a new GetPhaseParams object with the ability to set a custom HTTPClient for a request.

func NewGetPhaseParamsWithTimeout

func NewGetPhaseParamsWithTimeout(timeout time.Duration) *GetPhaseParams

NewGetPhaseParamsWithTimeout creates a new GetPhaseParams object with the ability to set a timeout on a request.

func (*GetPhaseParams) SetContext

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

SetContext adds the context to the get phase params

func (*GetPhaseParams) SetDefaults

func (o *GetPhaseParams) SetDefaults()

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

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

func (*GetPhaseParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get phase params

func (*GetPhaseParams) SetTimeout

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

SetTimeout adds the timeout to the get phase params

func (*GetPhaseParams) WithContext

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

WithContext adds the context to the get phase params

func (*GetPhaseParams) WithDefaults

func (o *GetPhaseParams) WithDefaults() *GetPhaseParams

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

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

func (*GetPhaseParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get phase params

func (*GetPhaseParams) WithTimeout

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

WithTimeout adds the timeout to the get phase params

func (*GetPhaseParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPhaseReader

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

GetPhaseReader is a Reader for the GetPhase structure.

func (*GetPhaseReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetPhaseDefault

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

SetPhaseDefault describes a response with status code -1, with default header values.

successful operation

func NewSetPhaseDefault

func NewSetPhaseDefault(code int) *SetPhaseDefault

NewSetPhaseDefault creates a SetPhaseDefault with default headers values

func (*SetPhaseDefault) Code

func (o *SetPhaseDefault) Code() int

Code gets the status code for the set phase default response

func (*SetPhaseDefault) Error

func (o *SetPhaseDefault) Error() string

func (*SetPhaseDefault) IsClientError

func (o *SetPhaseDefault) IsClientError() bool

IsClientError returns true when this set phase default response has a 4xx status code

func (*SetPhaseDefault) IsCode

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

IsCode returns true when this set phase default response a status code equal to that given

func (*SetPhaseDefault) IsRedirect

func (o *SetPhaseDefault) IsRedirect() bool

IsRedirect returns true when this set phase default response has a 3xx status code

func (*SetPhaseDefault) IsServerError

func (o *SetPhaseDefault) IsServerError() bool

IsServerError returns true when this set phase default response has a 5xx status code

func (*SetPhaseDefault) IsSuccess

func (o *SetPhaseDefault) IsSuccess() bool

IsSuccess returns true when this set phase default response has a 2xx status code

func (*SetPhaseDefault) String

func (o *SetPhaseDefault) String() string

type SetPhaseParams

type SetPhaseParams struct {

	/* Body.

	   The phase to move to
	*/
	Body string

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

SetPhaseParams contains all the parameters to send to the API endpoint

for the set phase operation.

Typically these are written to a http.Request.

func NewSetPhaseParams

func NewSetPhaseParams() *SetPhaseParams

NewSetPhaseParams creates a new SetPhaseParams 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 NewSetPhaseParamsWithContext

func NewSetPhaseParamsWithContext(ctx context.Context) *SetPhaseParams

NewSetPhaseParamsWithContext creates a new SetPhaseParams object with the ability to set a context for a request.

func NewSetPhaseParamsWithHTTPClient

func NewSetPhaseParamsWithHTTPClient(client *http.Client) *SetPhaseParams

NewSetPhaseParamsWithHTTPClient creates a new SetPhaseParams object with the ability to set a custom HTTPClient for a request.

func NewSetPhaseParamsWithTimeout

func NewSetPhaseParamsWithTimeout(timeout time.Duration) *SetPhaseParams

NewSetPhaseParamsWithTimeout creates a new SetPhaseParams object with the ability to set a timeout on a request.

func (*SetPhaseParams) SetBody

func (o *SetPhaseParams) SetBody(body string)

SetBody adds the body to the set phase params

func (*SetPhaseParams) SetContext

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

SetContext adds the context to the set phase params

func (*SetPhaseParams) SetDefaults

func (o *SetPhaseParams) SetDefaults()

SetDefaults hydrates default values in the set phase params (not the query body).

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

func (*SetPhaseParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set phase params

func (*SetPhaseParams) SetTimeout

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

SetTimeout adds the timeout to the set phase params

func (*SetPhaseParams) WithBody

func (o *SetPhaseParams) WithBody(body string) *SetPhaseParams

WithBody adds the body to the set phase params

func (*SetPhaseParams) WithContext

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

WithContext adds the context to the set phase params

func (*SetPhaseParams) WithDefaults

func (o *SetPhaseParams) WithDefaults() *SetPhaseParams

WithDefaults hydrates default values in the set phase params (not the query body).

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

func (*SetPhaseParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set phase params

func (*SetPhaseParams) WithTimeout

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

WithTimeout adds the timeout to the set phase params

func (*SetPhaseParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SetPhaseReader

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

SetPhaseReader is a Reader for the SetPhase structure.

func (*SetPhaseReader) ReadResponse

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