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 ¶
- func AddLabelToDatacenter(ctx context.Context, client *ionossdk.APIClient, id, key, value string) error
- func AddLabelToServer(ctx context.Context, client *ionossdk.APIClient, ...) error
- func AddLabelToVolume(ctx context.Context, client *ionossdk.APIClient, ...) error
- func AttachLANToServer(ctx context.Context, client *ionossdk.APIClient, ...) error
- func AttachLANToServerWithIP(ctx context.Context, client *ionossdk.APIClient, ...) error
- func AttachLANToServerWithoutDHCP(ctx context.Context, client *ionossdk.APIClient, ...) error
- func AttachWANAndFloatingIPToServer(ctx context.Context, client *ionossdk.APIClient, ...) error
- func AttachWANToServer(ctx context.Context, client *ionossdk.APIClient, ...) error
- func AttachWANToServerWithIP(ctx context.Context, client *ionossdk.APIClient, ...) error
- func GetClientForUser(user, password string) *ionossdk.APIClient
- func SetClientForUser(user string, client *ionossdk.APIClient)
- func WaitForDatacenterModifications(ctx context.Context, client *ionossdk.APIClient, id string) error
- func WaitForDatacenterModificationsAndGetResult(ctx context.Context, client *ionossdk.APIClient, id string) (ionossdk.Datacenter, error)
- func WaitForNicModifications(ctx context.Context, client *ionossdk.APIClient, ...) error
- func WaitForNicModificationsAndGetResult(ctx context.Context, client *ionossdk.APIClient, ...) (ionossdk.Nic, error)
- func WaitForServerModifications(ctx context.Context, client *ionossdk.APIClient, datacenterID, id string) error
- func WaitForServerModificationsAndGetResult(ctx context.Context, client *ionossdk.APIClient, datacenterID, id string) (ionossdk.Server, error)
- func WaitForVolumeModifications(ctx context.Context, client *ionossdk.APIClient, datacenterID, id string) error
- func WaitForVolumeModificationsAndGetResult(ctx context.Context, client *ionossdk.APIClient, datacenterID, id string) (ionossdk.Volume, error)
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 ¶
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 ¶
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.