utils

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package utils -- Utility functions to be used throughout cmd. Kind of decided that this was a pretty decent way of doing shared logic for

cmd.

Basically the same as for pkg, so nothing too special there, but since cmd

has a bit of nesting, it brings up some more questions.

It seems like golang itself does a pattern like this for `base` cmd units,

so this is probably not too shabby.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnyMaster

func GetAnyMaster() (*hope.Node, error)

func GetIdentifiableResources

func GetIdentifiableResources(names *[]string, tags *[]string) (*[]hope.Resource, error)

func GetJob

func GetJob(jobName string) (*hope.Job, error)

func GetJobs

func GetJobs() (*[]hope.Job, error)

func GetNode

func GetNode(name string) (*hope.Node, error)

func GetNodes

func GetNodes() (*[]hope.Node, error)

func GetResources

func GetResources() (*[]hope.Resource, error)

func ReplaceParametersInFile

func ReplaceParametersInFile(path string, parameters []string) (string, error)

func ReplaceParametersInString

func ReplaceParametersInString(str string, parameters []string) (string, error)

func ReplaceParametersWithSubstitutor

func ReplaceParametersWithSubstitutor(t *hope.TextSubstitutor, parameters []string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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