tools

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlattenFloat64List

func FlattenFloat64List(list []float64) string

func FlattenFloatList

func FlattenFloatList(list []float32) string

func FlattenInt64List

func FlattenInt64List(list []int64) string

func FlattenIntList

func FlattenIntList(list []int) string

func FlattenStringList

func FlattenStringList(list []string) string

func FlattenUint64List

func FlattenUint64List(list []uint64) string

func FlattenUintList

func FlattenUintList(list []uint) string

func NormalizeResourceName added in v0.3.0

func NormalizeResourceName(name string) string

func Sformat

func Sformat(buf []byte) []byte

func ToCLIFlagName

func ToCLIFlagName(name string) string

func ToCamelCaseName

func ToCamelCaseName(name string) string

func ToCamelWithFirstLower

func ToCamelWithFirstLower(name string) string

func ToDashedName

func ToDashedName(name string) string

func ToSnakeCaseName

func ToSnakeCaseName(name string) string

Types

type GenerateContext

type GenerateContext struct {
	R           string
	C           string
	P           string
	ResourceDef map[string]*schema.Resource
}

func NewGenerateContext

func NewGenerateContext() *GenerateContext

func (*GenerateContext) CLICommandsFileName

func (c *GenerateContext) CLICommandsFileName() string

func (*GenerateContext) CamelC

func (c *GenerateContext) CamelC() string

func (*GenerateContext) CamelP

func (c *GenerateContext) CamelP() string

func (*GenerateContext) CamelR

func (c *GenerateContext) CamelR() string

func (*GenerateContext) Camelc

func (c *GenerateContext) Camelc() string

func (*GenerateContext) Camelp

func (c *GenerateContext) Camelp() string

func (*GenerateContext) Camelr

func (c *GenerateContext) Camelr() string

func (*GenerateContext) CommandArgsCompletionFileName

func (c *GenerateContext) CommandArgsCompletionFileName(useCustom bool) string

func (*GenerateContext) CommandFileName

func (c *GenerateContext) CommandFileName(useCustomCommand bool) string

func (*GenerateContext) CommandFlagsCompletionFileName

func (c *GenerateContext) CommandFlagsCompletionFileName(useCustom bool) string

func (*GenerateContext) CommandFuncName

func (c *GenerateContext) CommandFuncName() string

func (*GenerateContext) CommandResourceName

func (c *GenerateContext) CommandResourceName() string

func (*GenerateContext) CompleteArgsFuncName

func (c *GenerateContext) CompleteArgsFuncName() string

func (*GenerateContext) CompleteFlagsFuncName

func (c *GenerateContext) CompleteFlagsFuncName() string

func (*GenerateContext) CurrentCommand

func (c *GenerateContext) CurrentCommand() *schema.Command

func (*GenerateContext) CurrentParam

func (c *GenerateContext) CurrentParam() *schema.Schema

func (*GenerateContext) CurrentResource

func (c *GenerateContext) CurrentResource() *schema.Resource

func (*GenerateContext) DashC

func (c *GenerateContext) DashC() string

func (*GenerateContext) DashP

func (c *GenerateContext) DashP() string

func (*GenerateContext) DashR

func (c *GenerateContext) DashR() string

func (*GenerateContext) FindResultFieldName

func (c *GenerateContext) FindResultFieldName() string

func (*GenerateContext) Gopath

func (c *GenerateContext) Gopath() string

func (*GenerateContext) InputModelFileName

func (c *GenerateContext) InputModelFileName() string

func (*GenerateContext) InputModelTypeName

func (c *GenerateContext) InputModelTypeName() string

func (*GenerateContext) InputParamCLIFlagName

func (c *GenerateContext) InputParamCLIFlagName() string

func (*GenerateContext) InputParamDestinationName

func (c *GenerateContext) InputParamDestinationName() string

func (*GenerateContext) InputParamFieldName

func (c *GenerateContext) InputParamFieldName() string

func (*GenerateContext) InputParamFlagName

func (c *GenerateContext) InputParamFlagName() string

func (*GenerateContext) InputParamSetterFuncName

func (c *GenerateContext) InputParamSetterFuncName() string

func (*GenerateContext) InputParamVariableName

func (c *GenerateContext) InputParamVariableName() string

func (*GenerateContext) ResourceArgsCompletionFileName added in v0.0.12

func (c *GenerateContext) ResourceArgsCompletionFileName() string

func (*GenerateContext) ResourceFlagsCompletionFileName added in v0.0.12

func (c *GenerateContext) ResourceFlagsCompletionFileName() string

func (*GenerateContext) SetCurrentR

func (c *GenerateContext) SetCurrentR(k string)

func (*GenerateContext) SnakeC

func (c *GenerateContext) SnakeC() string

func (*GenerateContext) SnakeP

func (c *GenerateContext) SnakeP() string

func (*GenerateContext) SnakeR

func (c *GenerateContext) SnakeR() string

Jump to

Keyboard shortcuts

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