hetzner

package
v2.14.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 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 hetzner API

func (*Client) ListHetznerSizes

func (a *Client) ListHetznerSizes(params *ListHetznerSizesParams, authInfo runtime.ClientAuthInfoWriter) (*ListHetznerSizesOK, error)

ListHetznerSizes Lists sizes from hetzner

func (*Client) ListHetznerSizesNoCredentials

func (a *Client) ListHetznerSizesNoCredentials(params *ListHetznerSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*ListHetznerSizesNoCredentialsOK, error)

ListHetznerSizesNoCredentials Lists sizes from hetzner

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ListHetznerSizes(params *ListHetznerSizesParams, authInfo runtime.ClientAuthInfoWriter) (*ListHetznerSizesOK, error)

	ListHetznerSizesNoCredentials(params *ListHetznerSizesNoCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*ListHetznerSizesNoCredentialsOK, 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 hetzner API client.

type ListHetznerSizesDefault

type ListHetznerSizesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListHetznerSizesDefault handles this case with default header values.

errorResponse

func NewListHetznerSizesDefault

func NewListHetznerSizesDefault(code int) *ListHetznerSizesDefault

NewListHetznerSizesDefault creates a ListHetznerSizesDefault with default headers values

func (*ListHetznerSizesDefault) Code

func (o *ListHetznerSizesDefault) Code() int

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

func (*ListHetznerSizesDefault) Error

func (o *ListHetznerSizesDefault) Error() string

func (*ListHetznerSizesDefault) GetPayload

func (o *ListHetznerSizesDefault) GetPayload() *models.ErrorResponse

type ListHetznerSizesNoCredentialsDefault

type ListHetznerSizesNoCredentialsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListHetznerSizesNoCredentialsDefault handles this case with default header values.

errorResponse

func NewListHetznerSizesNoCredentialsDefault

func NewListHetznerSizesNoCredentialsDefault(code int) *ListHetznerSizesNoCredentialsDefault

NewListHetznerSizesNoCredentialsDefault creates a ListHetznerSizesNoCredentialsDefault with default headers values

func (*ListHetznerSizesNoCredentialsDefault) Code

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

func (*ListHetznerSizesNoCredentialsDefault) Error

func (*ListHetznerSizesNoCredentialsDefault) GetPayload

type ListHetznerSizesNoCredentialsOK

type ListHetznerSizesNoCredentialsOK struct {
	Payload *models.HetznerSizeList
}

ListHetznerSizesNoCredentialsOK handles this case with default header values.

HetznerSizeList

func NewListHetznerSizesNoCredentialsOK

func NewListHetznerSizesNoCredentialsOK() *ListHetznerSizesNoCredentialsOK

NewListHetznerSizesNoCredentialsOK creates a ListHetznerSizesNoCredentialsOK with default headers values

func (*ListHetznerSizesNoCredentialsOK) Error

func (*ListHetznerSizesNoCredentialsOK) GetPayload

type ListHetznerSizesNoCredentialsParams

type ListHetznerSizesNoCredentialsParams struct {

	/*ClusterID*/
	ClusterID string
	/*Dc*/
	DC string
	/*ProjectID*/
	ProjectID string

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

ListHetznerSizesNoCredentialsParams contains all the parameters to send to the API endpoint for the list hetzner sizes no credentials operation typically these are written to a http.Request

func NewListHetznerSizesNoCredentialsParams

func NewListHetznerSizesNoCredentialsParams() *ListHetznerSizesNoCredentialsParams

NewListHetznerSizesNoCredentialsParams creates a new ListHetznerSizesNoCredentialsParams object with the default values initialized.

func NewListHetznerSizesNoCredentialsParamsWithContext

func NewListHetznerSizesNoCredentialsParamsWithContext(ctx context.Context) *ListHetznerSizesNoCredentialsParams

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

func NewListHetznerSizesNoCredentialsParamsWithHTTPClient

func NewListHetznerSizesNoCredentialsParamsWithHTTPClient(client *http.Client) *ListHetznerSizesNoCredentialsParams

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

func NewListHetznerSizesNoCredentialsParamsWithTimeout

func NewListHetznerSizesNoCredentialsParamsWithTimeout(timeout time.Duration) *ListHetznerSizesNoCredentialsParams

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

func (*ListHetznerSizesNoCredentialsParams) SetClusterID

func (o *ListHetznerSizesNoCredentialsParams) SetClusterID(clusterID string)

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

func (*ListHetznerSizesNoCredentialsParams) SetContext

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

func (*ListHetznerSizesNoCredentialsParams) SetDC

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

func (*ListHetznerSizesNoCredentialsParams) SetHTTPClient

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

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

func (*ListHetznerSizesNoCredentialsParams) SetProjectID

func (o *ListHetznerSizesNoCredentialsParams) SetProjectID(projectID string)

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

func (*ListHetznerSizesNoCredentialsParams) SetTimeout

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

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

func (*ListHetznerSizesNoCredentialsParams) WithClusterID

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

func (*ListHetznerSizesNoCredentialsParams) WithContext

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

func (*ListHetznerSizesNoCredentialsParams) WithDC

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

func (*ListHetznerSizesNoCredentialsParams) WithHTTPClient

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

func (*ListHetznerSizesNoCredentialsParams) WithProjectID

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

func (*ListHetznerSizesNoCredentialsParams) WithTimeout

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

func (*ListHetznerSizesNoCredentialsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListHetznerSizesNoCredentialsReader

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

ListHetznerSizesNoCredentialsReader is a Reader for the ListHetznerSizesNoCredentials structure.

func (*ListHetznerSizesNoCredentialsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListHetznerSizesOK

type ListHetznerSizesOK struct {
	Payload *models.HetznerSizeList
}

ListHetznerSizesOK handles this case with default header values.

HetznerSizeList

func NewListHetznerSizesOK

func NewListHetznerSizesOK() *ListHetznerSizesOK

NewListHetznerSizesOK creates a ListHetznerSizesOK with default headers values

func (*ListHetznerSizesOK) Error

func (o *ListHetznerSizesOK) Error() string

func (*ListHetznerSizesOK) GetPayload

func (o *ListHetznerSizesOK) GetPayload() *models.HetznerSizeList

type ListHetznerSizesParams

type ListHetznerSizesParams struct {

	/*Credential*/
	Credential *string
	/*HetznerToken*/
	HetznerToken *string

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

ListHetznerSizesParams contains all the parameters to send to the API endpoint for the list hetzner sizes operation typically these are written to a http.Request

func NewListHetznerSizesParams

func NewListHetznerSizesParams() *ListHetznerSizesParams

NewListHetznerSizesParams creates a new ListHetznerSizesParams object with the default values initialized.

func NewListHetznerSizesParamsWithContext

func NewListHetznerSizesParamsWithContext(ctx context.Context) *ListHetznerSizesParams

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

func NewListHetznerSizesParamsWithHTTPClient

func NewListHetznerSizesParamsWithHTTPClient(client *http.Client) *ListHetznerSizesParams

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

func NewListHetznerSizesParamsWithTimeout

func NewListHetznerSizesParamsWithTimeout(timeout time.Duration) *ListHetznerSizesParams

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

func (*ListHetznerSizesParams) SetContext

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

SetContext adds the context to the list hetzner sizes params

func (*ListHetznerSizesParams) SetCredential

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

SetCredential adds the credential to the list hetzner sizes params

func (*ListHetznerSizesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list hetzner sizes params

func (*ListHetznerSizesParams) SetHetznerToken

func (o *ListHetznerSizesParams) SetHetznerToken(hetznerToken *string)

SetHetznerToken adds the hetznerToken to the list hetzner sizes params

func (*ListHetznerSizesParams) SetTimeout

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

SetTimeout adds the timeout to the list hetzner sizes params

func (*ListHetznerSizesParams) WithContext

WithContext adds the context to the list hetzner sizes params

func (*ListHetznerSizesParams) WithCredential

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

WithCredential adds the credential to the list hetzner sizes params

func (*ListHetznerSizesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list hetzner sizes params

func (*ListHetznerSizesParams) WithHetznerToken

func (o *ListHetznerSizesParams) WithHetznerToken(hetznerToken *string) *ListHetznerSizesParams

WithHetznerToken adds the hetznerToken to the list hetzner sizes params

func (*ListHetznerSizesParams) WithTimeout

WithTimeout adds the timeout to the list hetzner sizes params

func (*ListHetznerSizesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListHetznerSizesReader

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

ListHetznerSizesReader is a Reader for the ListHetznerSizes structure.

func (*ListHetznerSizesReader) ReadResponse

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