Documentation ¶
Index ¶
- func BoolToPtr(b bool) *bool
- func Contains(match string, haystack []string) bool
- func ContainsInt(match int, haystack []int) bool
- func DurationToPtr(d time.Duration) *time.Duration
- func FindAllocation(c *cli.Context, client *api.Client) (*api.Allocation, error)
- func FindAllocationByID(allocID string, client *api.Client) (*api.Allocation, error)
- func FindAllocationByJob(jobID string, client *api.Client) (*api.Allocation, error)
- func FindAllocationByPrefix(allocID string, client *api.Client) (*api.Allocation, error)
- func FindAllocationFromScratch(prefix string, client *api.Client) (*api.Allocation, error)
- func FindTask(alloc *api.Allocation, taskName string) (string, error)
- func IntToPtr(i int) *int
- func StringToPtr(str string) *string
- func WarningFormat(es []error) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInt ¶
func DurationToPtr ¶
DurationToPtr return the pointer to a duration
func FindAllocation ¶
func FindAllocationByID ¶
func FindAllocationByJob ¶
func FindAllocationByPrefix ¶
func WarningFormat ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.