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 ¶
- func GetAnyMaster() (*hope.Node, error)
- func GetIdentifiableResources(names *[]string, tags *[]string) (*[]hope.Resource, error)
- func GetJob(jobName string) (*hope.Job, error)
- func GetJobs() (*[]hope.Job, error)
- func GetNode(name string) (*hope.Node, error)
- func GetNodes() (*[]hope.Node, error)
- func GetResources() (*[]hope.Resource, error)
- func ReplaceParametersInFile(path string, parameters []string) (string, error)
- func ReplaceParametersInString(str string, parameters []string) (string, error)
- func ReplaceParametersWithSubstitutor(t *hope.TextSubstitutor, parameters []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnyMaster ¶
func GetResources ¶
func ReplaceParametersInFile ¶
func ReplaceParametersWithSubstitutor ¶
func ReplaceParametersWithSubstitutor(t *hope.TextSubstitutor, parameters []string) (string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.