Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/digitalocean/go-libvirt
/ functions
Functions
1,030 in github.com/digitalocean/go-libvirt
⨍
Functions
1,030
◇
Types & classes
969
↓ 1 callers
Method
StoragePoolLookupByName
StoragePoolLookupByName is the go wrapper for REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_NAME.
remote_protocol.gen.go:6862
↓ 1 callers
Method
StorageVolCreateXML
StorageVolCreateXML is the go wrapper for REMOTE_PROC_STORAGE_VOL_CREATE_XML.
remote_protocol.gen.go:7166
↓ 1 callers
Method
StorageVolDelete
StorageVolDelete is the go wrapper for REMOTE_PROC_STORAGE_VOL_DELETE.
remote_protocol.gen.go:7201
↓ 1 callers
Method
StorageVolDownload
StorageVolDownload is the go wrapper for REMOTE_PROC_STORAGE_VOL_DOWNLOAD.
remote_protocol.gen.go:10613
↓ 1 callers
Method
StorageVolUpload
StorageVolUpload is the go wrapper for REMOTE_PROC_STORAGE_VOL_UPLOAD.
remote_protocol.gen.go:10588
↓ 1 callers
Method
String
()
const_strings.gen.go:1311
↓ 1 callers
Method
String
String will display lexer items for humans to debug. There are some calculations here due to the way goyacc arranges token values; see the generated f
internal/lvgen/lvlexer.go:71
↓ 1 callers
Method
SubscribeQEMUEvents
SubscribeQEMUEvents streams domain events until the provided context is cancelled. If a problem is encountered setting up the event monitor connection
libvirt.go:392
↓ 1 callers
Function
TstEncode
TstEncode creates a new Encoder to the passed writer and returns the internal encode function on the Encoder.
internal/go-xdr/xdr2/internal_test.go:33
↓ 1 callers
Method
Undefine
Undefine undefines the domain specified by dom, e.g., 'prod-lb-01'. The flags argument allows additional options to be specified such as cleaning up s
libvirt.go:605
↓ 1 callers
Function
UseKeyFile
UseKeyFile uses a custom key file
socket/dialers/gossh.go:100
↓ 1 callers
Function
UsePKIPath
UsePKIPath sets the search path for TLS certificate files.
socket/dialers/tls.go:56
↓ 1 callers
Function
UseSSHPassword
UseSSHPassword uses the given password for the ssh connection.
socket/dialers/gossh.go:61
↓ 1 callers
Function
UseSSHPort
UseSSHPort uses the given port for the ssh connection.
socket/dialers/gossh.go:70
↓ 1 callers
Function
UseSSHUsername
UseSSHUsername uses the given username for the ssh connection.
socket/dialers/gossh.go:52
↓ 1 callers
Function
UseTLSPort
UseTLSPort sets the port to dial for libirt on the target host server.
socket/dialers/tls.go:49
↓ 1 callers
Method
Version
Version returns the version of the libvirt daemon. Deprecated: use ConnectGetLibVersion instead.
libvirt.go:654
↓ 1 callers
Function
WithAcceptUnknownHostKey
WithAcceptUnknownHostKey ignores the validity of the host certificate.
socket/dialers/gossh.go:79
↓ 1 callers
Function
WithInsecureNoVerify
WithInsecureNoVerify ignores the validity of the server certificate.
socket/dialers/tls.go:42
↓ 1 callers
Function
WithRemoteSocket
WithRemoteSocket uses a custom remote socket
socket/dialers/gossh.go:114
↓ 1 callers
Function
WithRemoteTimeout
WithRemoteTimeout sets the dial timeout.
socket/dialers/remote.go:26
↓ 1 callers
Function
WithSSHAuthMethods
WithSSHAuthMethods uses the specified auth methods in priority order.
socket/dialers/gossh.go:107
↓ 1 callers
Function
WithSocket
WithSocket sets the path to the local libvirt socket.
socket/dialers/local.go:33
↓ 1 callers
Function
WithSystemSSHDefaults
WithSystemSSHDefaults uses default values for the system ssh client, rather than the defaults that libvirtclient uses with libssh.
socket/dialers/gossh.go:122
↓ 1 callers
Method
XML
XML returns a domain's raw XML definition, akin to `virsh dumpxml <domain>`. See DomainXMLFlag* for optional flags. Deprecated: use DomainGetXMLDesc
libvirt.go:633
↓ 1 callers
Method
acceptRun
acceptRun advances over a number of valid runes, stopping as soon as it hits one not on the list.
internal/lvgen/lvlexer.go:196
↓ 1 callers
Function
addBidirectionalProcs
addBidirectionalProcs adds bidirectional variants of each RPC call mentioned in bidirectionalStreamProcs.
internal/lvgen/generate.go:584
↓ 1 callers
Method
authMethods
(s *SSH)
socket/dialers/gossh.go:248
↓ 1 callers
Method
authenticate
called at connection time, authenticating with all supported auth types
libvirt.go:229
↓ 1 callers
Method
caCerts
(optional bool)
socket/dialers/tls.go:125
↓ 1 callers
Method
callback
callback sends RPC responses to respective callers.
rpc.go:75
↓ 1 callers
Function
changeFlagType
changeFlagType looks up the go type for a libvirt call's flags field. In C these flags are all uint32, and you have to consult the documentation to de
internal/lvgen/generate.go:559
↓ 1 callers
Function
checkError
checkError is used to check whether an error is a libvirtError, and if it is, whether its error code matches the one passed in. It will return false i
rpc.go:58
↓ 1 callers
Function
checkIdentifier
checkIdentifier determines whether an identifier is in our translation list. If so it returns the translated name. This is used to massage the type na
internal/lvgen/generate.go:874
↓ 1 callers
Method
clientCert
()
socket/dialers/tls.go:98
↓ 1 callers
Method
config
()
socket/dialers/tls.go:141
↓ 1 callers
Method
config
()
socket/dialers/gossh.go:320
↓ 1 callers
Method
decodeInterface
decodeInterface examines the interface represented by the passed reflection value to detect whether it is an interface that can be decoded into and if
internal/go-xdr/xdr2/decode.go:635
↓ 1 callers
Method
decodeMap
RFC Section 4.15 - Discriminated Union RFC Section 4.16 - Void RFC Section 4.17 - Constant RFC Section 4.18 - Typedef RFC Section 4.19 - Optional data
internal/go-xdr/xdr2/decode.go:593
↓ 1 callers
Method
decodeStruct
decodeStruct treats the next bytes as a series of XDR encoded elements of the same type as the exported fields of the struct represented by the passed
internal/go-xdr/xdr2/decode.go:517
↓ 1 callers
Method
decodeTypedParamValue
decodeTypedParamValue decodes the Value part of a TypedParam.
rpc.go:436
↓ 1 callers
Function
defaultSSHKeyFile
()
socket/dialers/gossh.go:128
↓ 1 callers
Function
defaultSSHKnownHostsFile
()
socket/dialers/gossh.go:149
↓ 1 callers
Function
dialerForURI
(uri *url.URL)
connect_uri.go:48
↓ 1 callers
Method
encodeInterface
encodeInterface examines the interface represented by the passed reflection value to detect whether it is an interface that can be encoded if it is, e
internal/go-xdr/xdr2/encode.go:534
↓ 1 callers
Method
encodeMap
RFC Section 4.15 - Discriminated Union RFC Section 4.16 - Void RFC Section 4.17 - Constant RFC Section 4.18 - Typedef RFC Section 4.19 - Optional data
internal/go-xdr/xdr2/encode.go:502
↓ 1 callers
Method
encodeStruct
encodeStruct writes an XDR encoded representation of each value in the exported fields of the struct represented by the passed reflection value to the
internal/go-xdr/xdr2/encode.go:441
↓ 1 callers
Function
eventFromProcedureID
(procID uint32)
rpc.go:116
↓ 1 callers
Function
findFlagType
findFlagType attempts to find a real type for the flags passed to a given libvirt routine.
internal/lvgen/generate.go:525
↓ 1 callers
Function
genGo
genGo is called when the parsing is done; it generates the golang output files using templates.
internal/lvgen/generate.go:279
↓ 1 callers
Function
getQEMUError
getQEMUError checks the provided response for QEMU process errors. If an error is found, it is extracted an returned, otherwise nil.
libvirt.go:788
↓ 1 callers
Method
handle
(conn net.Conn)
libvirttest/libvirt.go:620
↓ 1 callers
Method
handleQEMU
(procedure uint32, conn net.Conn)
libvirttest/libvirt.go:699
↓ 1 callers
Method
handleRemote
(procedure uint32, conn net.Conn)
libvirttest/libvirt.go:644
↓ 1 callers
Method
initLibvirtComms
(uri ConnectURI)
libvirt.go:253
↓ 1 callers
Function
isTemporary
isTemporary returns true if the error returned from a read is transient. If the error type is an OpError, check whether the net connection error condi
socket/socket.go:253
↓ 1 callers
Method
keyword
keyword checks whether the current lexeme is a keyword or not. If so it returns the keyword's token id, otherwise it returns IDENTIFIER.
internal/lvgen/lvlexer.go:217
↓ 1 callers
Function
listen
listen processes incoming data and routes responses to their respective callback handler.
socket/socket.go:213
↓ 1 callers
Method
listenAndRoute
listenAndRoute reads packets from the Socket and calls the provided Router function to route them
socket/socket.go:202
↓ 1 callers
Function
mapFlagTypes
mapFlagTypes builds a map of the C types which appear to correspond to the various flags fields in libvirt calls. Determining whether a type actually
internal/lvgen/generate.go:451
↓ 1 callers
Function
newGenerator
()
internal/lvgen/generate.go:66
↓ 1 callers
Method
oneRuneToken
oneRuneToken determines whether a rune is a token. If so it returns the token id and true, otherwise it returns false.
internal/lvgen/lvlexer.go:231
↓ 1 callers
Function
parseMeta
parseMeta parses procedure metadata to simple string mapping
internal/lvgen/generate.go:706
↓ 1 callers
Method
peek
()
internal/lvgen/generate.go:215
↓ 1 callers
Method
pop
()
internal/lvgen/generate.go:207
↓ 1 callers
Function
procIdent
procIdent checks whether an identifier matches the pattern for a procedure enum.
internal/lvgen/lvlexer.go:204
↓ 1 callers
Function
procLink
procLink associates a libvirt procedure with the types that are its arguments and return values, filling out those fields in the procedure struct. The
internal/lvgen/generate.go:420
↓ 1 callers
Function
procNameTransform
procNameTransform returns a Go name for a remote procedure.
internal/lvgen/generate.go:310
↓ 1 callers
Function
procProgramName
procProgramName returns the program associated with a remote procedure. Procedure names follow the pattern, "<PROGRAM>_PROC_<PROCEDURE>". This returns
internal/lvgen/generate.go:320
↓ 1 callers
Method
process
process manages an Stream's lifecycle until canceled by the provided context. Incoming events are appended to a queue which is then relayed to the lis
internal/event/stream.go:113
↓ 1 callers
Function
processProto
(lvFile string)
internal/lvgen/gen/main.go:49
↓ 1 callers
Function
publicize
(name string)
internal/lvgen/generate.go:350
↓ 1 callers
Method
push
(st *Structure)
internal/lvgen/generate.go:204
↓ 1 callers
Method
start
start starts the event processing loop, which will continue to run until terminated by the returned context.CancelFunc.
internal/event/stream.go:100
↓ 1 callers
Function
typeTransform
(name string)
internal/lvgen/generate.go:343
↓ 1 callers
Method
unsubscribeQEMUEvents
unsubscribeQEMUEvents stops the flow of events from QEMU through libvirt.
libvirt.go:430
↓ 1 callers
Method
waitAndDisconnect
()
libvirt.go:809
↓ 1 callers
Function
yyErrorMessage
(state, lookAhead int)
internal/lvgen/y.go:319
Method
AuthSaslInit
AuthSaslInit is the go wrapper for REMOTE_PROC_AUTH_SASL_INIT.
remote_protocol.gen.go:6372
Method
AuthSaslStart
AuthSaslStart is the go wrapper for REMOTE_PROC_AUTH_SASL_START.
remote_protocol.gen.go:6396
Method
AuthSaslStep
AuthSaslStep is the go wrapper for REMOTE_PROC_AUTH_SASL_STEP.
remote_protocol.gen.go:6441
Function
BenchmarkMarshal
BenchmarkMarshal benchmarks the Marshal function by using a dummy ImageHeader structure.
internal/go-xdr/xdr2/bench_test.go:57
Function
BenchmarkUnmarshal
BenchmarkUnmarshal benchmarks the Unmarshal function by using a dummy ImageHeader structure.
internal/go-xdr/xdr2/bench_test.go:29
Method
Connect
Connect uses the dialer provided on creation to establish underlying physical connection to the desired libvirt.
socket/socket.go:134
Method
ConnectBaselineCPU
ConnectBaselineCPU is the go wrapper for REMOTE_PROC_CONNECT_BASELINE_CPU.
remote_protocol.gen.go:9269
Method
ConnectBaselineHypervisorCPU
ConnectBaselineHypervisorCPU is the go wrapper for REMOTE_PROC_CONNECT_BASELINE_HYPERVISOR_CPU.
remote_protocol.gen.go:15660
Method
ConnectClose
ConnectClose is the go wrapper for REMOTE_PROC_CONNECT_CLOSE.
remote_protocol.gen.go:4432
Method
ConnectCompareCPU
ConnectCompareCPU is the go wrapper for REMOTE_PROC_CONNECT_COMPARE_CPU.
remote_protocol.gen.go:9152
Method
ConnectCompareHypervisorCPU
ConnectCompareHypervisorCPU is the go wrapper for REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU.
remote_protocol.gen.go:15622
Method
ConnectDomainEventDeregister
ConnectDomainEventDeregister is the go wrapper for REMOTE_PROC_CONNECT_DOMAIN_EVENT_DEREGISTER.
remote_protocol.gen.go:7589
Method
ConnectDomainEventDeregisterAny
ConnectDomainEventDeregisterAny is the go wrapper for REMOTE_PROC_CONNECT_DOMAIN_EVENT_DEREGISTER_ANY.
remote_protocol.gen.go:9482
Method
ConnectDomainEventRegister
ConnectDomainEventRegister is the go wrapper for REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER.
remote_protocol.gen.go:7565
Method
ConnectDomainEventRegisterAny
ConnectDomainEventRegisterAny is the go wrapper for REMOTE_PROC_CONNECT_DOMAIN_EVENT_REGISTER_ANY.
remote_protocol.gen.go:9460
Method
ConnectDomainXMLFromNative
ConnectDomainXMLFromNative is the go wrapper for REMOTE_PROC_CONNECT_DOMAIN_XML_FROM_NATIVE.
remote_protocol.gen.go:8449
Method
ConnectDomainXMLToNative
ConnectDomainXMLToNative is the go wrapper for REMOTE_PROC_CONNECT_DOMAIN_XML_TO_NATIVE.
remote_protocol.gen.go:8484
Method
ConnectEventConnectionClosed
ConnectEventConnectionClosed is the go wrapper for REMOTE_PROC_CONNECT_EVENT_CONNECTION_CLOSED.
remote_protocol.gen.go:14903
Method
ConnectFindStoragePoolSources
ConnectFindStoragePoolSources is the go wrapper for REMOTE_PROC_CONNECT_FIND_STORAGE_POOL_SOURCES.
remote_protocol.gen.go:6623
Method
ConnectGetCPUModelNames
ConnectGetCPUModelNames is the go wrapper for REMOTE_PROC_CONNECT_GET_CPU_MODEL_NAMES.
remote_protocol.gen.go:13764
Method
ConnectGetDomainCapabilities
ConnectGetDomainCapabilities is the go wrapper for REMOTE_PROC_CONNECT_GET_DOMAIN_CAPABILITIES.
remote_protocol.gen.go:14386
Method
ConnectGetHostname
ConnectGetHostname is the go wrapper for REMOTE_PROC_CONNECT_GET_HOSTNAME.
remote_protocol.gen.go:6064
← previous
next →
201–300 of 1,030, ranked by callers