Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dmacvicar/terraform-provider-libvirt
/ functions
Functions
453 in github.com/dmacvicar/terraform-provider-libvirt
⨍
Functions
453
◇
Types & classes
76
↓ 106 callers
Method
Libvirt
Libvirt returns the underlying go-libvirt client for direct API access
internal/libvirt/client.go:89
↓ 66 callers
Function
testAccPreCheck
(t *testing.T)
internal/provider/provider_test.go:36
↓ 26 callers
Method
Close
Close closes the libvirt connection
internal/libvirt/client.go:81
↓ 11 callers
Function
testAccLibvirtURI
testAccLibvirtURI returns the libvirt URI to use for acceptance tests. It can be configured via the LIBVIRT_TEST_URI environment variable. Defaults to
internal/provider/provider_test.go:28
↓ 9 callers
Function
domainDeviceListAttributeTypesWithWaitForIP
()
internal/provider/domain_resource.go:201
↓ 7 callers
Method
Write
(b []byte)
internal/libvirt/dialers/sshcmd.go:372
↓ 6 callers
Method
LookupDomainByUUID
LookupDomainByUUID looks up a domain by its UUID string
internal/libvirt/client.go:117
↓ 6 callers
Method
ReflectStruct
ReflectStruct analyzes a libvirtxml struct and returns its IR.
internal/codegen/parser/libvirtxml.go:31
↓ 6 callers
Function
SnakeCase
SnakeCase converts CamelCase to snake_case while keeping known acronyms intact.
internal/util/stringutil/snake.go:50
↓ 6 callers
Function
canonicalOctalMode
(value string)
internal/provider/octal_mode_modifier.go:50
↓ 6 callers
Function
mustSingleNestedAttribute
mustSingleNestedAttribute asserts that attr is a schema.SingleNestedAttribute and panics otherwise. Generated schemas are known at compile time, so a
internal/provider/schema_helpers.go:11
↓ 5 callers
Function
ApplyFieldPolicies
ApplyFieldPolicies mutates the IR with Terraform-specific schema/conversion semantics after structural reflection is complete.
internal/codegen/policy/field_policy.go:51
↓ 5 callers
Function
hasClass
(n *html.Node, class string)
internal/codegen/docindex/parser.go:218
↓ 4 callers
Method
LookupNetworkByUUID
LookupNetworkByUUID looks up a network by its UUID string
internal/libvirt/client.go:149
↓ 4 callers
Function
NewLibvirtXMLReflector
NewLibvirtXMLReflector creates a new reflector.
internal/codegen/parser/libvirtxml.go:23
↓ 4 callers
Function
canonicalPath
(value string)
internal/provider/trailing_slash_modifier.go:52
↓ 4 callers
Function
domainInterfaceAttributeTypesWithWaitForIP
()
internal/provider/domain_resource.go:193
↓ 4 callers
Function
prepareDomainPlan
(ctx context.Context, model *DomainResourceModel)
internal/provider/domain_resource.go:211
↓ 4 callers
Function
testAccCheckDomainIsRunning
(name string)
internal/provider/domain_resource_test.go:965
↓ 4 callers
Function
testAccDomainResourceConfigRunning
(name string)
internal/provider/domain_resource_test.go:810
↓ 3 callers
Function
NewSSHCmd
NewSSHCmd creates a new SSHCmd dialer from a libvirt URI.
internal/libvirt/dialers/sshcmd.go:65
↓ 3 callers
Function
OctalModePlanModifier
OctalModePlanModifier returns a plan modifier that handles octal mode normalization.
internal/provider/octal_mode_modifier.go:59
↓ 3 callers
Function
UnmarshalDomainXML
UnmarshalDomainXML deserializes XML to libvirtxml.Domain
internal/libvirt/domain_xml.go:19
↓ 3 callers
Function
applyWaitForIPValues
(ctx context.Context, devices types.Object, waitValues []attr.Value)
internal/provider/domain_resource.go:340
↓ 3 callers
Method
buildSSHArgs
()
internal/libvirt/dialers/sshcmd.go:268
↓ 3 callers
Function
copyAttrTypesMap
(src map[string]attr.Type)
internal/provider/domain_resource.go:185
↓ 3 callers
Function
domainInterfaceWaitForIPAttrTypes
()
internal/provider/domain_resource.go:165
↓ 3 callers
Function
domainStartFlagsFromCreate
(ctx context.Context, createVal types.Object)
internal/provider/domain_resource.go:418
↓ 3 callers
Function
extractPath
extractPath extracts the path value from a "- path: xyz" line
internal/codegen/docgen/writer.go:165
↓ 3 callers
Function
extractText
extractText recursively extracts all text from a node
internal/codegen/docindex/parser.go:141
↓ 3 callers
Method
lastStderrLines
()
internal/libvirt/dialers/sshcmd.go:388
↓ 3 callers
Function
mustStringAttribute
mustStringAttribute asserts that attr is a schema.StringAttribute and panics otherwise. Generated schemas are known at compile time, so a panic indica
internal/provider/schema_helpers.go:21
↓ 3 callers
Function
parseUUID
parseUUID converts a UUID string to libvirt.UUID type
internal/libvirt/client.go:165
↓ 3 callers
Method
readNetwork
readNetwork reads network state from libvirt and populates the model
internal/provider/network_resource.go:365
↓ 3 callers
Method
stopDomainIfRunning
(domain golibvirt.Domain, options domainStopOptions)
internal/provider/domain_resource.go:646
↓ 3 callers
Function
testAccCheckCloudInitDiskExists
testAccCheckCloudInitDiskExists verifies that the ISO file exists on disk
internal/provider/cloudinit_disk_resource_test.go:74
↓ 3 callers
Function
testAccCheckDomainAutostart
(resourceName string, expected bool)
internal/provider/domain_resource_test.go:1937
↓ 3 callers
Function
testAccCheckPoolStateAndAutostart
(poolName string, expectedState golibvirt.StoragePoolState, expectedAutostart int32)
internal/provider/pool_resource_test.go:275
↓ 3 callers
Function
testAccDomainResourceConfigAutostart
(name string, autostart bool)
internal/provider/domain_resource_test.go:1918
↓ 3 callers
Function
testAccVolumeResourceConfigUploadFromFile
(name, poolPath, sourceFile string)
internal/provider/volume_resource_test.go:595
↓ 3 callers
Function
testAccVolumeResourceConfigUploadFromURL
(name, poolPath, sourceURL string, capacity *int64)
internal/provider/volume_resource_test.go:623
↓ 3 callers
Function
waitForDomainState
waitForDomainState waits for a domain to reach the specified state with a timeout
internal/provider/domain_resource.go:977
↓ 3 callers
Function
waitForInterfaceIP
waitForInterfaceIP polls for IP addresses on a domain's interfaces If mac is specified, waits for that specific interface to get an IP If mac is empty
internal/provider/domain_resource.go:1340
↓ 2 callers
Function
GeneratePrompt
GeneratePrompt creates a prompt for AI to generate field descriptions It includes the full HTML index for context and enriched field metadata.
internal/codegen/docgen/prompt.go:12
↓ 2 callers
Function
Load
Load reads every YAML file from dir and builds a registry.
internal/codegen/docregistry/docregistry.go:36
↓ 2 callers
Method
LookupPoolByUUID
LookupPoolByUUID looks up a storage pool by its UUID string
internal/libvirt/client.go:133
↓ 2 callers
Function
MarshalDomainXML
MarshalDomainXML serializes a libvirtxml.Domain to XML string
internal/libvirt/domain_xml.go:10
↓ 2 callers
Function
New
New creates a new provider instance
internal/provider/provider.go:30
↓ 2 callers
Function
NewClient
NewClient creates a new libvirt client from a connection URI
internal/libvirt/client.go:24
↓ 2 callers
Function
UUIDString
UUIDString converts a libvirt.UUID to a hyphenated string representation
internal/libvirt/client.go:187
↓ 2 callers
Method
buildCyclePath
buildCyclePath builds a human-readable cycle path for error messages. e.g., "DomainDiskSource → DomainDiskDataStore → DomainDiskSource"
internal/codegen/parser/cycle_detection.go:17
↓ 2 callers
Function
domainDestroyFlagsFromDestroy
(ctx context.Context, destroyVal types.Object)
internal/provider/domain_resource.go:452
↓ 2 callers
Function
domainDestroyOptionsFromDestroy
(ctx context.Context, destroyVal types.Object)
internal/provider/domain_resource.go:521
↓ 2 callers
Function
domainShutdownTimeoutFromObject
(ctx context.Context, shutdownVal types.Object, defaultTimeout time.Duration)
internal/provider/domain_resource.go:471
↓ 2 callers
Function
domainUndefineFlagsForDelete
(libvirtVersion uint64)
internal/provider/domain_resource.go:121
↓ 2 callers
Function
domainUndefineFlagsForUpdate
(libvirtVersion uint64)
internal/provider/domain_resource.go:110
↓ 2 callers
Function
domainUpdateOptionsFromUpdate
(ctx context.Context, updateVal types.Object)
internal/provider/domain_resource.go:492
↓ 2 callers
Function
hashString
hashString returns a simple hash of the input string. This is used for generating stable IDs for data sources.
internal/provider/data_source_node_info.go:149
↓ 2 callers
Method
isInAnalysisStack
isInAnalysisStack checks if a type name is currently being analyzed (cycle detection).
internal/codegen/parser/cycle_detection.go:6
↓ 2 callers
Function
keys
(fields map[string]bool)
internal/codegen/parser/libvirtxml_test.go:79
↓ 2 callers
Function
newGoSSHDialer
newGoSSHDialer creates an SSH dialer using the Go SSH library (upstream)
internal/libvirt/dialers/factory.go:93
↓ 2 callers
Method
readPoolWithPlan
readPoolWithPlan reads pool state from libvirt and populates the model plan parameter is used to preserve user intent (only populate fields user speci
internal/provider/pool_resource.go:383
↓ 2 callers
Method
readVolume
readVolume reads volume state from libvirt and populates the model plan parameter is used to preserve user intent (only populate fields user specified
internal/provider/volume_resource.go:385
↓ 2 callers
Function
stringToBoolValue
(field *generator.FieldIR, trueVal bool)
internal/codegen/docgen/batch.go:211
↓ 2 callers
Function
testAccDomainResourceConfigBasic
(name string)
internal/provider/domain_resource_test.go:137
↓ 2 callers
Function
testAccDomainResourceConfigCPUHostModel
(name string)
internal/provider/domain_resource_test.go:375
↓ 2 callers
Function
testAccDomainResourceConfigConsoleAndSerialAlias
(name string)
internal/provider/domain_resource_test.go:1813
↓ 2 callers
Function
testAccDomainResourceConfigDestroyShutdownRunningWithImage
(domainName, volumeName, poolName, poolPath, imagePath string, timeout int64)
internal/provider/domain_resource_test.go:878
↓ 2 callers
Function
testAccDomainResourceConfigNvramTemplate
(name string)
internal/provider/domain_resource_test.go:2293
↓ 2 callers
Function
testAccPoolResourceConfigDir
(name, path string)
internal/provider/pool_resource_test.go:309
↓ 2 callers
Function
testAccPoolResourceConfigDirWithDestroyDelete
(name, path string, deleteStorage bool)
internal/provider/pool_resource_test.go:373
↓ 2 callers
Function
testAccVolumeResourceConfigBasic
(name, poolPath string)
internal/provider/volume_resource_test.go:151
↓ 2 callers
Function
testAccVolumeResourceConfigCapacityUnit
(name, poolPath string)
internal/provider/volume_resource_test.go:370
↓ 2 callers
Function
testAccVolumeResourceConfigPermissionsMode
(name, poolPath string)
internal/provider/volume_resource_test.go:175
↓ 1 callers
Method
Apply
Apply walks structIR rooted at rootPath (snake_case) adding doc strings when available.
internal/codegen/docregistry/docregistry.go:86
↓ 1 callers
Function
BuildBatches
BuildBatches creates batches of all fields
internal/codegen/docgen/batch.go:87
↓ 1 callers
Method
Dial
Dial establishes a connection to libvirt and returns a net.Conn.
internal/libvirt/dialers/dialer.go:16
↓ 1 callers
Method
EntryForPath
EntryForPath returns an entry and presence flag for a given path.
internal/codegen/docregistry/docregistry.go:158
↓ 1 callers
Method
Generate
Generate generates conversion code for the given structs.
internal/codegen/generator/convert.go:40
↓ 1 callers
Method
Generate
Generate generates model code for the given structs.
internal/codegen/generator/model.go:40
↓ 1 callers
Method
Generate
Generate generates schema code for the given structs.
internal/codegen/generator/schema.go:40
↓ 1 callers
Method
Generate
Generate generates descriptions for a batch using OpenAI API
internal/codegen/docgen/openai.go:58
↓ 1 callers
Function
GetFullIndex
GetFullIndex loads and returns the complete documentation index for AI context
internal/codegen/docgen/batch.go:235
↓ 1 callers
Function
LoadState
LoadState loads generation state from disk
internal/codegen/docgen/batch.go:55
↓ 1 callers
Function
NewConvertGenerator
NewConvertGenerator creates a new conversion generator.
internal/codegen/generator/convert.go:16
↓ 1 callers
Function
NewDialerFromURI
NewDialerFromURI creates the appropriate Dialer based on the libvirt URI. It uses upstream go-libvirt dialers for most transports and custom dialers f
internal/libvirt/dialers/factory.go:21
↓ 1 callers
Function
NewModelGenerator
NewModelGenerator creates a new model generator.
internal/codegen/generator/model.go:16
↓ 1 callers
Function
NewOpenAIClient
NewOpenAIClient creates a new OpenAI client
internal/codegen/docgen/openai.go:23
↓ 1 callers
Function
NewSchemaGenerator
NewSchemaGenerator creates a new schema generator.
internal/codegen/generator/schema.go:16
↓ 1 callers
Function
OpenURLStream
OpenURLStream opens a URL for reading and returns the stream with its size. Supports: - https:// URLs - file:// URLs - Plain absolute paths (treated a
internal/provider/volume_upload.go:25
↓ 1 callers
Function
ParseHTML
ParseHTML extracts documentation sections from an HTML file
internal/codegen/docindex/parser.go:23
↓ 1 callers
Function
ParseYAMLResponse
ParseYAMLResponse extracts YAML entries from the AI response
internal/codegen/docgen/prompt.go:121
↓ 1 callers
Method
Ping
Ping verifies the connection is still alive
internal/libvirt/client.go:104
↓ 1 callers
Method
PlanModifyString
(ctx context.Context, req planmodifier.StringRequest, resp *planmodifier.StringResponse)
internal/provider/octal_mode_modifier.go:22
↓ 1 callers
Function
SaveState
SaveState saves generation state to disk
internal/codegen/docgen/batch.go:73
↓ 1 callers
Method
Schema
Schema defines the schema for the resource
internal/provider/domain_resource.go:556
↓ 1 callers
Function
TrailingSlashPlanModifier
TrailingSlashPlanModifier returns a plan modifier that handles trailing slash normalization.
internal/provider/trailing_slash_modifier.go:60
↓ 1 callers
Function
WriteYAMLEntries
WriteYAMLEntries appends YAML entries to the appropriate documentation files Skips entries that already exist (deduplication)
internal/codegen/docgen/writer.go:12
↓ 1 callers
Function
addElementsFromText
(text string, elements map[string]bool)
internal/codegen/docindex/parser.go:198
↓ 1 callers
Method
analyzeField
(structName string, field reflect.StructField)
internal/codegen/parser/libvirtxml.go:185
next →
1–100 of 453, ranked by callers