util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: MIT Imports: 3 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 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