resource

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultProviderConfig = `` /* 294-byte string literal not displayed */

Variables

This section is empty.

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

func RequestBodyFromExample(examplePath string) (interface{}, error)

func ResourceIdFromActionPath

func ResourceIdFromActionPath(input string) string

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

func (*Context) AddHcl

func (c *Context) AddHcl(input string, skipWhenDuplicate bool) (*types.Reference, error)

func (*Context) InitFile

func (c *Context) InitFile(content string) error

func (*Context) String

func (c *Context) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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