stacks

package
v0.0.0-...-147c068 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 11 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 New

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

New creates a new stacks API client.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StackCreate

func (a *Client) StackCreate(params *StackCreateParams, authInfo runtime.ClientAuthInfoWriter) (*StackCreateOK, error)

StackCreate deploys a new stack

Deploy a new stack into a Docker environment specified via the endpoint identifier. **Access policy**: restricted

func (*Client) StackDelete

func (a *Client) StackDelete(params *StackDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*StackDeleteNoContent, error)

StackDelete removes a stack

Remove a stack. **Access policy**: restricted

func (*Client) StackFileInspect

func (a *Client) StackFileInspect(params *StackFileInspectParams, authInfo runtime.ClientAuthInfoWriter) (*StackFileInspectOK, error)

StackFileInspect retrieves the content of the stack file for the specified stack

Get Stack file content. **Access policy**: restricted

func (*Client) StackInspect

func (a *Client) StackInspect(params *StackInspectParams, authInfo runtime.ClientAuthInfoWriter) (*StackInspectOK, error)

StackInspect inspects a stack

Retrieve details about a stack. **Access policy**: restricted

func (*Client) StackList

func (a *Client) StackList(params *StackListParams, authInfo runtime.ClientAuthInfoWriter) (*StackListOK, error)

StackList lists stacks

List all stacks based on the current user authorizations. Will return all stacks if using an administrator account otherwise it will only return the list of stacks the user have access to. **Access policy**: restricted

func (*Client) StackMigrate

func (a *Client) StackMigrate(params *StackMigrateParams, authInfo runtime.ClientAuthInfoWriter) (*StackMigrateOK, error)

StackMigrate migrates a stack to another endpoint

Migrate a stack from an endpoint to another endpoint. It will re-create the stack inside the target endpoint before removing the original stack. **Access policy**: restricted

func (*Client) StackUpdate

func (a *Client) StackUpdate(params *StackUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*StackUpdateOK, error)

StackUpdate updates a stack

Update a stack. **Access policy**: restricted

type StackCreateBadRequest

type StackCreateBadRequest struct {
	Payload *models.GenericError
}

StackCreateBadRequest handles this case with default header values.

Invalid request

func NewStackCreateBadRequest

func NewStackCreateBadRequest() *StackCreateBadRequest

NewStackCreateBadRequest creates a StackCreateBadRequest with default headers values

func (*StackCreateBadRequest) Error

func (o *StackCreateBadRequest) Error() string

type StackCreateForbidden

type StackCreateForbidden struct {
	Payload *models.GenericError
}

StackCreateForbidden handles this case with default header values.

Unauthorized

func NewStackCreateForbidden

func NewStackCreateForbidden() *StackCreateForbidden

NewStackCreateForbidden creates a StackCreateForbidden with default headers values

func (*StackCreateForbidden) Error

func (o *StackCreateForbidden) Error() string

type StackCreateInternalServerError

type StackCreateInternalServerError struct {
	Payload *models.GenericError
}

StackCreateInternalServerError handles this case with default header values.

Server error

func NewStackCreateInternalServerError

func NewStackCreateInternalServerError() *StackCreateInternalServerError

NewStackCreateInternalServerError creates a StackCreateInternalServerError with default headers values

func (*StackCreateInternalServerError) Error

type StackCreateNotFound

type StackCreateNotFound struct {
	Payload *models.GenericError
}

StackCreateNotFound handles this case with default header values.

Endpoint not found

func NewStackCreateNotFound

func NewStackCreateNotFound() *StackCreateNotFound

NewStackCreateNotFound creates a StackCreateNotFound with default headers values

func (*StackCreateNotFound) Error

func (o *StackCreateNotFound) Error() string

type StackCreateOK

type StackCreateOK struct {
	Payload *models.Stack
}

StackCreateOK handles this case with default header values.

Success

func NewStackCreateOK

func NewStackCreateOK() *StackCreateOK

NewStackCreateOK creates a StackCreateOK with default headers values

func (*StackCreateOK) Error

func (o *StackCreateOK) Error() string

type StackCreateParams

type StackCreateParams struct {

	/*Body
	  Stack details. Required when method equals string or repository.

	*/
	Body *models.StackCreateRequest
	/*EndpointID
	  Identifier of the endpoint that will be used to deploy the stack.

	*/
	EndpointID int64
	/*Method
	  Stack deployment method. Possible values: string or repository. This API does not support file method

	*/
	Method string
	/*Type
	  Stack deployment type. Possible values: 1 (Swarm stack) or 2 (Compose stack).

	*/
	Type int64

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

StackCreateParams contains all the parameters to send to the API endpoint for the stack create operation typically these are written to a http.Request

func NewStackCreateParams

func NewStackCreateParams() *StackCreateParams

NewStackCreateParams creates a new StackCreateParams object with the default values initialized.

func NewStackCreateParamsWithContext

func NewStackCreateParamsWithContext(ctx context.Context) *StackCreateParams

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

func NewStackCreateParamsWithHTTPClient

func NewStackCreateParamsWithHTTPClient(client *http.Client) *StackCreateParams

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

func NewStackCreateParamsWithTimeout

func NewStackCreateParamsWithTimeout(timeout time.Duration) *StackCreateParams

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

func (*StackCreateParams) SetBody

func (o *StackCreateParams) SetBody(body *models.StackCreateRequest)

SetBody adds the body to the stack create params

func (*StackCreateParams) SetContext

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

SetContext adds the context to the stack create params

func (*StackCreateParams) SetEndpointID

func (o *StackCreateParams) SetEndpointID(endpointID int64)

SetEndpointID adds the endpointId to the stack create params

func (*StackCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stack create params

func (*StackCreateParams) SetMethod

func (o *StackCreateParams) SetMethod(method string)

SetMethod adds the method to the stack create params

func (*StackCreateParams) SetTimeout

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

SetTimeout adds the timeout to the stack create params

func (*StackCreateParams) SetType

func (o *StackCreateParams) SetType(typeVar int64)

SetType adds the type to the stack create params

func (*StackCreateParams) WithBody

WithBody adds the body to the stack create params

func (*StackCreateParams) WithContext

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

WithContext adds the context to the stack create params

func (*StackCreateParams) WithEndpointID

func (o *StackCreateParams) WithEndpointID(endpointID int64) *StackCreateParams

WithEndpointID adds the endpointID to the stack create params

func (*StackCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stack create params

func (*StackCreateParams) WithMethod

func (o *StackCreateParams) WithMethod(method string) *StackCreateParams

WithMethod adds the method to the stack create params

func (*StackCreateParams) WithTimeout

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

WithTimeout adds the timeout to the stack create params

func (*StackCreateParams) WithType

func (o *StackCreateParams) WithType(typeVar int64) *StackCreateParams

WithType adds the typeVar to the stack create params

func (*StackCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StackCreateReader

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

StackCreateReader is a Reader for the StackCreate structure.

func (*StackCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StackDeleteBadRequest

type StackDeleteBadRequest struct {
	Payload *models.GenericError
}

StackDeleteBadRequest handles this case with default header values.

Invalid request

func NewStackDeleteBadRequest

func NewStackDeleteBadRequest() *StackDeleteBadRequest

NewStackDeleteBadRequest creates a StackDeleteBadRequest with default headers values

func (*StackDeleteBadRequest) Error

func (o *StackDeleteBadRequest) Error() string

type StackDeleteForbidden

type StackDeleteForbidden struct {
	Payload *models.GenericError
}

StackDeleteForbidden handles this case with default header values.

Unauthorized

func NewStackDeleteForbidden

func NewStackDeleteForbidden() *StackDeleteForbidden

NewStackDeleteForbidden creates a StackDeleteForbidden with default headers values

func (*StackDeleteForbidden) Error

func (o *StackDeleteForbidden) Error() string

type StackDeleteInternalServerError

type StackDeleteInternalServerError struct {
	Payload *models.GenericError
}

StackDeleteInternalServerError handles this case with default header values.

Server error

func NewStackDeleteInternalServerError

func NewStackDeleteInternalServerError() *StackDeleteInternalServerError

NewStackDeleteInternalServerError creates a StackDeleteInternalServerError with default headers values

func (*StackDeleteInternalServerError) Error

type StackDeleteNoContent

type StackDeleteNoContent struct {
}

StackDeleteNoContent handles this case with default header values.

Success

func NewStackDeleteNoContent

func NewStackDeleteNoContent() *StackDeleteNoContent

NewStackDeleteNoContent creates a StackDeleteNoContent with default headers values

func (*StackDeleteNoContent) Error

func (o *StackDeleteNoContent) Error() string

type StackDeleteNotFound

type StackDeleteNotFound struct {
	Payload *models.GenericError
}

StackDeleteNotFound handles this case with default header values.

Stack not found

func NewStackDeleteNotFound

func NewStackDeleteNotFound() *StackDeleteNotFound

NewStackDeleteNotFound creates a StackDeleteNotFound with default headers values

func (*StackDeleteNotFound) Error

func (o *StackDeleteNotFound) Error() string

type StackDeleteParams

type StackDeleteParams struct {

	/*EndpointID
	  Endpoint identifier used to remove an external stack (required when external is set to true)

	*/
	EndpointID *string
	/*External
	  Set to true to delete an external stack. Only external Swarm stacks are supported.

	*/
	External *bool
	/*ID
	  Stack identifier

	*/
	ID int64

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

StackDeleteParams contains all the parameters to send to the API endpoint for the stack delete operation typically these are written to a http.Request

func NewStackDeleteParams

func NewStackDeleteParams() *StackDeleteParams

NewStackDeleteParams creates a new StackDeleteParams object with the default values initialized.

func NewStackDeleteParamsWithContext

func NewStackDeleteParamsWithContext(ctx context.Context) *StackDeleteParams

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

func NewStackDeleteParamsWithHTTPClient

func NewStackDeleteParamsWithHTTPClient(client *http.Client) *StackDeleteParams

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

func NewStackDeleteParamsWithTimeout

func NewStackDeleteParamsWithTimeout(timeout time.Duration) *StackDeleteParams

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

func (*StackDeleteParams) SetContext

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

SetContext adds the context to the stack delete params

func (*StackDeleteParams) SetEndpointID

func (o *StackDeleteParams) SetEndpointID(endpointID *string)

SetEndpointID adds the endpointId to the stack delete params

func (*StackDeleteParams) SetExternal

func (o *StackDeleteParams) SetExternal(external *bool)

SetExternal adds the external to the stack delete params

func (*StackDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stack delete params

func (*StackDeleteParams) SetID

func (o *StackDeleteParams) SetID(id int64)

SetID adds the id to the stack delete params

func (*StackDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the stack delete params

func (*StackDeleteParams) WithContext

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

WithContext adds the context to the stack delete params

func (*StackDeleteParams) WithEndpointID

func (o *StackDeleteParams) WithEndpointID(endpointID *string) *StackDeleteParams

WithEndpointID adds the endpointID to the stack delete params

func (*StackDeleteParams) WithExternal

func (o *StackDeleteParams) WithExternal(external *bool) *StackDeleteParams

WithExternal adds the external to the stack delete params

func (*StackDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stack delete params

func (*StackDeleteParams) WithID

func (o *StackDeleteParams) WithID(id int64) *StackDeleteParams

WithID adds the id to the stack delete params

func (*StackDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the stack delete params

func (*StackDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StackDeleteReader

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

StackDeleteReader is a Reader for the StackDelete structure.

func (*StackDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StackFileInspectBadRequest

type StackFileInspectBadRequest struct {
	Payload *models.GenericError
}

StackFileInspectBadRequest handles this case with default header values.

Invalid request

func NewStackFileInspectBadRequest

func NewStackFileInspectBadRequest() *StackFileInspectBadRequest

NewStackFileInspectBadRequest creates a StackFileInspectBadRequest with default headers values

func (*StackFileInspectBadRequest) Error

type StackFileInspectForbidden

type StackFileInspectForbidden struct {
	Payload *models.GenericError
}

StackFileInspectForbidden handles this case with default header values.

Unauthorized

func NewStackFileInspectForbidden

func NewStackFileInspectForbidden() *StackFileInspectForbidden

NewStackFileInspectForbidden creates a StackFileInspectForbidden with default headers values

func (*StackFileInspectForbidden) Error

func (o *StackFileInspectForbidden) Error() string

type StackFileInspectInternalServerError

type StackFileInspectInternalServerError struct {
	Payload *models.GenericError
}

StackFileInspectInternalServerError handles this case with default header values.

Server error

func NewStackFileInspectInternalServerError

func NewStackFileInspectInternalServerError() *StackFileInspectInternalServerError

NewStackFileInspectInternalServerError creates a StackFileInspectInternalServerError with default headers values

func (*StackFileInspectInternalServerError) Error

type StackFileInspectNotFound

type StackFileInspectNotFound struct {
	Payload *models.GenericError
}

StackFileInspectNotFound handles this case with default header values.

Stack not found

func NewStackFileInspectNotFound

func NewStackFileInspectNotFound() *StackFileInspectNotFound

NewStackFileInspectNotFound creates a StackFileInspectNotFound with default headers values

func (*StackFileInspectNotFound) Error

func (o *StackFileInspectNotFound) Error() string

type StackFileInspectOK

type StackFileInspectOK struct {
	Payload *models.StackFileInspectResponse
}

StackFileInspectOK handles this case with default header values.

Success

func NewStackFileInspectOK

func NewStackFileInspectOK() *StackFileInspectOK

NewStackFileInspectOK creates a StackFileInspectOK with default headers values

func (*StackFileInspectOK) Error

func (o *StackFileInspectOK) Error() string

type StackFileInspectParams

type StackFileInspectParams struct {

	/*ID
	  Stack identifier

	*/
	ID int64

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

StackFileInspectParams contains all the parameters to send to the API endpoint for the stack file inspect operation typically these are written to a http.Request

func NewStackFileInspectParams

func NewStackFileInspectParams() *StackFileInspectParams

NewStackFileInspectParams creates a new StackFileInspectParams object with the default values initialized.

func NewStackFileInspectParamsWithContext

func NewStackFileInspectParamsWithContext(ctx context.Context) *StackFileInspectParams

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

func NewStackFileInspectParamsWithHTTPClient

func NewStackFileInspectParamsWithHTTPClient(client *http.Client) *StackFileInspectParams

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

func NewStackFileInspectParamsWithTimeout

func NewStackFileInspectParamsWithTimeout(timeout time.Duration) *StackFileInspectParams

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

func (*StackFileInspectParams) SetContext

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

SetContext adds the context to the stack file inspect params

func (*StackFileInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stack file inspect params

func (*StackFileInspectParams) SetID

func (o *StackFileInspectParams) SetID(id int64)

SetID adds the id to the stack file inspect params

func (*StackFileInspectParams) SetTimeout

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

SetTimeout adds the timeout to the stack file inspect params

func (*StackFileInspectParams) WithContext

WithContext adds the context to the stack file inspect params

func (*StackFileInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stack file inspect params

func (*StackFileInspectParams) WithID

WithID adds the id to the stack file inspect params

func (*StackFileInspectParams) WithTimeout

WithTimeout adds the timeout to the stack file inspect params

func (*StackFileInspectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type StackFileInspectReader

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

StackFileInspectReader is a Reader for the StackFileInspect structure.

func (*StackFileInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StackInspectBadRequest

type StackInspectBadRequest struct {
	Payload *models.GenericError
}

StackInspectBadRequest handles this case with default header values.

Invalid request

func NewStackInspectBadRequest

func NewStackInspectBadRequest() *StackInspectBadRequest

NewStackInspectBadRequest creates a StackInspectBadRequest with default headers values

func (*StackInspectBadRequest) Error

func (o *StackInspectBadRequest) Error() string

type StackInspectForbidden

type StackInspectForbidden struct {
	Payload *models.GenericError
}

StackInspectForbidden handles this case with default header values.

Unauthorized

func NewStackInspectForbidden

func NewStackInspectForbidden() *StackInspectForbidden

NewStackInspectForbidden creates a StackInspectForbidden with default headers values

func (*StackInspectForbidden) Error

func (o *StackInspectForbidden) Error() string

type StackInspectInternalServerError

type StackInspectInternalServerError struct {
	Payload *models.GenericError
}

StackInspectInternalServerError handles this case with default header values.

Server error

func NewStackInspectInternalServerError

func NewStackInspectInternalServerError() *StackInspectInternalServerError

NewStackInspectInternalServerError creates a StackInspectInternalServerError with default headers values

func (*StackInspectInternalServerError) Error

type StackInspectNotFound

type StackInspectNotFound struct {
	Payload *models.GenericError
}

StackInspectNotFound handles this case with default header values.

Stack not found

func NewStackInspectNotFound

func NewStackInspectNotFound() *StackInspectNotFound

NewStackInspectNotFound creates a StackInspectNotFound with default headers values

func (*StackInspectNotFound) Error

func (o *StackInspectNotFound) Error() string

type StackInspectOK

type StackInspectOK struct {
	Payload *models.Stack
}

StackInspectOK handles this case with default header values.

Success

func NewStackInspectOK

func NewStackInspectOK() *StackInspectOK

NewStackInspectOK creates a StackInspectOK with default headers values

func (*StackInspectOK) Error

func (o *StackInspectOK) Error() string

type StackInspectParams

type StackInspectParams struct {

	/*ID
	  Stack identifier

	*/
	ID int64

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

StackInspectParams contains all the parameters to send to the API endpoint for the stack inspect operation typically these are written to a http.Request

func NewStackInspectParams

func NewStackInspectParams() *StackInspectParams

NewStackInspectParams creates a new StackInspectParams object with the default values initialized.

func NewStackInspectParamsWithContext

func NewStackInspectParamsWithContext(ctx context.Context) *StackInspectParams

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

func NewStackInspectParamsWithHTTPClient

func NewStackInspectParamsWithHTTPClient(client *http.Client) *StackInspectParams

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

func NewStackInspectParamsWithTimeout

func NewStackInspectParamsWithTimeout(timeout time.Duration) *StackInspectParams

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

func (*StackInspectParams) SetContext

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

SetContext adds the context to the stack inspect params

func (*StackInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stack inspect params

func (*StackInspectParams) SetID

func (o *StackInspectParams) SetID(id int64)

SetID adds the id to the stack inspect params

func (*StackInspectParams) SetTimeout

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

SetTimeout adds the timeout to the stack inspect params

func (*StackInspectParams) WithContext

WithContext adds the context to the stack inspect params

func (*StackInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stack inspect params

func (*StackInspectParams) WithID

WithID adds the id to the stack inspect params

func (*StackInspectParams) WithTimeout

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

WithTimeout adds the timeout to the stack inspect params

func (*StackInspectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StackInspectReader

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

StackInspectReader is a Reader for the StackInspect structure.

func (*StackInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StackListInternalServerError

type StackListInternalServerError struct {
	Payload *models.GenericError
}

StackListInternalServerError handles this case with default header values.

Server error

func NewStackListInternalServerError

func NewStackListInternalServerError() *StackListInternalServerError

NewStackListInternalServerError creates a StackListInternalServerError with default headers values

func (*StackListInternalServerError) Error

type StackListOK

type StackListOK struct {
	Payload models.StackListResponse
}

StackListOK handles this case with default header values.

Success

func NewStackListOK

func NewStackListOK() *StackListOK

NewStackListOK creates a StackListOK with default headers values

func (*StackListOK) Error

func (o *StackListOK) Error() string

type StackListParams

type StackListParams struct {

	/*Filters
	  Filters to process on the stack list. Encoded as JSON (a map[string]string).
	For example, {"SwarmID": "jpofkc0i9uo9wtx1zesuk649w"} will only return stacks that are part
	of the specified Swarm cluster. Available filters: EndpointID, SwarmID.


	*/
	Filters *string

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

StackListParams contains all the parameters to send to the API endpoint for the stack list operation typically these are written to a http.Request

func NewStackListParams

func NewStackListParams() *StackListParams

NewStackListParams creates a new StackListParams object with the default values initialized.

func NewStackListParamsWithContext

func NewStackListParamsWithContext(ctx context.Context) *StackListParams

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

func NewStackListParamsWithHTTPClient

func NewStackListParamsWithHTTPClient(client *http.Client) *StackListParams

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

func NewStackListParamsWithTimeout

func NewStackListParamsWithTimeout(timeout time.Duration) *StackListParams

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

func (*StackListParams) SetContext

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

SetContext adds the context to the stack list params

func (*StackListParams) SetFilters

func (o *StackListParams) SetFilters(filters *string)

SetFilters adds the filters to the stack list params

func (*StackListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stack list params

func (*StackListParams) SetTimeout

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

SetTimeout adds the timeout to the stack list params

func (*StackListParams) WithContext

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

WithContext adds the context to the stack list params

func (*StackListParams) WithFilters

func (o *StackListParams) WithFilters(filters *string) *StackListParams

WithFilters adds the filters to the stack list params

func (*StackListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stack list params

func (*StackListParams) WithTimeout

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

WithTimeout adds the timeout to the stack list params

func (*StackListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StackListReader

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

StackListReader is a Reader for the StackList structure.

func (*StackListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StackMigrateBadRequest

type StackMigrateBadRequest struct {
	Payload *models.GenericError
}

StackMigrateBadRequest handles this case with default header values.

Invalid request

func NewStackMigrateBadRequest

func NewStackMigrateBadRequest() *StackMigrateBadRequest

NewStackMigrateBadRequest creates a StackMigrateBadRequest with default headers values

func (*StackMigrateBadRequest) Error

func (o *StackMigrateBadRequest) Error() string

type StackMigrateForbidden

type StackMigrateForbidden struct {
	Payload *models.GenericError
}

StackMigrateForbidden handles this case with default header values.

Unauthorized

func NewStackMigrateForbidden

func NewStackMigrateForbidden() *StackMigrateForbidden

NewStackMigrateForbidden creates a StackMigrateForbidden with default headers values

func (*StackMigrateForbidden) Error

func (o *StackMigrateForbidden) Error() string

type StackMigrateInternalServerError

type StackMigrateInternalServerError struct {
	Payload *models.GenericError
}

StackMigrateInternalServerError handles this case with default header values.

Server error

func NewStackMigrateInternalServerError

func NewStackMigrateInternalServerError() *StackMigrateInternalServerError

NewStackMigrateInternalServerError creates a StackMigrateInternalServerError with default headers values

func (*StackMigrateInternalServerError) Error

type StackMigrateNotFound

type StackMigrateNotFound struct {
	Payload *models.GenericError
}

StackMigrateNotFound handles this case with default header values.

Stack not found

func NewStackMigrateNotFound

func NewStackMigrateNotFound() *StackMigrateNotFound

NewStackMigrateNotFound creates a StackMigrateNotFound with default headers values

func (*StackMigrateNotFound) Error

func (o *StackMigrateNotFound) Error() string

type StackMigrateOK

type StackMigrateOK struct {
	Payload *models.Stack
}

StackMigrateOK handles this case with default header values.

Success

func NewStackMigrateOK

func NewStackMigrateOK() *StackMigrateOK

NewStackMigrateOK creates a StackMigrateOK with default headers values

func (*StackMigrateOK) Error

func (o *StackMigrateOK) Error() string

type StackMigrateParams

type StackMigrateParams struct {

	/*Body
	  Stack migration details.

	*/
	Body *models.StackMigrateRequest
	/*EndpointID
	  Stacks created before version 1.18.0 might not have an associated endpoint identifier. Use this optional parameter to set the endpoint identifier used by the stack.

	*/
	EndpointID *int64
	/*ID
	  Stack identifier

	*/
	ID int64

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

StackMigrateParams contains all the parameters to send to the API endpoint for the stack migrate operation typically these are written to a http.Request

func NewStackMigrateParams

func NewStackMigrateParams() *StackMigrateParams

NewStackMigrateParams creates a new StackMigrateParams object with the default values initialized.

func NewStackMigrateParamsWithContext

func NewStackMigrateParamsWithContext(ctx context.Context) *StackMigrateParams

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

func NewStackMigrateParamsWithHTTPClient

func NewStackMigrateParamsWithHTTPClient(client *http.Client) *StackMigrateParams

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

func NewStackMigrateParamsWithTimeout

func NewStackMigrateParamsWithTimeout(timeout time.Duration) *StackMigrateParams

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

func (*StackMigrateParams) SetBody

func (o *StackMigrateParams) SetBody(body *models.StackMigrateRequest)

SetBody adds the body to the stack migrate params

func (*StackMigrateParams) SetContext

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

SetContext adds the context to the stack migrate params

func (*StackMigrateParams) SetEndpointID

func (o *StackMigrateParams) SetEndpointID(endpointID *int64)

SetEndpointID adds the endpointId to the stack migrate params

func (*StackMigrateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stack migrate params

func (*StackMigrateParams) SetID

func (o *StackMigrateParams) SetID(id int64)

SetID adds the id to the stack migrate params

func (*StackMigrateParams) SetTimeout

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

SetTimeout adds the timeout to the stack migrate params

func (*StackMigrateParams) WithBody

WithBody adds the body to the stack migrate params

func (*StackMigrateParams) WithContext

WithContext adds the context to the stack migrate params

func (*StackMigrateParams) WithEndpointID

func (o *StackMigrateParams) WithEndpointID(endpointID *int64) *StackMigrateParams

WithEndpointID adds the endpointID to the stack migrate params

func (*StackMigrateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stack migrate params

func (*StackMigrateParams) WithID

WithID adds the id to the stack migrate params

func (*StackMigrateParams) WithTimeout

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

WithTimeout adds the timeout to the stack migrate params

func (*StackMigrateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StackMigrateReader

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

StackMigrateReader is a Reader for the StackMigrate structure.

func (*StackMigrateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StackUpdateBadRequest

type StackUpdateBadRequest struct {
	Payload *models.GenericError
}

StackUpdateBadRequest handles this case with default header values.

Invalid request

func NewStackUpdateBadRequest

func NewStackUpdateBadRequest() *StackUpdateBadRequest

NewStackUpdateBadRequest creates a StackUpdateBadRequest with default headers values

func (*StackUpdateBadRequest) Error

func (o *StackUpdateBadRequest) Error() string

type StackUpdateForbidden

type StackUpdateForbidden struct {
	Payload *models.GenericError
}

StackUpdateForbidden handles this case with default header values.

Unauthorized

func NewStackUpdateForbidden

func NewStackUpdateForbidden() *StackUpdateForbidden

NewStackUpdateForbidden creates a StackUpdateForbidden with default headers values

func (*StackUpdateForbidden) Error

func (o *StackUpdateForbidden) Error() string

type StackUpdateInternalServerError

type StackUpdateInternalServerError struct {
	Payload *models.GenericError
}

StackUpdateInternalServerError handles this case with default header values.

Server error

func NewStackUpdateInternalServerError

func NewStackUpdateInternalServerError() *StackUpdateInternalServerError

NewStackUpdateInternalServerError creates a StackUpdateInternalServerError with default headers values

func (*StackUpdateInternalServerError) Error

type StackUpdateNotFound

type StackUpdateNotFound struct {
	Payload *models.GenericError
}

StackUpdateNotFound handles this case with default header values.

Stack not found

func NewStackUpdateNotFound

func NewStackUpdateNotFound() *StackUpdateNotFound

NewStackUpdateNotFound creates a StackUpdateNotFound with default headers values

func (*StackUpdateNotFound) Error

func (o *StackUpdateNotFound) Error() string

type StackUpdateOK

type StackUpdateOK struct {
	Payload *models.Stack
}

StackUpdateOK handles this case with default header values.

Success

func NewStackUpdateOK

func NewStackUpdateOK() *StackUpdateOK

NewStackUpdateOK creates a StackUpdateOK with default headers values

func (*StackUpdateOK) Error

func (o *StackUpdateOK) Error() string

type StackUpdateParams

type StackUpdateParams struct {

	/*Body
	  Stack details

	*/
	Body *models.StackUpdateRequest
	/*EndpointID
	  Stacks created before version 1.18.0 might not have an associated endpoint identifier. Use this optional parameter to set the endpoint identifier used by the stack.

	*/
	EndpointID *int64
	/*ID
	  Stack identifier

	*/
	ID int64

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

StackUpdateParams contains all the parameters to send to the API endpoint for the stack update operation typically these are written to a http.Request

func NewStackUpdateParams

func NewStackUpdateParams() *StackUpdateParams

NewStackUpdateParams creates a new StackUpdateParams object with the default values initialized.

func NewStackUpdateParamsWithContext

func NewStackUpdateParamsWithContext(ctx context.Context) *StackUpdateParams

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

func NewStackUpdateParamsWithHTTPClient

func NewStackUpdateParamsWithHTTPClient(client *http.Client) *StackUpdateParams

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

func NewStackUpdateParamsWithTimeout

func NewStackUpdateParamsWithTimeout(timeout time.Duration) *StackUpdateParams

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

func (*StackUpdateParams) SetBody

func (o *StackUpdateParams) SetBody(body *models.StackUpdateRequest)

SetBody adds the body to the stack update params

func (*StackUpdateParams) SetContext

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

SetContext adds the context to the stack update params

func (*StackUpdateParams) SetEndpointID

func (o *StackUpdateParams) SetEndpointID(endpointID *int64)

SetEndpointID adds the endpointId to the stack update params

func (*StackUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stack update params

func (*StackUpdateParams) SetID

func (o *StackUpdateParams) SetID(id int64)

SetID adds the id to the stack update params

func (*StackUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the stack update params

func (*StackUpdateParams) WithBody

WithBody adds the body to the stack update params

func (*StackUpdateParams) WithContext

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

WithContext adds the context to the stack update params

func (*StackUpdateParams) WithEndpointID

func (o *StackUpdateParams) WithEndpointID(endpointID *int64) *StackUpdateParams

WithEndpointID adds the endpointID to the stack update params

func (*StackUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stack update params

func (*StackUpdateParams) WithID

func (o *StackUpdateParams) WithID(id int64) *StackUpdateParams

WithID adds the id to the stack update params

func (*StackUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the stack update params

func (*StackUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StackUpdateReader

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

StackUpdateReader is a Reader for the StackUpdate structure.

func (*StackUpdateReader) ReadResponse

func (o *StackUpdateReader) 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
⌂ 换网址