provider

package
v0.0.0-...-129015b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MPL-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileExtensionHtmlMarkdown = `.html.markdown`
	FileExtensionHtmlMd       = `.html.md`
	FileExtensionMarkdown     = `.markdown`
	FileExtensionMd           = `.md`

	DocumentationGlobPattern    = `` /* 149-byte string literal not displayed */
	DocumentationDirGlobPattern = `` /* 136-byte string literal not displayed */
)

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 ValidRegistryFileExtensions = []string{
	FileExtensionMd,
}

Functions

func Generate

func Generate(ui cli.Ui, providerDir, providerName, providersSchemaPath, renderedProviderName, renderedWebsiteDir, examplesDir, websiteTmpDir, templatesDir, tfVersion string, ignoreDeprecated bool, metadataExtraction bool, metadataDelimiter string) error

func Migrate

func Migrate(ui cli.Ui, providerDir string, templatesDir string, examplesDir string, providerName string) error

func TerraformProviderSchemaFromFile

func TerraformProviderSchemaFromFile(providerName, providersSchemaPath string, l *Logger) (*tfjson.ProviderSchema, error)

func TerraformProviderSchemaFromTerraform

func TerraformProviderSchemaFromTerraform(ctx context.Context, providerName, providerDir, tfVersion string, l *Logger) (*tfjson.ProviderSchema, error)

func Validate

func Validate(ui cli.Ui, providerDir, providerName, providersSchemaPath, tfversion string, opts ValidatorOptions) error

Types

type ActionTemplateType

type ActionTemplateType struct {
	Type        string
	Name        string
	Description string

	HasExample   bool
	HasExamples  bool
	ExampleFile  string
	ExampleFiles []string

	ProviderName      string
	ProviderShortName string

	SchemaMarkdown string

	RenderedProviderName string
}

type FunctionTemplateType

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 Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(ui cli.Ui) *Logger

type ProviderTemplateType

type ProviderTemplateType struct {
	Description string

	HasExample   bool
	HasExamples  bool
	ExampleFile  string
	ExampleFiles []string

	ProviderName      string
	ProviderShortName string
	SchemaMarkdown    string

	RenderedProviderName string
}

type ResourceTemplateType

type ResourceTemplateType struct {
	Type        string
	Name        string
	Description string
	SubCategory 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
}

type ValidatorOptions

type ValidatorOptions struct {
	AllowedGuideSubcategories        string
	AllowedGuideSubcategoriesFile    string
	AllowedResourceSubcategories     string
	AllowedResourceSubcategoriesFile string
}

Jump to

Keyboard shortcuts

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