Documentation
¶
Index ¶
- func GetID(value interface{}) (id int)
- func GetIDs(value interface{}) (ids []int)
- func GetIdentifier(value interface{}) (id string)
- func GetIdentifiers(value interface{}) (ids []string)
- func GetName(value interface{}) (name string)
- func GetNames(value interface{}) (names []string)
- func WaitForAction(ctx context.Context, client *hcloud.Client, action *hcloud.Action) error
- type WaitFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetID ¶ added in v0.2.0
func GetID(value interface{}) (id int)
GetID parses the input to get a resource id
func GetIDs ¶ added in v0.3.0
func GetIDs(value interface{}) (ids []int)
GetIDs parses the input to get resource ids
func GetIdentifier ¶ added in v0.3.0
func GetIdentifier(value interface{}) (id string)
GetIdentifier parses the input to get a resource identifier for client.Get
func GetIdentifiers ¶ added in v0.3.0
func GetIdentifiers(value interface{}) (ids []string)
GetIdentifiers returns a list of strings for client.Get methods
func GetName ¶ added in v0.2.0
func GetName(value interface{}) (name string)
GetName parses the input to get a resource name
Types ¶
Click to show internal directories.
Click to hide internal directories.