Documentation
¶
Index ¶
- Constants
- func BuildStackInputYaml(manifestObject proto.Message, ...) (string, error)
- func ExtractManifestFromBytes(stackInputBytes []byte) (manifestPath string, err error)
- func ExtractManifestFromStackInput(stackInputPath string) (manifestPath string, err error)
- func IsStackInput(content []byte) bool
- func LoadProviderConfig(stackInputContentMap map[string]interface{}, providerConfigKey string, ...) (isProviderConfigLoaded bool, err error)
Constants ¶
const ProviderConfigKey = "provider_config"
ProviderConfigKey is the key used in stack input for provider configuration.
Variables ¶
This section is empty.
Functions ¶
func BuildStackInputYaml ¶
func BuildStackInputYaml( manifestObject proto.Message, providerConfig *stackinputproviderconfig.ProviderConfig, ) (string, error)
BuildStackInputYaml builds stack input YAML from a manifest and provider config. The provider config path is read from the unified ProviderConfig struct.
func ExtractManifestFromBytes ¶
ExtractManifestFromBytes extracts the manifest from stack input YAML bytes. This enables reading stack input from sources other than files (e.g., clipboard). The stack input must contain a "target" field with the manifest content. Returns the path to the temporary manifest file.
func ExtractManifestFromStackInput ¶
ExtractManifestFromStackInput reads a stack input YAML file, extracts the "target" field, and writes it to a temporary file. Returns the path to the temporary manifest file.
func IsStackInput ¶
IsStackInput checks if the given YAML bytes represent a stack input (has "target" key at root).
Types ¶
This section is empty.