digitalocean

package
v2.14.13+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 11

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) (*ListDigitaloceanSizesOK, error)

ListDigitaloceanSizes Lists sizes from digitalocean

func (*Client) ListDigitaloceanSizesNoCredentials

ListDigitaloceanSizesNoCredentials Lists sizes from digitalocean

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ListDigitaloceanSizes(params *ListDigitaloceanSizesParams, authInfo runtime.ClientAuthInfoWriter) (*ListDigitaloceanSizesOK, error)

	ListDigitaloceanSizesNoCredentials(params *ListDigitaloceanSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*ListDigitaloceanSizesNoCredentialsOK, 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 handles this case 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 handles this case 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 handles this case 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 values initialized.

func NewListDigitaloceanSizesNoCredentialsParamsWithContext

func NewListDigitaloceanSizesNoCredentialsParamsWithContext(ctx context.Context) *ListDigitaloceanSizesNoCredentialsParams

NewListDigitaloceanSizesNoCredentialsParamsWithContext creates a new ListDigitaloceanSizesNoCredentialsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 ListDigitaloceanSizesOK

type ListDigitaloceanSizesOK struct {
	Payload *models.DigitaloceanSizeList
}

ListDigitaloceanSizesOK handles this case 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 values initialized.

func NewListDigitaloceanSizesParamsWithContext

func NewListDigitaloceanSizesParamsWithContext(ctx context.Context) *ListDigitaloceanSizesParams

NewListDigitaloceanSizesParamsWithContext creates a new ListDigitaloceanSizesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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