operations

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SupportedOptionServerURL            = "serverURL"
	SupportedOptionRetries              = "retries"
	SupportedOptionTimeout              = "timeout"
	SupportedOptionAcceptHeaderOverride = "acceptHeaderOverride"
	SupportedOptionURLOverride          = "urlOverride"
)

Variables

View Source
var ErrUnsupportedOption = errors.New("unsupported option")

Functions

This section is empty.

Types

type AddSSHKeyResponse

type AddSSHKeyResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	AddSSHKey *shared.ResponseAddSSHKey
	// Unauthorized.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*AddSSHKeyResponse) GetAddSSHKey

func (o *AddSSHKeyResponse) GetAddSSHKey() *shared.ResponseAddSSHKey

func (*AddSSHKeyResponse) GetContentType

func (o *AddSSHKeyResponse) GetContentType() string

func (*AddSSHKeyResponse) GetErrorResponseBody

func (o *AddSSHKeyResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*AddSSHKeyResponse) GetRawResponse

func (o *AddSSHKeyResponse) GetRawResponse() *http.Response

func (*AddSSHKeyResponse) GetStatusCode

func (o *AddSSHKeyResponse) GetStatusCode() int

type DeleteSSHKeyRequest

type DeleteSSHKeyRequest struct {
	// The unique identifier (ID) of the SSH key
	ID string `pathParam:"style=simple,explode=false,name=id"`
}

func (*DeleteSSHKeyRequest) GetID

func (o *DeleteSSHKeyRequest) GetID() string

type DeleteSSHKeyResponse

type DeleteSSHKeyResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// Request parameters were invalid.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*DeleteSSHKeyResponse) GetContentType

func (o *DeleteSSHKeyResponse) GetContentType() string

func (*DeleteSSHKeyResponse) GetErrorResponseBody

func (o *DeleteSSHKeyResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*DeleteSSHKeyResponse) GetRawResponse

func (o *DeleteSSHKeyResponse) GetRawResponse() *http.Response

func (*DeleteSSHKeyResponse) GetStatusCode

func (o *DeleteSSHKeyResponse) GetStatusCode() int

type GetInstanceRequest

type GetInstanceRequest struct {
	// The unique identifier (ID) of the instance
	ID string `pathParam:"style=simple,explode=false,name=id"`
}

func (*GetInstanceRequest) GetID

func (o *GetInstanceRequest) GetID() string

type GetInstanceResponse

type GetInstanceResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	Instance *shared.ResponseInstance
	// Unauthorized.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*GetInstanceResponse) GetContentType

func (o *GetInstanceResponse) GetContentType() string

func (*GetInstanceResponse) GetErrorResponseBody

func (o *GetInstanceResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*GetInstanceResponse) GetInstance

func (o *GetInstanceResponse) GetInstance() *shared.ResponseInstance

func (*GetInstanceResponse) GetRawResponse

func (o *GetInstanceResponse) GetRawResponse() *http.Response

func (*GetInstanceResponse) GetStatusCode

func (o *GetInstanceResponse) GetStatusCode() int

type InstanceTypesResponse

type InstanceTypesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	InstanceTypes *shared.InstanceTypes
	// Unauthorized.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*InstanceTypesResponse) GetContentType

func (o *InstanceTypesResponse) GetContentType() string

func (*InstanceTypesResponse) GetErrorResponseBody

func (o *InstanceTypesResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*InstanceTypesResponse) GetInstanceTypes

func (o *InstanceTypesResponse) GetInstanceTypes() *shared.InstanceTypes

func (*InstanceTypesResponse) GetRawResponse

func (o *InstanceTypesResponse) GetRawResponse() *http.Response

func (*InstanceTypesResponse) GetStatusCode

func (o *InstanceTypesResponse) GetStatusCode() int

type LaunchInstanceResponse

type LaunchInstanceResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	Launch *shared.ResponseLaunch
	// Unauthorized.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*LaunchInstanceResponse) GetContentType

func (o *LaunchInstanceResponse) GetContentType() string

func (*LaunchInstanceResponse) GetErrorResponseBody

func (o *LaunchInstanceResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*LaunchInstanceResponse) GetLaunch

func (*LaunchInstanceResponse) GetRawResponse

func (o *LaunchInstanceResponse) GetRawResponse() *http.Response

func (*LaunchInstanceResponse) GetStatusCode

func (o *LaunchInstanceResponse) GetStatusCode() int

type ListFileSystemsResponse

type ListFileSystemsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	FileSystems *shared.FileSystems
	// Unauthorized.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*ListFileSystemsResponse) GetContentType

func (o *ListFileSystemsResponse) GetContentType() string

func (*ListFileSystemsResponse) GetErrorResponseBody

func (o *ListFileSystemsResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*ListFileSystemsResponse) GetFileSystems

func (o *ListFileSystemsResponse) GetFileSystems() *shared.FileSystems

func (*ListFileSystemsResponse) GetRawResponse

func (o *ListFileSystemsResponse) GetRawResponse() *http.Response

func (*ListFileSystemsResponse) GetStatusCode

func (o *ListFileSystemsResponse) GetStatusCode() int

type ListInstancesResponse

type ListInstancesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	Instances *shared.Instances
	// Unauthorized.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*ListInstancesResponse) GetContentType

func (o *ListInstancesResponse) GetContentType() string

func (*ListInstancesResponse) GetErrorResponseBody

func (o *ListInstancesResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*ListInstancesResponse) GetInstances

func (o *ListInstancesResponse) GetInstances() *shared.Instances

func (*ListInstancesResponse) GetRawResponse

func (o *ListInstancesResponse) GetRawResponse() *http.Response

func (*ListInstancesResponse) GetStatusCode

func (o *ListInstancesResponse) GetStatusCode() int

type ListSSHKeysResponse

type ListSSHKeysResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	SSHKeys *shared.SSHKeys
	// Unauthorized.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*ListSSHKeysResponse) GetContentType

func (o *ListSSHKeysResponse) GetContentType() string

func (*ListSSHKeysResponse) GetErrorResponseBody

func (o *ListSSHKeysResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*ListSSHKeysResponse) GetRawResponse

func (o *ListSSHKeysResponse) GetRawResponse() *http.Response

func (*ListSSHKeysResponse) GetSSHKeys

func (o *ListSSHKeysResponse) GetSSHKeys() *shared.SSHKeys

func (*ListSSHKeysResponse) GetStatusCode

func (o *ListSSHKeysResponse) GetStatusCode() int

type Option

type Option func(*Options, ...string) error

func WithOperationTimeout

func WithOperationTimeout(timeout time.Duration) Option

WithOperationTimeout allows setting the request timeout applied for an operation.

func WithRetries

func WithRetries(config retry.Config) Option

WithRetries allows customizing the default retry configuration.

func WithServerURL

func WithServerURL(serverURL string) Option

WithServerURL allows providing an alternative server URL.

func WithTemplatedServerURL

func WithTemplatedServerURL(serverURL string, params map[string]string) Option

WithTemplatedServerURL allows providing an alternative server URL with templated parameters.

func WithURLOverride

func WithURLOverride(urlOverride string) Option

WithURLOverride allows overriding the URL.

type Options

type Options struct {
	ServerURL   *string
	Retries     *retry.Config
	Timeout     *time.Duration
	URLOverride *string
}

type RestartInstanceResponse

type RestartInstanceResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	Restart *shared.ResponseRestart
	// Unauthorized.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*RestartInstanceResponse) GetContentType

func (o *RestartInstanceResponse) GetContentType() string

func (*RestartInstanceResponse) GetErrorResponseBody

func (o *RestartInstanceResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*RestartInstanceResponse) GetRawResponse

func (o *RestartInstanceResponse) GetRawResponse() *http.Response

func (*RestartInstanceResponse) GetRestart

func (*RestartInstanceResponse) GetStatusCode

func (o *RestartInstanceResponse) GetStatusCode() int

type TerminateInstanceResponse

type TerminateInstanceResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// OK
	Terminate *shared.ResponseTerminate
	// Unauthorized.
	ErrorResponseBody *shared.ErrorResponseBody
}

func (*TerminateInstanceResponse) GetContentType

func (o *TerminateInstanceResponse) GetContentType() string

func (*TerminateInstanceResponse) GetErrorResponseBody

func (o *TerminateInstanceResponse) GetErrorResponseBody() *shared.ErrorResponseBody

func (*TerminateInstanceResponse) GetRawResponse

func (o *TerminateInstanceResponse) GetRawResponse() *http.Response

func (*TerminateInstanceResponse) GetStatusCode

func (o *TerminateInstanceResponse) GetStatusCode() int

func (*TerminateInstanceResponse) GetTerminate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL