Help us shape the future of Go! Take the 2026 Go Developer Survey

resource

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultProviderConfig string
View Source
var R = rand.New(rand.NewSource(time.Now().UnixNano()))

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