pkg

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0, MIT Imports: 7 Imported by: 4

Documentation

Overview

Package pkg is the main package for IONOS specific APIs

Package pkg is the main package for IONOS specific APIs

Package pkg is the main package for IONOS specific APIs

Package pkg is the main package for IONOS specific APIs

Package pkg is the main package for IONOS specific APIs

Package pkg is the main package for IONOS specific APIs

Package pkg is the main package for IONOS specific APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabelToDatacenter added in v0.2.0

func AddLabelToDatacenter(ctx context.Context, client *ionossdk.APIClient, id, key, value string) error

AddLabelToDatacenter adds a label to the server ID given

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client id string Datacenter ID key string Label key value string Label value

func AddLabelToServer

func AddLabelToServer(ctx context.Context, client *ionossdk.APIClient, datacenterID, id, key, value string) error

AddLabelToServer adds a label to the server ID given

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID id string Server ID key string Label key value string Label value

func AddLabelToVolume

func AddLabelToVolume(ctx context.Context, client *ionossdk.APIClient, datacenterID, id, key, value string) error

AddLabelToVolume adds a label to the server ID given

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID id string Volume ID key string Label key value string Label value

func AttachLANToServer

func AttachLANToServer(ctx context.Context, client *ionossdk.APIClient, datacenterID, serverID, lanID string) error

AttachLANToServer attaches the LAN ID given to the server.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID serverID string Server ID lanID string LAN ID

func AttachLANToServerWithIP added in v0.1.4

func AttachLANToServerWithIP(ctx context.Context, client *ionossdk.APIClient, datacenterID, serverID, lanID string, lanIP *net.IP) error

AttachLANToServerWithIP attaches the LAN ID given to the server with the IP given.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID serverID string Server ID lanID string LAN ID lanIP string LAN IP to use

func AttachLANToServerWithoutDHCP added in v0.1.1

func AttachLANToServerWithoutDHCP(ctx context.Context, client *ionossdk.APIClient, datacenterID, serverID, lanID string) error

AttachLANToServerWithoutDHCP attaches the LAN ID given to the server without DHCP support.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID serverID string Server ID lanID string LAN ID

func AttachWANAndFloatingIPToServer added in v0.2.0

func AttachWANAndFloatingIPToServer(ctx context.Context, client *ionossdk.APIClient, datacenterID, serverID, lanID, floatingPoolID string) error

AttachWANAndFloatingIPToServer attaches the LAN ID given to the server and uses a free floating pool IP from the given IP block ID.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID serverID string Server ID lanID string LAN ID floatingPoolID string Floating pool ID to select IP from

func AttachWANToServer added in v0.2.0

func AttachWANToServer(ctx context.Context, client *ionossdk.APIClient, datacenterID, serverID, lanID string) error

AttachWANToServer attaches the LAN ID given to the server.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID serverID string Server ID lanID string LAN ID

func AttachWANToServerWithIP added in v0.2.0

func AttachWANToServerWithIP(ctx context.Context, client *ionossdk.APIClient, datacenterID, serverID, lanID string, lanIP *net.IP) error

AttachWANToServerWithIP attaches the LAN ID given to the server with the IP given.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID serverID string Server ID lanID string LAN ID lanIP string LAN IP to use

func GetClientForUser

func GetClientForUser(user, password string) *ionossdk.APIClient

GetClientForUser returns an underlying IONOS client for the given user name.

PARAMETERS user string User name to look up client instance for password string Password for the user name. Please note that the password

will not be replaced if an client is already cached.

func SetClientForUser

func SetClientForUser(user string, client *ionossdk.APIClient)

SetClientForUser sets a preconfigured IONOS client for the given user name.

PARAMETERS user string User name to look up client instance for client *ionossdk.APIClient Preconfigured IONOS client

func WaitForDatacenterModifications added in v0.1.2

func WaitForDatacenterModifications(ctx context.Context, client *ionossdk.APIClient, id string) error

WaitForDatacenterModifications waits for all pending changes of a datacenter to complete.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client id string Datacenter ID

func WaitForDatacenterModificationsAndGetResult added in v0.1.2

func WaitForDatacenterModificationsAndGetResult(ctx context.Context, client *ionossdk.APIClient, id string) (ionossdk.Datacenter, error)

WaitForDatacenterModificationsAndGetResult waits for all pending changes of a datacenter to complete and returns the datacenter result struct.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client id string Datacenter ID

func WaitForNicModifications

func WaitForNicModifications(ctx context.Context, client *ionossdk.APIClient, datacenterID, serverID, nicID string) error

WaitForNicModifications waits for all pending changes of a NIC to complete.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID serverID string Server ID nicID string NIC ID

func WaitForNicModificationsAndGetResult

func WaitForNicModificationsAndGetResult(ctx context.Context, client *ionossdk.APIClient, datacenterID, serverID, nicID string) (ionossdk.Nic, error)

WaitForNicModificationsAndGetResult waits for all pending changes of a NIC to complete and returns the NIC result struct.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID serverID string Server ID nicID string NIC ID

func WaitForServerModifications

func WaitForServerModifications(ctx context.Context, client *ionossdk.APIClient, datacenterID, id string) error

WaitForServerModifications waits for all pending changes of a server to complete.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID id string Server ID

func WaitForServerModificationsAndGetResult

func WaitForServerModificationsAndGetResult(ctx context.Context, client *ionossdk.APIClient, datacenterID, id string) (ionossdk.Server, error)

WaitForServerModificationsAndGetResult waits for all pending changes of a server to complete and returns the server result struct.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID id string Server ID

func WaitForVolumeModifications

func WaitForVolumeModifications(ctx context.Context, client *ionossdk.APIClient, datacenterID, id string) error

WaitForVolumeModifications waits for all pending changes of a volume to complete.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID volumeID string Volume ID

func WaitForVolumeModificationsAndGetResult

func WaitForVolumeModificationsAndGetResult(ctx context.Context, client *ionossdk.APIClient, datacenterID, id string) (ionossdk.Volume, error)

WaitForVolumeModificationsAndGetResult waits for all pending changes of a NIC to complete and returns the NIC result struct.

PARAMETERS ctx context.Context Execution context client *ionossdk.APIClient IONOS client datacenterID string Datacenter ID volumeID string Volume ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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