stacks

package
v0.0.0-...-8fe3866 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.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 stacks API

func (*Client) GetStack

func (a *Client) GetStack(params *GetStackParams, opts ...ClientOption) (*GetStackOK, error)

GetStack gets a stack

Returns a stack, by id.

func (*Client) ListStacks

func (a *Client) ListStacks(params *ListStacksParams, opts ...ClientOption) (*ListStacksOK, error)

ListStacks lists stacks

The `stacks` endpoint returns all TCP/IP stacks.

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 {
	GetStack(params *GetStackParams, opts ...ClientOption) (*GetStackOK, error)

	ListStacks(params *ListStacksParams, opts ...ClientOption) (*ListStacksOK, 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 stacks API client.

type GetStackOK

type GetStackOK struct {
	Payload *models.Stack
}
GetStackOK describes a response with status code 200, with default header values.

Success

func NewGetStackOK

func NewGetStackOK() *GetStackOK

NewGetStackOK creates a GetStackOK with default headers values

func (*GetStackOK) Error

func (o *GetStackOK) Error() string

func (*GetStackOK) GetPayload

func (o *GetStackOK) GetPayload() *models.Stack

type GetStackParams

type GetStackParams struct {

	/* ID.

	   Unique resource identifier

	   Format: string
	*/
	ID string

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

GetStackParams contains all the parameters to send to the API endpoint

for the get stack operation.

Typically these are written to a http.Request.

func NewGetStackParams

func NewGetStackParams() *GetStackParams

NewGetStackParams creates a new GetStackParams 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 NewGetStackParamsWithContext

func NewGetStackParamsWithContext(ctx context.Context) *GetStackParams

NewGetStackParamsWithContext creates a new GetStackParams object with the ability to set a context for a request.

func NewGetStackParamsWithHTTPClient

func NewGetStackParamsWithHTTPClient(client *http.Client) *GetStackParams

NewGetStackParamsWithHTTPClient creates a new GetStackParams object with the ability to set a custom HTTPClient for a request.

func NewGetStackParamsWithTimeout

func NewGetStackParamsWithTimeout(timeout time.Duration) *GetStackParams

NewGetStackParamsWithTimeout creates a new GetStackParams object with the ability to set a timeout on a request.

func (*GetStackParams) SetContext

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

SetContext adds the context to the get stack params

func (*GetStackParams) SetDefaults

func (o *GetStackParams) SetDefaults()

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

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

func (*GetStackParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get stack params

func (*GetStackParams) SetID

func (o *GetStackParams) SetID(id string)

SetID adds the id to the get stack params

func (*GetStackParams) SetTimeout

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

SetTimeout adds the timeout to the get stack params

func (*GetStackParams) WithContext

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

WithContext adds the context to the get stack params

func (*GetStackParams) WithDefaults

func (o *GetStackParams) WithDefaults() *GetStackParams

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

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

func (*GetStackParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get stack params

func (*GetStackParams) WithID

func (o *GetStackParams) WithID(id string) *GetStackParams

WithID adds the id to the get stack params

func (*GetStackParams) WithTimeout

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

WithTimeout adds the timeout to the get stack params

func (*GetStackParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStackReader

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

GetStackReader is a Reader for the GetStack structure.

func (*GetStackReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListStacksOK

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

Success

func NewListStacksOK

func NewListStacksOK() *ListStacksOK

NewListStacksOK creates a ListStacksOK with default headers values

func (*ListStacksOK) Error

func (o *ListStacksOK) Error() string

func (*ListStacksOK) GetPayload

func (o *ListStacksOK) GetPayload() []*models.Stack

type ListStacksParams

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

ListStacksParams contains all the parameters to send to the API endpoint

for the list stacks operation.

Typically these are written to a http.Request.

func NewListStacksParams

func NewListStacksParams() *ListStacksParams

NewListStacksParams creates a new ListStacksParams 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 NewListStacksParamsWithContext

func NewListStacksParamsWithContext(ctx context.Context) *ListStacksParams

NewListStacksParamsWithContext creates a new ListStacksParams object with the ability to set a context for a request.

func NewListStacksParamsWithHTTPClient

func NewListStacksParamsWithHTTPClient(client *http.Client) *ListStacksParams

NewListStacksParamsWithHTTPClient creates a new ListStacksParams object with the ability to set a custom HTTPClient for a request.

func NewListStacksParamsWithTimeout

func NewListStacksParamsWithTimeout(timeout time.Duration) *ListStacksParams

NewListStacksParamsWithTimeout creates a new ListStacksParams object with the ability to set a timeout on a request.

func (*ListStacksParams) SetContext

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

SetContext adds the context to the list stacks params

func (*ListStacksParams) SetDefaults

func (o *ListStacksParams) SetDefaults()

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

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

func (*ListStacksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list stacks params

func (*ListStacksParams) SetTimeout

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

SetTimeout adds the timeout to the list stacks params

func (*ListStacksParams) WithContext

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

WithContext adds the context to the list stacks params

func (*ListStacksParams) WithDefaults

func (o *ListStacksParams) WithDefaults() *ListStacksParams

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

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

func (*ListStacksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list stacks params

func (*ListStacksParams) WithTimeout

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

WithTimeout adds the timeout to the list stacks params

func (*ListStacksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListStacksReader

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

ListStacksReader is a Reader for the ListStacks structure.

func (*ListStacksReader) ReadResponse

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