util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func GetNames added in v0.2.0

func GetNames(value interface{}) (names []string)

GetNames parses the input to get resource names

func WaitForAction added in v0.2.0

func WaitForAction(ctx context.Context, client *hcloud.Client, action *hcloud.Action) error

WaitForAction makes sure we only watch one action at a time

Types

type WaitFn added in v0.2.0

type WaitFn func(ctx context.Context, client *hcloud.Client, action *hcloud.Action) error

WaitFn waits for the competion of an action

Jump to

Keyboard shortcuts

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