commands

package
v0.0.0-...-ca22424 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Templatedir embed.FS
View Source
var TplFuncMap = template.FuncMap{
	"ToLower":                       strings.ToLower,
	"ToTitle":                       strings.Title,
	"ToCamel":                       strcase.ToCamel,
	"ToSnake":                       strcase.ToSnake,
	"TfName":                        helpers.TerraformResourceName,
	"ToString":                      helpers.ToString,
	"ToDelim":                       strcase.ToDelimited,
	"ToDelimTitle":                  helpers.ToDelimTitle,
	"PrefixedDescriptionString":     helpers.PrefixedDescriptionString,
	"PrefixedLabelString":           helpers.PrefixedLabelString,
	"SchemaItemFormatter":           helpers.SchemaItemFormatter,
	"SchemaItemFormatterAttributes": helpers.SchemaItemFormatterAttributes,
	"SchemaItemFormatterSpecial":    helpers.SchemaItemFormatterSpecial,
}

Functions

This section is empty.

Types

type DataSourceCommand

type DataSourceCommand struct {
	Ui cli.Ui
}

func (DataSourceCommand) Help

func (c DataSourceCommand) Help() string

func (DataSourceCommand) Run

func (c DataSourceCommand) Run(args []string) int

func (DataSourceCommand) Synopsis

func (c DataSourceCommand) Synopsis() string

type DataSourceData

type DataSourceData struct {
	Name           string
	ProviderName   string
	ServicePackage string
	Typed          bool
	Config         *helpers.Configuration
}

func (*DataSourceData) ParseArgs

func (d *DataSourceData) ParseArgs(args []string) (errors []error)

type DocumentCommand

type DocumentCommand struct {
	Ui cli.Ui
}

func (DocumentCommand) Help

func (c DocumentCommand) Help() string

func (DocumentCommand) Run

func (c DocumentCommand) Run(args []string) int

func (DocumentCommand) Synopsis

func (c DocumentCommand) Synopsis() string

type DocumentData

type DocumentData struct {
	Name                  string
	SnakeName             string
	ProviderName          string
	ProviderCanonicalName string
	ServicePackage        string
	DocType               string
	Resource              helpers.Resource
	IDExample             string
	Examples              []string
	ResourceData          string
	SchemaAPIURL          string
}

func (*DocumentData) ParseArgs

func (d *DocumentData) ParseArgs(args []string) (errors []error)

type GenConfigCommand

type GenConfigCommand struct {
	Ui cli.Ui
}

func (GenConfigCommand) Help

func (c GenConfigCommand) Help() string

func (GenConfigCommand) Run

func (c GenConfigCommand) Run(_ []string) int

func (GenConfigCommand) Synopsis

func (c GenConfigCommand) Synopsis() string

type InitData

type InitData struct {
	ProviderName    string
	ServicePackages bool
	TypedSDK        bool
}

type InitialiseCommand

type InitialiseCommand struct {
	Ui cli.Ui
}

func (InitialiseCommand) Help

func (InitialiseCommand) Help() string

func (InitialiseCommand) Run

func (i InitialiseCommand) Run(args []string) int

func (InitialiseCommand) Synopsis

func (InitialiseCommand) Synopsis() string

type ResourceCommand

type ResourceCommand struct {
	Ui cli.Ui
}

func (ResourceCommand) Help

func (c ResourceCommand) Help() string

func (ResourceCommand) Run

func (c ResourceCommand) Run(args []string) int

func (ResourceCommand) Synopsis

func (c ResourceCommand) Synopsis() string

type ResourceData

type ResourceData struct {
	HasUpdate      bool
	Name           string
	ProviderName   string
	ServicePackage string
	Typed          bool
	Config         *helpers.Configuration
}

func (*ResourceData) ParseArgs

func (d *ResourceData) ParseArgs(args []string) (errors []error)

type ServicePackageCommand

type ServicePackageCommand struct {
	Ui cli.Ui
}

func (ServicePackageCommand) Help

func (c ServicePackageCommand) Help() string

func (ServicePackageCommand) Run

func (c ServicePackageCommand) Run(args []string) int

func (ServicePackageCommand) Synopsis

func (c ServicePackageCommand) Synopsis() string

type ServicePackageData

type ServicePackageData struct {
	ServicePackage string
	ProviderName   string
	Typed          bool

	Config *helpers.Configuration
}

func (*ServicePackageData) ParseArgs

func (d *ServicePackageData) ParseArgs(args []string) (errors []error)

Jump to

Keyboard shortcuts

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