Documentation ¶
Index ¶
- func GetAllStackFiles(fs afero.Fs) ([]string, error)
- func GetAllStackNames(fs afero.Fs) ([]string, error)
- func GetAllStacks[T any](fs afero.Fs) (map[string]*StackConfig[T], error)
- func GetStackNameFromFileName(fileName string) (string, error)
- func IsValidFileName(stackName string) bool
- func NewStackFile(fs afero.Fs, providerName string, stackName string, dir string) (string, error)
- func StackFileName(stackName string) string
- type StackConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllStackFiles ¶
GetAllStackFiles returns a list of all stack files in the current directory
func GetAllStackNames ¶
GetAllStackNames returns a list of all stack names in the current directory
func GetAllStacks ¶
GetAllStacks returns a map of all stack configurations in the current directory, keyed by stack name
func GetStackNameFromFileName ¶
GetStackNameFromFileName returns the stack name from a given stack file name e.g. nitric.aws.yaml -> aws
func IsValidFileName ¶
func NewStackFile ¶
func StackFileName ¶
StackFileName returns the stack file name for a given stack name
Types ¶
type StackConfig ¶
type StackConfig[T any] struct { Name string `yaml:-` Provider string `yaml:"provider"` Config T `yaml:",inline"` }
func ConfigFromName ¶
ConfigFromName returns a stack configuration from a given stack name
Click to show internal directories.
Click to hide internal directories.