config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileNameMetadata  = "metadata.hcl"
	FileNameOutputs   = "outputs.tpl"
	FileNameReadme    = "README.md"
	FileNameChangelog = "CHANGELOG.md"
	FileNameVariables = "variables.hcl"

	FolderNameTemplates = "templates"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheConfig

type CacheConfig struct {
	CacheRoot string
}

type NomadConfig

type NomadConfig struct {
	Address       string
	Namespace     string
	Region        string
	Token         string
	TLSSkipVerify bool
	TLSServerName string
	CACert        string
	ClientCert    string
	ClientKey     string
}

type PackConfig

type PackConfig struct {
	UI terminal.UI

	PackName     string
	RegistryName string
	Ref          string

	Plain        bool
	OutPath      string
	AutoApproved bool

	// If the directory we output to is not empty, should we overwrite?
	Overwrite bool

	// Used for the "registry generate" command
	CreateSamplePack bool

	CacheConfig CacheConfig
	NomadConfig NomadConfig
}

func NewPackConfig

func NewPackConfig() PackConfig

func (*PackConfig) GetUI

func (c *PackConfig) GetUI() terminal.UI

Jump to

Keyboard shortcuts

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