Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateProviderSchema(providerPath, gitBranch string)
- func GetAttributeContent(objName, path string, isDataSource bool) (string, *schema.SchemaAttribute, error)
- func GetFinalTerraformObject(objName string, isDataSource bool) *processors.TerraformObject
- func GetFinalTerraformObjects() processors.TerraformObjects
- func GetModuleAttributeContent(resourceName, path string) (string, *schema.SchemaAttribute, error)
- func GetModuleContent(moduleName string) (string, error)
- func GetObjectInfo(objName string, isDataSource bool) (*processors.TerraformObject, error)
- func GetPossibleValuesForProperty(objName, propertyName string, isDataSource bool) ([]string, error)
- func GetPropertyDocContent(objName string, property *schema.SchemaAttribute, isDataSource bool) string
- func GetPropertyInfo(objName, propertyPath string, isDataSource bool) (*schema.SchemaAttribute, error)
- func GetResourceContent(objName string, isDataSource bool) (string, error)
- func GetSnippet(objName string, isDataSource bool) (string, error)
- func ListAllModules() []string
- func ListAllResourcesAndDataSources() []*processors.TerraformObject
- func ListDirectProperties(objName string, path string, isDataSource bool) ([]*schema.SchemaAttribute, error)
- func NavigateToNestedBlock(objName, path string, isDataSource bool) (*schema.SchemaAttribute, error)
Constants ¶
View Source
const ModuleTemplate = `## %s
[📖 Documentation](<%s>) | [🔍 See Related Issues](<%s>) | [🐛 Raise Issue](<%s>)
---
%s
`
Variables ¶
View Source
var ( ResourceTemplate = `## %s [📖 Documentation](<%s>) | [🔍 See Related Issues](<%s>) | [🐛 Raise Issue](<%s>) --- %s ` AttributeTemplate = `## %s **[%s] %s** [📖 Documentation](<%s>) | [🔍 See Related Issues](<%s>) | [🐛 Raise Issue](<%s>) --- %s %s ` )
Functions ¶
func GenerateProviderSchema ¶
func GenerateProviderSchema(providerPath, gitBranch string)
func GetAttributeContent ¶
func GetFinalTerraformObject ¶
func GetFinalTerraformObject(objName string, isDataSource bool) *processors.TerraformObject
func GetFinalTerraformObjects ¶ added in v0.6.0
func GetFinalTerraformObjects() processors.TerraformObjects
func GetModuleAttributeContent ¶ added in v0.6.0
func GetModuleAttributeContent(resourceName, path string) (string, *schema.SchemaAttribute, error)
func GetModuleContent ¶ added in v0.6.0
func GetObjectInfo ¶
func GetObjectInfo(objName string, isDataSource bool) (*processors.TerraformObject, error)
func GetPropertyDocContent ¶
func GetPropertyDocContent(objName string, property *schema.SchemaAttribute, isDataSource bool) string
func GetPropertyInfo ¶
func GetPropertyInfo(objName, propertyPath string, isDataSource bool) (*schema.SchemaAttribute, error)
func GetResourceContent ¶
func ListAllModules ¶ added in v0.6.0
func ListAllModules() []string
func ListAllResourcesAndDataSources ¶
func ListAllResourcesAndDataSources() []*processors.TerraformObject
func ListDirectProperties ¶
func NavigateToNestedBlock ¶
func NavigateToNestedBlock(objName, path string, isDataSource bool) (*schema.SchemaAttribute, error)
NavigateToNestedBlock navigates down a nested block path and returns the final block or property
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.