Documentation
¶
Index ¶
- func AttributeConfiguration(configurations []Configuration) hclwrite.Tokens
- func AttributeProviders(providers map[string]string) hclwrite.Tokens
- func BlockModule(f *hclwrite.File, module_name string, providers map[string]string, ...)
- func BlockProvider(f *hclwrite.File, cluster_provider string, alias string, region string)
- func BlockTerraform(f *hclwrite.File, providers map[string]map[string]string)
- func BlockVariable(f *hclwrite.File, name string, tftype string, description string)
- func ModuleCluster(f *hclwrite.File, module_name string, cluster_provider string, ...)
- func ModuleNodePool(f *hclwrite.File, module_name string, cluster_provider string, ...)
- func ModuleService(f *hclwrite.File, module_name string, cluster_name string, source string, ...)
- type Backend
- type Blocks
- type Configuration
- type DataSource
- type Locals
- type Module
- func (m *Module) ConfigurationBaseKeyOrDefault() string
- func (m *Module) NamePrefix() (region string, err error)
- func (m *Module) NodePoolName() (name string, err error)
- func (m *Module) ParentCluster() (string, error)
- func (m *Module) Region() (region string, err error)
- func (m *Module) TypeProviderVersion() (t, p, v string, err error)
- type Output
- type Provider
- type RequiredProvider
- type Resource
- type Root
- func (r *Root) DeleteFiles(paths []string) error
- func (r *Root) GetVariableValue(name string) (value cty.Value, ok bool)
- func (r *Root) Read() (err error)
- func (r *Root) SetVariableValue(name string, value cty.Value)
- func (r *Root) Write() (err error)
- func (r *Root) WriteFiles(data map[string][]byte) error
- type Terraform
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeConfiguration ¶
func AttributeConfiguration(configurations []Configuration) hclwrite.Tokens
func BlockModule ¶
func BlockProvider ¶
func BlockVariable ¶
func ModuleCluster ¶
func ModuleNodePool ¶
func ModuleService ¶
Types ¶
type Blocks ¶
type Blocks struct { Modules []Module `hcl:"module,block"` Providers []Provider `hcl:"provider,block"` Variables []Variable `hcl:"variable,block"` Terraform []Terraform `hcl:"terraform,block"` Locals []Locals `hcl:"locals,block"` // kubestack unused Resources []Resource `hcl:"resource,block"` DataSources []DataSource `hcl:"data,block"` Output []Output `hcl:"output,block"` }
type Configuration ¶
type DataSource ¶
type Module ¶
type Module struct { Name string `hcl:"name,label"` ProvidersRaw hcl.Expression `hcl:"providers,optional"` Providers map[string]Provider Source string `hcl:"source"` Version string `hcl:"version,optional"` ClusterNameRaw hcl.Expression `hcl:"cluster_name,optional"` ClusterMetadataRaw hcl.Expression `hcl:"cluster_metadata,optional"` MetadataFQDNRaw hcl.Expression `hcl:"metadata_fqdn,optional"` ConfigurationBaseKey string `hcl:"configuration_base_key,optional"` ConfigurationRaw hcl.Expression `hcl:"configuration"` Configuration map[string]map[string]cty.Value Body hcl.Body `hcl:",remain"` }
func (*Module) ConfigurationBaseKeyOrDefault ¶
func (*Module) NamePrefix ¶
func (*Module) NodePoolName ¶
func (*Module) ParentCluster ¶
func (*Module) TypeProviderVersion ¶
type RequiredProvider ¶
type RequiredProvider struct {
Body hcl.Body `hcl:",remain"`
}
type Root ¶
type Root struct { Path string Parser *hclparse.Parser Variables map[string][]Variable Modules map[string][]Module Providers map[string][]Provider // contains filtered or unexported fields }
func (*Root) DeleteFiles ¶
func (*Root) GetVariableValue ¶
type Terraform ¶
type Terraform struct { Backend []Backend `hcl:"backend,block"` RequiredProviders []RequiredProvider `hcl:"required_providers,block"` RequiredVersion string `hcl:"required_version,optional"` }
Click to show internal directories.
Click to hide internal directories.