Documentation ¶
Index ¶
- type Client
- func (a *Client) ListDigitaloceanSizes(params *ListDigitaloceanSizesParams, authInfo runtime.ClientAuthInfoWriter) (*ListDigitaloceanSizesOK, error)
- func (a *Client) ListDigitaloceanSizesNoCredentials(params *ListDigitaloceanSizesNoCredentialsParams, ...) (*ListDigitaloceanSizesNoCredentialsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type ListDigitaloceanSizesDefault
- type ListDigitaloceanSizesNoCredentialsDefault
- type ListDigitaloceanSizesNoCredentialsOK
- type ListDigitaloceanSizesNoCredentialsParams
- func NewListDigitaloceanSizesNoCredentialsParams() *ListDigitaloceanSizesNoCredentialsParams
- func NewListDigitaloceanSizesNoCredentialsParamsWithContext(ctx context.Context) *ListDigitaloceanSizesNoCredentialsParams
- func NewListDigitaloceanSizesNoCredentialsParamsWithHTTPClient(client *http.Client) *ListDigitaloceanSizesNoCredentialsParams
- func NewListDigitaloceanSizesNoCredentialsParamsWithTimeout(timeout time.Duration) *ListDigitaloceanSizesNoCredentialsParams
- func (o *ListDigitaloceanSizesNoCredentialsParams) SetClusterID(clusterID string)
- func (o *ListDigitaloceanSizesNoCredentialsParams) SetContext(ctx context.Context)
- func (o *ListDigitaloceanSizesNoCredentialsParams) SetDC(dc string)
- func (o *ListDigitaloceanSizesNoCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *ListDigitaloceanSizesNoCredentialsParams) SetProjectID(projectID string)
- func (o *ListDigitaloceanSizesNoCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *ListDigitaloceanSizesNoCredentialsParams) WithClusterID(clusterID string) *ListDigitaloceanSizesNoCredentialsParams
- func (o *ListDigitaloceanSizesNoCredentialsParams) WithContext(ctx context.Context) *ListDigitaloceanSizesNoCredentialsParams
- func (o *ListDigitaloceanSizesNoCredentialsParams) WithDC(dc string) *ListDigitaloceanSizesNoCredentialsParams
- func (o *ListDigitaloceanSizesNoCredentialsParams) WithHTTPClient(client *http.Client) *ListDigitaloceanSizesNoCredentialsParams
- func (o *ListDigitaloceanSizesNoCredentialsParams) WithProjectID(projectID string) *ListDigitaloceanSizesNoCredentialsParams
- func (o *ListDigitaloceanSizesNoCredentialsParams) WithTimeout(timeout time.Duration) *ListDigitaloceanSizesNoCredentialsParams
- func (o *ListDigitaloceanSizesNoCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDigitaloceanSizesNoCredentialsReader
- type ListDigitaloceanSizesOK
- type ListDigitaloceanSizesParams
- func NewListDigitaloceanSizesParams() *ListDigitaloceanSizesParams
- func NewListDigitaloceanSizesParamsWithContext(ctx context.Context) *ListDigitaloceanSizesParams
- func NewListDigitaloceanSizesParamsWithHTTPClient(client *http.Client) *ListDigitaloceanSizesParams
- func NewListDigitaloceanSizesParamsWithTimeout(timeout time.Duration) *ListDigitaloceanSizesParams
- func (o *ListDigitaloceanSizesParams) SetContext(ctx context.Context)
- func (o *ListDigitaloceanSizesParams) SetCredential(credential *string)
- func (o *ListDigitaloceanSizesParams) SetDoToken(doToken *string)
- func (o *ListDigitaloceanSizesParams) SetHTTPClient(client *http.Client)
- func (o *ListDigitaloceanSizesParams) SetTimeout(timeout time.Duration)
- func (o *ListDigitaloceanSizesParams) WithContext(ctx context.Context) *ListDigitaloceanSizesParams
- func (o *ListDigitaloceanSizesParams) WithCredential(credential *string) *ListDigitaloceanSizesParams
- func (o *ListDigitaloceanSizesParams) WithDoToken(doToken *string) *ListDigitaloceanSizesParams
- func (o *ListDigitaloceanSizesParams) WithHTTPClient(client *http.Client) *ListDigitaloceanSizesParams
- func (o *ListDigitaloceanSizesParams) WithTimeout(timeout time.Duration) *ListDigitaloceanSizesParams
- func (o *ListDigitaloceanSizesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDigitaloceanSizesReader
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 ¶
func (a *Client) ListDigitaloceanSizesNoCredentials(params *ListDigitaloceanSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*ListDigitaloceanSizesNoCredentialsOK, error)
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 ¶
func (o *ListDigitaloceanSizesDefault) Code() int
Code gets the status code for the list digitalocean sizes default response
func (*ListDigitaloceanSizesDefault) Error ¶
func (o *ListDigitaloceanSizesDefault) Error() string
func (*ListDigitaloceanSizesDefault) GetPayload ¶
func (o *ListDigitaloceanSizesDefault) GetPayload() *models.ErrorResponse
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 ¶
func (o *ListDigitaloceanSizesNoCredentialsDefault) Code() int
Code gets the status code for the list digitalocean sizes no credentials default response
func (*ListDigitaloceanSizesNoCredentialsDefault) Error ¶
func (o *ListDigitaloceanSizesNoCredentialsDefault) Error() string
func (*ListDigitaloceanSizesNoCredentialsDefault) GetPayload ¶
func (o *ListDigitaloceanSizesNoCredentialsDefault) GetPayload() *models.ErrorResponse
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 (o *ListDigitaloceanSizesNoCredentialsOK) Error() string
func (*ListDigitaloceanSizesNoCredentialsOK) GetPayload ¶
func (o *ListDigitaloceanSizesNoCredentialsOK) GetPayload() *models.DigitaloceanSizeList
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 ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the list digitalocean sizes no credentials params
func (*ListDigitaloceanSizesNoCredentialsParams) SetDC ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) SetDC(dc string)
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 ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list digitalocean sizes no credentials params
func (*ListDigitaloceanSizesNoCredentialsParams) WithClusterID ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) WithClusterID(clusterID string) *ListDigitaloceanSizesNoCredentialsParams
WithClusterID adds the clusterID to the list digitalocean sizes no credentials params
func (*ListDigitaloceanSizesNoCredentialsParams) WithContext ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) WithContext(ctx context.Context) *ListDigitaloceanSizesNoCredentialsParams
WithContext adds the context to the list digitalocean sizes no credentials params
func (*ListDigitaloceanSizesNoCredentialsParams) WithDC ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) WithDC(dc string) *ListDigitaloceanSizesNoCredentialsParams
WithDC adds the dc to the list digitalocean sizes no credentials params
func (*ListDigitaloceanSizesNoCredentialsParams) WithHTTPClient ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) WithHTTPClient(client *http.Client) *ListDigitaloceanSizesNoCredentialsParams
WithHTTPClient adds the HTTPClient to the list digitalocean sizes no credentials params
func (*ListDigitaloceanSizesNoCredentialsParams) WithProjectID ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) WithProjectID(projectID string) *ListDigitaloceanSizesNoCredentialsParams
WithProjectID adds the projectID to the list digitalocean sizes no credentials params
func (*ListDigitaloceanSizesNoCredentialsParams) WithTimeout ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) WithTimeout(timeout time.Duration) *ListDigitaloceanSizesNoCredentialsParams
WithTimeout adds the timeout to the list digitalocean sizes no credentials params
func (*ListDigitaloceanSizesNoCredentialsParams) WriteToRequest ¶
func (o *ListDigitaloceanSizesNoCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListDigitaloceanSizesOK) GetPayload() *models.DigitaloceanSizeList
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 ¶
func (o *ListDigitaloceanSizesParams) WithContext(ctx context.Context) *ListDigitaloceanSizesParams
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 ¶
func (o *ListDigitaloceanSizesParams) WithDoToken(doToken *string) *ListDigitaloceanSizesParams
WithDoToken adds the doToken to the list digitalocean sizes params
func (*ListDigitaloceanSizesParams) WithHTTPClient ¶
func (o *ListDigitaloceanSizesParams) WithHTTPClient(client *http.Client) *ListDigitaloceanSizesParams
WithHTTPClient adds the HTTPClient to the list digitalocean sizes params
func (*ListDigitaloceanSizesParams) WithTimeout ¶
func (o *ListDigitaloceanSizesParams) WithTimeout(timeout time.Duration) *ListDigitaloceanSizesParams
WithTimeout adds the timeout to the list digitalocean sizes params
func (*ListDigitaloceanSizesParams) WriteToRequest ¶
func (o *ListDigitaloceanSizesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.