digitalocean

package
v0.0.0-...-192cafe Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 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 digitalocean API

func (*Client) ListDigitaloceanSizes

func (a *Client) ListDigitaloceanSizes(params *ListDigitaloceanSizesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDigitaloceanSizesOK, error)

ListDigitaloceanSizes Lists sizes from digitalocean

func (*Client) ListDigitaloceanSizesNoCredentials

func (a *Client) ListDigitaloceanSizesNoCredentials(params *ListDigitaloceanSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDigitaloceanSizesNoCredentialsOK, error)

ListDigitaloceanSizesNoCredentials Lists sizes from digitalocean

func (*Client) ListDigitaloceanSizesNoCredentialsV2

func (a *Client) ListDigitaloceanSizesNoCredentialsV2(params *ListDigitaloceanSizesNoCredentialsV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDigitaloceanSizesNoCredentialsV2OK, error)

ListDigitaloceanSizesNoCredentialsV2 Lists sizes from digitalocean

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 {
	ListDigitaloceanSizes(params *ListDigitaloceanSizesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDigitaloceanSizesOK, error)

	ListDigitaloceanSizesNoCredentials(params *ListDigitaloceanSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDigitaloceanSizesNoCredentialsOK, error)

	ListDigitaloceanSizesNoCredentialsV2(params *ListDigitaloceanSizesNoCredentialsV2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDigitaloceanSizesNoCredentialsV2OK, 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 digitalocean API client.

type ListDigitaloceanSizesDefault

type ListDigitaloceanSizesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListDigitaloceanSizesDefault describes a response with status code -1, with default header values.

errorResponse

func NewListDigitaloceanSizesDefault

func NewListDigitaloceanSizesDefault(code int) *ListDigitaloceanSizesDefault

NewListDigitaloceanSizesDefault creates a ListDigitaloceanSizesDefault with default headers values

func (*ListDigitaloceanSizesDefault) Code

Code gets the status code for the list digitalocean sizes default response

func (*ListDigitaloceanSizesDefault) Error

func (*ListDigitaloceanSizesDefault) GetPayload

type ListDigitaloceanSizesNoCredentialsDefault

type ListDigitaloceanSizesNoCredentialsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListDigitaloceanSizesNoCredentialsDefault describes a response with status code -1, with default header values.

errorResponse

func NewListDigitaloceanSizesNoCredentialsDefault

func NewListDigitaloceanSizesNoCredentialsDefault(code int) *ListDigitaloceanSizesNoCredentialsDefault

NewListDigitaloceanSizesNoCredentialsDefault creates a ListDigitaloceanSizesNoCredentialsDefault with default headers values

func (*ListDigitaloceanSizesNoCredentialsDefault) Code

Code gets the status code for the list digitalocean sizes no credentials default response

func (*ListDigitaloceanSizesNoCredentialsDefault) Error

func (*ListDigitaloceanSizesNoCredentialsDefault) GetPayload

type ListDigitaloceanSizesNoCredentialsOK

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

DigitaloceanSizeList

func NewListDigitaloceanSizesNoCredentialsOK

func NewListDigitaloceanSizesNoCredentialsOK() *ListDigitaloceanSizesNoCredentialsOK

NewListDigitaloceanSizesNoCredentialsOK creates a ListDigitaloceanSizesNoCredentialsOK with default headers values

func (*ListDigitaloceanSizesNoCredentialsOK) Error

func (*ListDigitaloceanSizesNoCredentialsOK) GetPayload

type ListDigitaloceanSizesNoCredentialsParams

type ListDigitaloceanSizesNoCredentialsParams struct {

	// ClusterID.
	ClusterID string

	// Dc.
	DC string

	// ProjectID.
	ProjectID string

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

ListDigitaloceanSizesNoCredentialsParams contains all the parameters to send to the API endpoint

for the list digitalocean sizes no credentials operation.

Typically these are written to a http.Request.

func NewListDigitaloceanSizesNoCredentialsParams

func NewListDigitaloceanSizesNoCredentialsParams() *ListDigitaloceanSizesNoCredentialsParams

NewListDigitaloceanSizesNoCredentialsParams creates a new ListDigitaloceanSizesNoCredentialsParams 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 NewListDigitaloceanSizesNoCredentialsParamsWithContext

func NewListDigitaloceanSizesNoCredentialsParamsWithContext(ctx context.Context) *ListDigitaloceanSizesNoCredentialsParams

NewListDigitaloceanSizesNoCredentialsParamsWithContext creates a new ListDigitaloceanSizesNoCredentialsParams object with the ability to set a context for a request.

func NewListDigitaloceanSizesNoCredentialsParamsWithHTTPClient

func NewListDigitaloceanSizesNoCredentialsParamsWithHTTPClient(client *http.Client) *ListDigitaloceanSizesNoCredentialsParams

NewListDigitaloceanSizesNoCredentialsParamsWithHTTPClient creates a new ListDigitaloceanSizesNoCredentialsParams object with the ability to set a custom HTTPClient for a request.

func NewListDigitaloceanSizesNoCredentialsParamsWithTimeout

func NewListDigitaloceanSizesNoCredentialsParamsWithTimeout(timeout time.Duration) *ListDigitaloceanSizesNoCredentialsParams

NewListDigitaloceanSizesNoCredentialsParamsWithTimeout creates a new ListDigitaloceanSizesNoCredentialsParams object with the ability to set a timeout on a request.

func (*ListDigitaloceanSizesNoCredentialsParams) SetClusterID

func (o *ListDigitaloceanSizesNoCredentialsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) SetContext

SetContext adds the context to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) SetDC

SetDC adds the dc to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) SetDefaults

SetDefaults hydrates default values in the list digitalocean sizes no credentials params (not the query body).

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

func (*ListDigitaloceanSizesNoCredentialsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) SetProjectID

func (o *ListDigitaloceanSizesNoCredentialsParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) SetTimeout

SetTimeout adds the timeout to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) WithClusterID

WithClusterID adds the clusterID to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) WithContext

WithContext adds the context to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) WithDC

WithDC adds the dc to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) WithDefaults

WithDefaults hydrates default values in the list digitalocean sizes no credentials params (not the query body).

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

func (*ListDigitaloceanSizesNoCredentialsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) WithProjectID

WithProjectID adds the projectID to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) WithTimeout

WithTimeout adds the timeout to the list digitalocean sizes no credentials params

func (*ListDigitaloceanSizesNoCredentialsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListDigitaloceanSizesNoCredentialsReader

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

ListDigitaloceanSizesNoCredentialsReader is a Reader for the ListDigitaloceanSizesNoCredentials structure.

func (*ListDigitaloceanSizesNoCredentialsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDigitaloceanSizesNoCredentialsV2Default

type ListDigitaloceanSizesNoCredentialsV2Default struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListDigitaloceanSizesNoCredentialsV2Default describes a response with status code -1, with default header values.

errorResponse

func NewListDigitaloceanSizesNoCredentialsV2Default

func NewListDigitaloceanSizesNoCredentialsV2Default(code int) *ListDigitaloceanSizesNoCredentialsV2Default

NewListDigitaloceanSizesNoCredentialsV2Default creates a ListDigitaloceanSizesNoCredentialsV2Default with default headers values

func (*ListDigitaloceanSizesNoCredentialsV2Default) Code

Code gets the status code for the list digitalocean sizes no credentials v2 default response

func (*ListDigitaloceanSizesNoCredentialsV2Default) Error

func (*ListDigitaloceanSizesNoCredentialsV2Default) GetPayload

type ListDigitaloceanSizesNoCredentialsV2OK

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

DigitaloceanSizeList

func NewListDigitaloceanSizesNoCredentialsV2OK

func NewListDigitaloceanSizesNoCredentialsV2OK() *ListDigitaloceanSizesNoCredentialsV2OK

NewListDigitaloceanSizesNoCredentialsV2OK creates a ListDigitaloceanSizesNoCredentialsV2OK with default headers values

func (*ListDigitaloceanSizesNoCredentialsV2OK) Error

func (*ListDigitaloceanSizesNoCredentialsV2OK) GetPayload

type ListDigitaloceanSizesNoCredentialsV2Params

type ListDigitaloceanSizesNoCredentialsV2Params struct {

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

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

ListDigitaloceanSizesNoCredentialsV2Params contains all the parameters to send to the API endpoint

for the list digitalocean sizes no credentials v2 operation.

Typically these are written to a http.Request.

func NewListDigitaloceanSizesNoCredentialsV2Params

func NewListDigitaloceanSizesNoCredentialsV2Params() *ListDigitaloceanSizesNoCredentialsV2Params

NewListDigitaloceanSizesNoCredentialsV2Params creates a new ListDigitaloceanSizesNoCredentialsV2Params 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 NewListDigitaloceanSizesNoCredentialsV2ParamsWithContext

func NewListDigitaloceanSizesNoCredentialsV2ParamsWithContext(ctx context.Context) *ListDigitaloceanSizesNoCredentialsV2Params

NewListDigitaloceanSizesNoCredentialsV2ParamsWithContext creates a new ListDigitaloceanSizesNoCredentialsV2Params object with the ability to set a context for a request.

func NewListDigitaloceanSizesNoCredentialsV2ParamsWithHTTPClient

func NewListDigitaloceanSizesNoCredentialsV2ParamsWithHTTPClient(client *http.Client) *ListDigitaloceanSizesNoCredentialsV2Params

NewListDigitaloceanSizesNoCredentialsV2ParamsWithHTTPClient creates a new ListDigitaloceanSizesNoCredentialsV2Params object with the ability to set a custom HTTPClient for a request.

func NewListDigitaloceanSizesNoCredentialsV2ParamsWithTimeout

func NewListDigitaloceanSizesNoCredentialsV2ParamsWithTimeout(timeout time.Duration) *ListDigitaloceanSizesNoCredentialsV2Params

NewListDigitaloceanSizesNoCredentialsV2ParamsWithTimeout creates a new ListDigitaloceanSizesNoCredentialsV2Params object with the ability to set a timeout on a request.

func (*ListDigitaloceanSizesNoCredentialsV2Params) SetClusterID

func (o *ListDigitaloceanSizesNoCredentialsV2Params) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) SetContext

SetContext adds the context to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) SetDefaults

SetDefaults hydrates default values in the list digitalocean sizes no credentials v2 params (not the query body).

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

func (*ListDigitaloceanSizesNoCredentialsV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) SetProjectID

func (o *ListDigitaloceanSizesNoCredentialsV2Params) SetProjectID(projectID string)

SetProjectID adds the projectId to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) SetTimeout

SetTimeout adds the timeout to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) WithClusterID

WithClusterID adds the clusterID to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) WithContext

WithContext adds the context to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) WithDefaults

WithDefaults hydrates default values in the list digitalocean sizes no credentials v2 params (not the query body).

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

func (*ListDigitaloceanSizesNoCredentialsV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) WithProjectID

WithProjectID adds the projectID to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) WithTimeout

WithTimeout adds the timeout to the list digitalocean sizes no credentials v2 params

func (*ListDigitaloceanSizesNoCredentialsV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListDigitaloceanSizesNoCredentialsV2Reader

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

ListDigitaloceanSizesNoCredentialsV2Reader is a Reader for the ListDigitaloceanSizesNoCredentialsV2 structure.

func (*ListDigitaloceanSizesNoCredentialsV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDigitaloceanSizesOK

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

DigitaloceanSizeList

func NewListDigitaloceanSizesOK

func NewListDigitaloceanSizesOK() *ListDigitaloceanSizesOK

NewListDigitaloceanSizesOK creates a ListDigitaloceanSizesOK with default headers values

func (*ListDigitaloceanSizesOK) Error

func (o *ListDigitaloceanSizesOK) Error() string

func (*ListDigitaloceanSizesOK) GetPayload

type ListDigitaloceanSizesParams

type ListDigitaloceanSizesParams struct {

	// Credential.
	Credential *string

	// DoToken.
	DoToken *string

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

ListDigitaloceanSizesParams contains all the parameters to send to the API endpoint

for the list digitalocean sizes operation.

Typically these are written to a http.Request.

func NewListDigitaloceanSizesParams

func NewListDigitaloceanSizesParams() *ListDigitaloceanSizesParams

NewListDigitaloceanSizesParams creates a new ListDigitaloceanSizesParams 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 NewListDigitaloceanSizesParamsWithContext

func NewListDigitaloceanSizesParamsWithContext(ctx context.Context) *ListDigitaloceanSizesParams

NewListDigitaloceanSizesParamsWithContext creates a new ListDigitaloceanSizesParams object with the ability to set a context for a request.

func NewListDigitaloceanSizesParamsWithHTTPClient

func NewListDigitaloceanSizesParamsWithHTTPClient(client *http.Client) *ListDigitaloceanSizesParams

NewListDigitaloceanSizesParamsWithHTTPClient creates a new ListDigitaloceanSizesParams object with the ability to set a custom HTTPClient for a request.

func NewListDigitaloceanSizesParamsWithTimeout

func NewListDigitaloceanSizesParamsWithTimeout(timeout time.Duration) *ListDigitaloceanSizesParams

NewListDigitaloceanSizesParamsWithTimeout creates a new ListDigitaloceanSizesParams object with the ability to set a timeout on a request.

func (*ListDigitaloceanSizesParams) SetContext

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

SetContext adds the context to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) SetCredential

func (o *ListDigitaloceanSizesParams) SetCredential(credential *string)

SetCredential adds the credential to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) SetDefaults

func (o *ListDigitaloceanSizesParams) SetDefaults()

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

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

func (*ListDigitaloceanSizesParams) SetDoToken

func (o *ListDigitaloceanSizesParams) SetDoToken(doToken *string)

SetDoToken adds the doToken to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) SetTimeout

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

SetTimeout adds the timeout to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) WithContext

WithContext adds the context to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) WithCredential

func (o *ListDigitaloceanSizesParams) WithCredential(credential *string) *ListDigitaloceanSizesParams

WithCredential adds the credential to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) WithDefaults

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

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

func (*ListDigitaloceanSizesParams) WithDoToken

WithDoToken adds the doToken to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) WithTimeout

WithTimeout adds the timeout to the list digitalocean sizes params

func (*ListDigitaloceanSizesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListDigitaloceanSizesReader

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

ListDigitaloceanSizesReader is a Reader for the ListDigitaloceanSizes structure.

func (*ListDigitaloceanSizesReader) ReadResponse

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