helpers

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToPtr

func BoolToPtr(b bool) *bool

boolToPtr returns the pointer to a boolean

func Contains

func Contains(match string, haystack []string) bool

func ContainsInt

func ContainsInt(match int, haystack []int) bool

func DurationToPtr

func DurationToPtr(d time.Duration) *time.Duration

DurationToPtr return the pointer to a duration

func FindAllocation

func FindAllocation(c *cli.Context, client *api.Client) (*api.Allocation, error)

func FindAllocationByID

func FindAllocationByID(allocID string, client *api.Client) (*api.Allocation, error)

func FindAllocationByJob

func FindAllocationByJob(jobID string, client *api.Client) (*api.Allocation, error)

func FindAllocationByPrefix

func FindAllocationByPrefix(allocID string, client *api.Client) (*api.Allocation, error)

func FindAllocationFromScratch

func FindAllocationFromScratch(prefix string, client *api.Client) (*api.Allocation, error)

func FindTask

func FindTask(alloc *api.Allocation, taskName string) (string, error)

func IntToPtr

func IntToPtr(i int) *int

IntToPtr returns the pointer to an int

func StringToPtr

func StringToPtr(str string) *string

StringToPtr returns the pointer to a string

func WarningFormat

func WarningFormat(es []error) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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