components

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Command                   *string           `yaml:"command,omitempty" json:"command,omitempty" mapstructure:"command,omitempty"`
	Component                 *string           `yaml:"component,omitempty" json:"component,omitempty" mapstructure:"component,omitempty"`
	Vars                      map[string]any    `yaml:"vars,omitempty" json:"vars,omitempty"  mapstructure:"vars,omitempty"`
	Envs                      map[string]string `yaml:"env,omitempty" json:"env,omitempty"  mapstructure:"env,omitempty"`
	BackendType               *string           `yaml:"backend_type,omitempty" json:"backend_type,omitempty"  mapstructure:"backend_type,omitempty"`
	BackendConfigs            map[string]any    `yaml:"backend,omitempty" json:"backend,omitempty"  mapstructure:"backend,omitempty"`
	RemoteStateBackendType    *string           `` /* 137-byte string literal not displayed */
	RemoteStateBackendConfigs map[string]any    `yaml:"remote_state_backend,omitempty" json:"remote_state_backend,omitempty" mapstructure:"remote_state_backend,omitempty"`
	Settings                  map[string]any    `yaml:"settings,omitempty" json:"settings,omitempty" mapstructure:"settings,omitempty"`
}

func MergeConfigs

func MergeConfigs(config1 Config, config2 Config) (Config, error)

type ConfigWithMetadata

type ConfigWithMetadata struct {
	Config   `yaml:",inline" json:",inline" mapstructure:",squash"`
	Metadata *Metadata `yaml:"metadata,omitempty" json:"metadata,omitempty" mapstructure:"metadata,omitempty"`
}

func ProcessComponentConfigs

func ProcessComponentConfigs(stackName string, baseConfig Config, componentsConfigMap map[string]ConfigWithMetadata, componentName string) (*ConfigWithMetadata, error)

type Metadata

type Metadata struct {
	Type                      *string  `yaml:"type,omitempty" json:"type,omitempty" mapstructure:"type,omitempty"`
	Component                 *string  `yaml:"component,omitempty" json:"component,omitempty" mapstructure:"component,omitempty"`
	Inherits                  []string `yaml:"inherits,omitempty" json:"inherits,omitempty" mapstructure:"inherits,omitempty"`
	TerraformWorkspace        *string  `yaml:"terraform_workspace,omitempty" json:"terraform_workspace,omitempty" mapstructure:"terraform_workspace,omitempty"`
	TerraformWorkspacePattern *string  `` /* 142-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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