Documentation
¶
Index ¶
- Constants
- Variables
- func Generate(ui cli.Ui, ...) error
- func Migrate(ui cli.Ui, providerDir string, templatesDir string, examplesDir string, ...) error
- func TerraformProviderSchemaFromFile(providerName, providersSchemaPath string, l *Logger) (*tfjson.ProviderSchema, error)
- func TerraformProviderSchemaFromTerraform(ctx context.Context, providerName, providerDir, tfVersion string, l *Logger) (*tfjson.ProviderSchema, error)
- func Validate(ui cli.Ui, providerDir, providerName, providersSchemaPath, tfversion string, ...) error
- type ActionTemplateType
- type FunctionTemplateType
- type Logger
- type ProviderTemplateType
- type ResourceTemplateType
- type ValidatorOptions
Constants ¶
View Source
const ( FileExtensionHtmlMarkdown = `.html.markdown` FileExtensionHtmlMd = `.html.md` FileExtensionMarkdown = `.markdown` FileExtensionMd = `.md` DocumentationGlobPattern = `` /* 136-byte string literal not displayed */ DocumentationDirGlobPattern = `{docs/{,cdktf/}{actions,data-sources,ephemeral-resources,guides,list-resources,resources,functions}{,/*},website/docs/**/*}` )
Variables ¶
View Source
var LegacyFrontMatterOptions = &check.FrontMatterOptions{ NoSidebarCurrent: true, RequireDescription: true, RequireLayout: true, RequirePageTitle: true, }
View Source
var LegacyIndexFrontMatterOptions = &check.FrontMatterOptions{ NoSidebarCurrent: true, NoSubcategory: true, RequireDescription: true, RequireLayout: true, RequirePageTitle: true, }
View Source
var RegistryFrontMatterOptions = &check.FrontMatterOptions{ NoLayout: true, NoSidebarCurrent: true, }
View Source
var RegistryGuideFrontMatterOptions = &check.FrontMatterOptions{ NoLayout: true, NoSidebarCurrent: true, RequirePageTitle: true, }
View Source
var RegistryIndexFrontMatterOptions = &check.FrontMatterOptions{ NoLayout: true, NoSidebarCurrent: true, NoSubcategory: true, }
View Source
var ValidLegacyFileExtensions = []string{ FileExtensionHtmlMarkdown, FileExtensionHtmlMd, FileExtensionMarkdown, FileExtensionMd, }
View Source
var ValidRegistryFileExtensions = []string{ FileExtensionMd, }
Functions ¶
func TerraformProviderSchemaFromFile ¶ added in v0.19.0
func TerraformProviderSchemaFromFile(providerName, providersSchemaPath string, l *Logger) (*tfjson.ProviderSchema, error)
func TerraformProviderSchemaFromTerraform ¶ added in v0.19.0
Types ¶
type ActionTemplateType ¶ added in v0.24.0
type FunctionTemplateType ¶ added in v0.24.0
type FunctionTemplateType struct {
Type string
Name string
Description string
Summary string
HasExample bool
HasExamples bool
ExampleFile string
ExampleFiles []string
ProviderName string
ProviderShortName string
FunctionSignatureMarkdown string
FunctionArgumentsMarkdown string
HasVariadic bool
FunctionVariadicArgumentMarkdown string
RenderedProviderName string
}
type ProviderTemplateType ¶ added in v0.24.0
type ResourceTemplateType ¶ added in v0.24.0
type ResourceTemplateType struct {
Type string
Name string
Description string
HasExample bool
HasExamples bool
ExampleFile string
ExampleFiles []string
HasImport bool
ImportFile string
HasImportIDConfig bool
ImportIDConfigFile string
HasImportIdentityConfig bool
ImportIdentityConfigFile string
IdentitySchemaMarkdown string
ProviderName string
ProviderShortName string
SchemaMarkdown string
RenderedProviderName string
}
Click to show internal directories.
Click to hide internal directories.