Documentation ¶
Index ¶
- type NomadPack
- func (nomadPack *NomadPack) AddRegistry(name, source string, ref, target *string) error
- func (nomadPack *NomadPack) NomadAddr(nomad_addr string) *NomadPack
- func (nomadPack *NomadPack) NomadToken(nomad_token string) *NomadPack
- func (nomadPack *NomadPack) Plan(workDir string, diff bool, varFiles []string, vars map[string]string, ...) error
- func (nomadPack *NomadPack) Render(workDir string, diff bool, varFiles []string, vars map[string]string, ...) error
- func (nomadPack *NomadPack) Run(workDir string, diff bool, varFiles []string, vars map[string]string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NomadPack ¶
type NomadPack struct {
// contains filtered or unexported fields
}
NomadPack is a wrapper around the Nomad binary that provides a way to interact with Nomad using the Nomad Pack CLI.
func New ¶
Creates a new NomadPack instance by providing the path to the Nomad binary. If the binary is not found or is not executable an error is returned.
func (*NomadPack) AddRegistry ¶
Add nomad pack registries name: the name of the registry. source: the source of the registry. ref: speficic git ref of the registry or pack to be added. target: A specific pack within the registry to be added.
func (*NomadPack) NomadToken ¶
func (*NomadPack) Plan ¶
func (nomadPack *NomadPack) Plan(workDir string, diff bool, varFiles []string, vars map[string]string, extraParams []string) error
Plan runs the Nomad Pack plan command. workDir: the directory nomad-pack will be run in. diff: whether to show the diff. ref: speficic git ref of the registry or pack to be added. registry: the registry to use. pack: the pack to run. varFiles: an array of var files to use. vars: a map of vars to use.