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
↓ 2 callers
Method
KeyboardInteractive
KeyboardInteractive adds the keyboard-interactive auth method to the allowed list (currently unimplemented).
socket/dialers/gossh.go:239
↓ 2 callers
Function
Marshal
* Marshal writes the XDR encoding of v to writer w and returns the number of bytes written. It traverses v recursively and automatically indirects po
internal/go-xdr/xdr2/encode.go:75
↓ 2 callers
Method
NetworkUpdate
NetworkUpdate is the go wrapper for REMOTE_PROC_NETWORK_UPDATE.
remote_protocol.gen.go:13125
↓ 2 callers
Function
NewAlreadyConnected
NewAlreadyConnected is a noop dialer to simply use a connection previously established. This means any re-dial attempts simply won't work.
socket/dialers/already_connected.go:17
↓ 2 callers
Function
NewDecoder
NewDecoder returns a Decoder that can be used to manually decode XDR data from a provided reader. Typically, Unmarshal should be used instead of manu
internal/go-xdr/xdr2/decode.go:880
↓ 2 callers
Function
NewDecoderLimited
NewDecoderLimited is identical to NewDecoder but it sets maxReadSize in order to cap reads.
internal/go-xdr/xdr2/decode.go:886
↓ 2 callers
Function
NewEncoder
NewEncoder returns an object that can be used to manually choose fields to XDR encode to the passed writer w. Typically, Marshal should be used inste
internal/go-xdr/xdr2/encode.go:667
↓ 2 callers
Function
NewRemote
NewRemote is a dialer for connecting to libvirt running on another server.
socket/dialers/remote.go:40
↓ 2 callers
Function
NewSSH
NewSSH returns an ssh dialer for connecting to libvirt running on another server.
socket/dialers/gossh.go:262
↓ 2 callers
Method
PrivKey
PrivKey adds the Private Key auth method to the allowed list.
socket/dialers/gossh.go:161
↓ 2 callers
Method
Reset
Reset resets domain immediately without any guest OS shutdown Deprecated: use DomainReset instead.
libvirt.go:702
↓ 2 callers
Method
Route
Route sends incoming packets to their listeners.
rpc.go:88
↓ 2 callers
Method
Secrets
Secrets returns all secrets managed by the libvirt daemon. Deprecated: use ConnectListAllSecrets instead.
libvirt.go:577
↓ 2 callers
Function
StartCase
StartCase is called when the parser finds a case statement within a union.
internal/lvgen/generate.go:777
↓ 2 callers
Function
UnmarshalLimited
UnmarshalLimited is identical to Unmarshal but it sets maxReadSize in order to cap reads.
internal/go-xdr/xdr2/decode.go:84
↓ 2 callers
Function
UseKnownHostsFile
UseKnownHostsFile uses a custom known_hosts file
socket/dialers/gossh.go:93
↓ 2 callers
Function
UsePort
UsePort sets the port to dial for libirt on the target host server.
socket/dialers/remote.go:33
↓ 2 callers
Function
WithInsecureIgnoreHostKey
WithInsecureIgnoreHostKey ignores the validity of the host certificate.
socket/dialers/gossh.go:86
↓ 2 callers
Method
accept
accept will advance to the next rune if it's contained in the string of valid runes passed in by the caller.
internal/lvgen/lvlexer.go:186
↓ 2 callers
Function
addEnumVal
(name string, val int64, meta *ProcMeta)
internal/lvgen/generate.go:675
↓ 2 callers
Function
appendKnownHost
(knownHostsFile string, host string, key ssh.PublicKey)
socket/dialers/gossh.go:286
↓ 2 callers
Function
checkModeOption
(uri *url.URL)
connect_uri.go:184
↓ 2 callers
Method
decodeArray
decodeArray treats the next bytes as a variable length series of XDR encoded elements of the same type as the array represented by the reflection valu
internal/go-xdr/xdr2/decode.go:462
↓ 2 callers
Method
decodeFixedArray
decodeFixedArray treats the next bytes as a series of XDR encoded elements of the same type as the array represented by the reflection value and decod
internal/go-xdr/xdr2/decode.go:423
↓ 2 callers
Method
deregisterAll
deregisterAll closes all waiting callback channels. This is used to clean up if the connection to libvirt is lost. Callers waiting for responses will
rpc.go:248
↓ 2 callers
Method
encodeArray
encodeArray writes an XDR encoded integer representing the number of elements in the passed slice represented by the reflection value followed by the
internal/go-xdr/xdr2/encode.go:417
↓ 2 callers
Function
extractHeader
extractHeader returns the decoded header from an incoming response.
socket/socket.go:276
↓ 2 callers
Function
fixAbbrevs
fixAbbrevs up-cases all instances of anything in the 'abbrevs' array. This would be a simple matter, but we don't want to upcase an abbreviation if it
internal/lvgen/generate.go:395
↓ 2 callers
Function
noVerifyOption
(uri *url.URL)
connect_uri.go:172
↓ 2 callers
Method
peek
peek looks ahead at the next rune in the stream without consuming it.
internal/lvgen/lvlexer.go:178
↓ 2 callers
Function
pktlen
pktlen returns the length of an incoming RPC packet. Read errors will result in a returned response length of 0 and a non-nil error.
socket/socket.go:263
↓ 2 callers
Function
processCommonSSHOptions
(uri *url.URL, options []dialers.SSHOption)
connect_uri.go:197
↓ 2 callers
Method
processIncomingStream
processIncomingStream is called once we've successfully sent a request to libvirt. It writes the responses back to the stream passed by the caller unt
rpc.go:321
↓ 2 callers
Method
stream
stream decodes and relays domain events to their respective listener.
rpc.go:174
↓ 2 callers
Function
testEvents
(count int)
internal/event/stream_test.go:17
↓ 2 callers
Method
unsubscribeEvents
unsubscribeEvents stops the flow of the specified events from libvirt. There are two steps to this process: a call to libvirt to deregister our callba
libvirt.go:483
↓ 2 callers
Function
yyNewParser
()
internal/lvgen/y.go:295
↓ 2 callers
Function
yylex1
(lex yyLexer, lval *yySymType)
internal/lvgen/y.go:383
↓ 1 callers
Function
AddConst
AddConst adds a new constant to the parser's list.
internal/lvgen/generate.go:683
↓ 1 callers
Function
AddDeclaration
AddDeclaration is called by the parser when it find a declaration (int x). The declaration will be added to any open container (such as a struct, if t
internal/lvgen/generate.go:805
↓ 1 callers
Function
AddEnumAutoVal
AddEnumAutoVal adds an enum to the list, using the automatically-incremented value. This is called when the parser finds an enum definition without an
internal/lvgen/generate.go:670
↓ 1 callers
Function
AddEnumVal
AddEnumVal will add a new enum value to the list.
internal/lvgen/generate.go:614
↓ 1 callers
Function
AddFixedArray
AddFixedArray is called by the parser to add a fixed-length array to the current container (struct, union, etc). Fixed-length arrays are not length- p
internal/lvgen/generate.go:835
↓ 1 callers
Function
AddOptValue
AddOptValue is called by the parser to add an optional value. These are declared in the protocol definition file using a syntax that looks like a poin
internal/lvgen/generate.go:862
↓ 1 callers
Function
AddStruct
AddStruct is called when the parser has finished parsing a struct. It adds the now-complete struct definition to the generator's list.
internal/lvgen/generate.go:749
↓ 1 callers
Function
AddUnion
AddUnion is called by the parser when it has finished processing a union type. It adds the union to the generator's list and clears the CurrentUnion p
internal/lvgen/generate.go:770
↓ 1 callers
Method
AuthList
AuthList is the go wrapper for REMOTE_PROC_AUTH_LIST.
remote_protocol.gen.go:6348
↓ 1 callers
Method
AuthPolkit
AuthPolkit is the go wrapper for REMOTE_PROC_AUTH_POLKIT.
remote_protocol.gen.go:6485
↓ 1 callers
Method
Capabilities
Capabilities returns an XML document describing the host's capabilties.
libvirt.go:223
↓ 1 callers
Method
ConnectDomainEventCallbackDeregisterAny
ConnectDomainEventCallbackDeregisterAny is the go wrapper for REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_DEREGISTER_ANY.
remote_protocol.gen.go:13907
↓ 1 callers
Method
ConnectGetAllDomainStats
ConnectGetAllDomainStats is the go wrapper for REMOTE_PROC_CONNECT_GET_ALL_DOMAIN_STATS.
remote_protocol.gen.go:14447
↓ 1 callers
Method
ConnectGetCapabilities
ConnectGetCapabilities is the go wrapper for REMOTE_PROC_CONNECT_GET_CAPABILITIES.
remote_protocol.gen.go:4585
↓ 1 callers
Method
ConnectGetLibVersion
ConnectGetLibVersion is the go wrapper for REMOTE_PROC_CONNECT_GET_LIB_VERSION.
remote_protocol.gen.go:9128
↓ 1 callers
Method
ConnectListAllSecrets
ConnectListAllSecrets is the go wrapper for REMOTE_PROC_CONNECT_LIST_ALL_SECRETS.
remote_protocol.gen.go:12997
↓ 1 callers
Method
ConnectListAllStoragePools
ConnectListAllStoragePools is the go wrapper for REMOTE_PROC_CONNECT_LIST_ALL_STORAGE_POOLS.
remote_protocol.gen.go:12762
↓ 1 callers
Method
ConnectSupportsFeature
ConnectSupportsFeature is the go wrapper for REMOTE_PROC_CONNECT_SUPPORTS_FEATURE.
remote_protocol.gen.go:6088
↓ 1 callers
Method
DecodeEnum
DecodeEnum treats the next 4 bytes as an XDR encoded enumeration value and returns the result as an int32 after verifying that the value is in the pro
internal/go-xdr/xdr2/decode.go:171
↓ 1 callers
Method
DecodeOpaque
DecodeOpaque treats the next bytes as variable length XDR encoded opaque data and returns the result as a byte slice along with the number of bytes ac
internal/go-xdr/xdr2/decode.go:357
↓ 1 callers
Method
DefineXML
DefineXML defines a domain, but does not start it. Deprecated: use DomainDefineXMLFlags instead.
libvirt.go:646
↓ 1 callers
Method
Destroy
Destroy destroys the domain specified by dom, e.g., 'prod-lb-01'. The flags argument allows additional options to be specified such as allowing a grac
libvirt.go:620
↓ 1 callers
Method
DomainCreateWithFlags
DomainCreateWithFlags is the go wrapper for REMOTE_PROC_DOMAIN_CREATE_WITH_FLAGS.
remote_protocol.gen.go:10230
↓ 1 callers
Method
DomainDefineXMLFlags
DomainDefineXMLFlags is the go wrapper for REMOTE_PROC_DOMAIN_DEFINE_XML_FLAGS.
remote_protocol.gen.go:14610
↓ 1 callers
Method
DomainDestroyFlags
DomainDestroyFlags is the go wrapper for REMOTE_PROC_DOMAIN_DESTROY_FLAGS.
remote_protocol.gen.go:11391
↓ 1 callers
Method
DomainGetBlockIOTune
DomainGetBlockIOTune is the go wrapper for REMOTE_PROC_DOMAIN_GET_BLOCK_IO_TUNE.
remote_protocol.gen.go:11926
↓ 1 callers
Method
DomainGetState
DomainGetState is the go wrapper for REMOTE_PROC_DOMAIN_GET_STATE.
remote_protocol.gen.go:10696
↓ 1 callers
Method
DomainGetXMLDesc
DomainGetXMLDesc is the go wrapper for REMOTE_PROC_DOMAIN_GET_XML_DESC.
remote_protocol.gen.go:4766
↓ 1 callers
Method
DomainMemoryStats
DomainMemoryStats is the go wrapper for REMOTE_PROC_DOMAIN_MEMORY_STATS.
remote_protocol.gen.go:9186
↓ 1 callers
Method
DomainMigratePerform3Params
DomainMigratePerform3Params is the go wrapper for REMOTE_PROC_DOMAIN_MIGRATE_PERFORM3_PARAMS.
remote_protocol.gen.go:13555
↓ 1 callers
Method
DomainMigrateSetMaxSpeed
DomainMigrateSetMaxSpeed is the go wrapper for REMOTE_PROC_DOMAIN_MIGRATE_SET_MAX_SPEED.
remote_protocol.gen.go:10564
↓ 1 callers
Method
DomainReboot
DomainReboot is the go wrapper for REMOTE_PROC_DOMAIN_REBOOT.
remote_protocol.gen.go:5205
↓ 1 callers
Method
DomainReset
DomainReset is the go wrapper for REMOTE_PROC_DOMAIN_RESET.
remote_protocol.gen.go:11723
↓ 1 callers
Method
DomainSetBlockIOTune
DomainSetBlockIOTune is the go wrapper for REMOTE_PROC_DOMAIN_SET_BLOCK_IO_TUNE.
remote_protocol.gen.go:11901
↓ 1 callers
Method
DomainShutdownFlags
DomainShutdownFlags is the go wrapper for REMOTE_PROC_DOMAIN_SHUTDOWN_FLAGS.
remote_protocol.gen.go:12097
↓ 1 callers
Method
DomainState
DomainState returns state of the domain managed by libvirt. Deprecated: use DomainGetState instead.
libvirt.go:378
↓ 1 callers
Method
DomainUndefineFlags
DomainUndefineFlags is the go wrapper for REMOTE_PROC_DOMAIN_UNDEFINE_FLAGS.
remote_protocol.gen.go:11319
↓ 1 callers
Method
Encode
Encode operates identically to the Marshal function with the exception of using the writer associated with the Encoder for the destination of the XDR-
internal/go-xdr/xdr2/encode.go:638
↓ 1 callers
Method
EncodeEnum
EncodeEnum treats the passed 32-bit signed integer as an enumeration value and, if it is in the list of passed valid enumeration values, writes the XD
internal/go-xdr/xdr2/encode.go:150
↓ 1 callers
Method
EncodeOpaque
EncodeOpaque treats the passed byte slice as opaque data of a variable size and writes the XDR encoded representation of it to the encapsulated writer
internal/go-xdr/xdr2/encode.go:323
↓ 1 callers
Function
Generate
Generate will output go bindings for libvirt. The lvPath parameter should be the path to the root of the libvirt source directory to use for the gener
internal/lvgen/generate.go:237
↓ 1 callers
Method
GetBlockIOTune
GetBlockIOTune returns a slice containing the current block I/O tunables for a disk. Deprecated: use DomainGetBlockIOTune instead.
libvirt.go:753
↓ 1 callers
Function
IsIO
IsIO returns a boolean indicating whether the error is known to report that the underlying reader or writer encountered an ErrIO.
internal/go-xdr/xdr2/error.go:127
↓ 1 callers
Method
Lex
(lval *yySymType)
internal/lvgen/y.go:276
↓ 1 callers
Function
New
New initializes a new type for managing the Socket.
socket/socket.go:118
↓ 1 callers
Function
NewLexer
NewLexer will return a new lexer for the passed-in reader.
internal/lvgen/lvlexer.go:95
↓ 1 callers
Function
NewLocal
NewLocal is a default dialer to simply connect to a locally running libvirt's socket.
socket/dialers/local.go:41
↓ 1 callers
Function
NewTLS
NewTLS is a dialer for connecting to libvirt running on another server.
socket/dialers/tls.go:69
↓ 1 callers
Function
NewTypedParamValueInt
NewTypedParamValueInt creates a discriminated union value satisfying the TypedParamValue interface.
remote_protocol.gen.go:4367
↓ 1 callers
Function
NewTypedParamValueUllong
NewTypedParamValueUllong creates a discriminated union value satisfying the TypedParamValue interface.
remote_protocol.gen.go:4385
↓ 1 callers
Method
QEMUConnectDomainMonitorEventDeregister
QEMUConnectDomainMonitorEventDeregister is the go wrapper for QEMU_PROC_CONNECT_DOMAIN_MONITOR_EVENT_DEREGISTER.
qemu_protocol.gen.go:271
↓ 1 callers
Method
QEMUConnectDomainMonitorEventRegister
QEMUConnectDomainMonitorEventRegister is the go wrapper for QEMU_PROC_CONNECT_DOMAIN_MONITOR_EVENT_REGISTER.
qemu_protocol.gen.go:236
↓ 1 callers
Method
Reboot
Reboot reboots the domain. Note that the guest OS may ignore the request. If flags is set to zero, then the hypervisor will choose the method of shutd
libvirt.go:690
↓ 1 callers
Function
RemoteURI
RemoteURI returns the libvirtd URI corresponding to a given client URI. The client URI contains details of the connection method, but once connected t
connect_uri.go:37
↓ 1 callers
Method
Route
(*Header, []byte)
socket/socket.go:66
↓ 1 callers
Method
Run
Run starts the lexer, and should be called in a goroutine.
internal/lvgen/lvlexer.go:109
↓ 1 callers
Method
SendStream
SendStream sends a stream of packets to libvirt on the socket connection.
socket/socket.go:347
↓ 1 callers
Method
SetBlockIOTune
SetBlockIOTune changes the per-device block I/O tunables within a guest. Parameters are the name of the VM, the name of the disk device to which the l
libvirt.go:734
↓ 1 callers
Function
StartEnum
--------------------------------------------------------------------------- Routines called by the parser's actions. ---------------------------------
internal/lvgen/generate.go:604
↓ 1 callers
Function
StartStruct
StartStruct is called from the parser when a struct definition is found, but before the member declarations are processed.
internal/lvgen/generate.go:742
↓ 1 callers
Function
StartTypedef
StartTypedef is called when the parser finds a typedef.
internal/lvgen/generate.go:756
↓ 1 callers
Function
StartUnion
StartUnion is called by the parser when it finds a union declaraion.
internal/lvgen/generate.go:761
← previous
next →
101–200 of 1,030, ranked by callers