Documentation ¶
Index ¶
- Variables
- func GetKeyValueMappings(parameters interface{}, path string) []types.PropertyDependencyMapping
- func NewAzapiDefinitionFromExample(exampleFilepath string, kind string) (types.AzapiDefinition, error)
- func NewAzapiDefinitionsFromSwagger(apiPath swagger.ApiPath) []types.AzapiDefinition
- func RequestBodyFromExample(examplePath string) (interface{}, error)
- func ResourceIdFromActionPath(input string) string
- type Context
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultProviderConfig string
Functions ¶
func GetKeyValueMappings ¶
func GetKeyValueMappings(parameters interface{}, path string) []types.PropertyDependencyMapping
GetKeyValueMappings returns a list of key and value of input
func NewAzapiDefinitionFromExample ¶
func NewAzapiDefinitionFromExample(exampleFilepath string, kind string) (types.AzapiDefinition, error)
func NewAzapiDefinitionsFromSwagger ¶
func NewAzapiDefinitionsFromSwagger(apiPath swagger.ApiPath) []types.AzapiDefinition
func RequestBodyFromExample ¶
Types ¶
type Context ¶
type Context struct { File *hclwrite.File KnownPatternMap map[string]types.Reference ReferenceResolvers []resolver.ReferenceResolver // contains filtered or unexported fields }
func NewContext ¶
func NewContext(referenceResolvers []resolver.ReferenceResolver) *Context
func (*Context) AddAzapiDefinition ¶
func (c *Context) AddAzapiDefinition(input types.AzapiDefinition) error
Click to show internal directories.
Click to hide internal directories.