MCPcopy Create free account

hub / github.com/digitalocean/go-libvirt / functions

Functions1,030 in github.com/digitalocean/go-libvirt

↓ 462 callersMethodrequestStream
requestStream performs a libvirt RPC request. The `out` and `in` parameters are optional, and should be nil when RPC endpoints don't return a stream.
rpc.go:266
↓ 382 callersFunctionencode
encode XDR encodes the provided data.
rpc.go:369
↓ 365 callersMethodDecode
(*Decoder, reflect.Value)
internal/go-xdr/xdr2/decode.go:91
↓ 80 callersMethodError
(s string)
internal/lvgen/y.go:277
↓ 53 callersMethodDisconnect
Disconnect shuts down communication with the libvirt server and closes the underlying net.Conn.
libvirt.go:320
↓ 53 callersFunctionNewWithDialer
NewWithDialer configures a new Libvirt object that can be used to perform RPCs via libvirt's socket. The actual connection will not be established un
libvirt.go:841
↓ 52 callersMethodConnect
Connect establishes communication with the libvirt server. The underlying libvirt socket connection will be created via the dialer. Since the connecti
libvirt.go:314
↓ 38 callersMethodWrite
Write writes the contents of p to w. When the contents of p would cause the writer to exceed the maximum allowed size of the fixed writer, the writer
internal/go-xdr/xdr2/fixedIO_test.go:36
↓ 36 callersFunctionNew
New creates a new mock Libvirt server.
libvirttest/libvirt.go:595
↓ 28 callersMethodreply
reply automatically injects the correct serial number into the provided response buffer.
libvirttest/libvirt.go:716
↓ 25 callersFunctionunmarshalError
unmarshalError creates an error given a set of arguments and will copy byte slices into the Value field since they might otherwise be changed from fro
internal/go-xdr/xdr2/error.go:111
↓ 17 callersMethodString
String returns the ErrorCode as a human-readable name.
internal/go-xdr/xdr2/error.go:79
↓ 17 callersFunctiontestDialer
(t *testing.T)
libvirt_integration_test.go:485
↓ 15 callersFunctiontestExpectedURet
testExpectedURet is a convenience method to test an expected number of bytes read and error for an unmarshal.
internal/go-xdr/xdr2/decode_test.go:69
↓ 14 callersMethodLen
Len will return the current count of events in the internal queue for a stream. It does this by sending a message to the stream's process() loop, whic
internal/event/stream.go:71
↓ 14 callersMethodlookup
lookup returns a domain as seen by libvirt.
libvirt.go:782
↓ 12 callersMethodBytes
Bytes returns the bytes already written to the fixed writer.
internal/go-xdr/xdr2/fixedIO_test.go:49
↓ 12 callersFunctionmarshalError
marshalError creates an error given a set of arguments and will copy byte slices into the Value field since they might otherwise be changed from from
internal/go-xdr/xdr2/error.go:165
↓ 11 callersFunctionNewStream
NewStream configures a new Event Stream. Incoming events are appended to a queue, which is then relayed to the listening client. Client behavior will
internal/event/stream.go:51
↓ 11 callersMethodnext
next returns the rune at the current location, and advances to the next rune in the input.
internal/lvgen/lvlexer.go:146
↓ 10 callersMethodShutdown
Shutdown gracefully terminates Stream processing, releasing all internal resources. Events which have not yet been received by the client will be drop
internal/event/stream.go:92
↓ 9 callersMethodDecodeUint
DecodeUint treats the next 4 bytes as an XDR encoded unsigned integer and returns the result as a uint32 along with the number of bytes actually read.
internal/go-xdr/xdr2/decode.go:146
↓ 9 callersMethodEncodeUint
EncodeUint writes the XDR encoded representation of the passed 32-bit unsigned integer to the encapsulated writer and returns the number of bytes writ
internal/go-xdr/xdr2/encode.go:122
↓ 8 callersFunctionUnmarshal
* Unmarshal parses XDR-encoded data into the value pointed to by v reading from reader r and returning the total number of bytes read. An addressable
internal/go-xdr/xdr2/decode.go:77
↓ 8 callersMethodaddStream
addStream configures the routing for an event stream.
rpc.go:187
↓ 7 callersMethodDecodeFixedOpaque
RFC Section 4.8 - Quadruple-Precision Floating Point 128-bit quadruple-precision floating point Not Implemented DecodeFixedOpaque treats the next 'si
internal/go-xdr/xdr2/decode.go:322
↓ 7 callersMethodDial
()
socket/socket.go:61
↓ 7 callersMethodRecv
Recv returns the next available event from the Stream's queue.
internal/event/stream.go:80
↓ 7 callersMethodStoragePool
StoragePool returns the storage pool associated with the provided name. An error is returned if the requested storage pool is not found. Deprecated:
libvirt.go:586
↓ 7 callersMethodbackup
backup moves back one character, but can only be called once per next() call.
internal/lvgen/lvlexer.go:167
↓ 7 callersMethoddecode
decode is the main workhorse for unmarshalling via reflection. It uses the passed reflection value to choose the XDR primitives to decode from the en
internal/go-xdr/xdr2/decode.go:665
↓ 7 callersFunctionyyTokname
(c int)
internal/lvgen/y.go:301
↓ 6 callersMethodDecodeString
DecodeString treats the next bytes as a variable length XDR encoded string and returns the result as a string along with the number of bytes actually
internal/go-xdr/xdr2/decode.go:391
↓ 6 callersMethodDisconnected
Disconnected allows callers to detect if the underlying connection to libvirt has been closed. If the returned channel is closed, then the connection
libvirt.go:350
↓ 6 callersMethodDomainLookupByName
DomainLookupByName is the go wrapper for REMOTE_PROC_DOMAIN_LOOKUP_BY_NAME.
remote_protocol.gen.go:5091
↓ 6 callersMethodEncodeFixedOpaque
RFC Section 4.8 - Quadruple-Precision Floating Point 128-bit quadruple-precision floating point Not Implemented EncodeFixedOpaque treats the passed b
internal/go-xdr/xdr2/encode.go:282
↓ 6 callersMethodencode
encode is the main workhorse for marshalling via reflection. It uses the passed reflection value to choose the XDR primitives to encode into the enca
internal/go-xdr/xdr2/encode.go:553
↓ 6 callersMethodregister
register configures a method response callback
rpc.go:225
↓ 5 callersMethodSendPacket
SendPacket sends a packet to libvirt on the socket connection.
socket/socket.go:296
↓ 5 callersFunctionconstNameTransform
constNameTransform changes an upcased, snake-style name like REMOTE_PROTOCOL_VERSION to a comfortable Go name like ProtocolVersion. It also tries to u
internal/lvgen/generate.go:299
↓ 5 callersFunctionidentifierTransform
(name string)
internal/lvgen/generate.go:325
↓ 4 callersMethodConnectToURI
ConnectToURI establishes communication with the specified libvirt driver The underlying libvirt socket connection will be created via the dialer. Sinc
libvirt.go:286
↓ 4 callersMethodDecode
Decode operates identically to the Unmarshal function with the exception of using the reader associated with the Decoder as the source of XDR-encoded
internal/go-xdr/xdr2/decode.go:853
↓ 4 callersMethodDecodeInt
DecodeInt treats the next 4 bytes as an XDR encoded integer and returns the result as an int32 along with the number of bytes actually read. An Unmar
internal/go-xdr/xdr2/decode.go:124
↓ 4 callersMethodEncodeInt
EncodeInt writes the XDR encoded representation of the passed 32-bit signed integer to the encapsulated writer and returns the number of bytes written
internal/go-xdr/xdr2/encode.go:95
↓ 4 callersFunctionNew
New configures a new Libvirt RPC connection. This function only remains to retain backwards compatability. When Libvirt's Connect function is called,
libvirt.go:865
↓ 4 callersFunctionNewDecl
NewDecl returns a new declaration struct.
internal/lvgen/generate.go:138
↓ 4 callersFunctionTstDecode
TstDecode creates a new Decoder for the passed reader and returns the internal decode function on the Decoder.
internal/go-xdr/xdr2/internal_test.go:40
↓ 4 callersFunctionaddDecl
addDecl adds a declaration to the current container.
internal/lvgen/generate.go:810
↓ 4 callersMethodemit
emit returns a token to the parser.
internal/lvgen/lvlexer.go:117
↓ 4 callersFunctionnewFixedWriter
newFixedWriter returns a new io.Writer that will error once more bytes than the specified max have been written.
internal/go-xdr/xdr2/fixedIO_test.go:55
↓ 4 callersFunctiontestExpectedMRet
testExpectedMRet is a convenience method to test an expected number of bytes written and error for a marshal.
internal/go-xdr/xdr2/encode_test.go:31
↓ 3 callersMethodDecodeBool
DecodeBool treats the next 4 bytes as an XDR encoded boolean value and returns the result as a bool along with the number of bytes actually read. An
internal/go-xdr/xdr2/decode.go:194
↓ 3 callersMethodDomains
Domains returns a list of all domains managed by libvirt. Deprecated: use ConnectListAllDomains instead.
libvirt.go:368
↓ 3 callersMethodEncodeBool
EncodeBool writes the XDR encoded representation of the passed boolean to the encapsulated writer and returns the number of bytes written. A MarshalE
internal/go-xdr/xdr2/encode.go:168
↓ 3 callersMethodEncodeString
EncodeString writes the XDR encoded representation of the passed string to the encapsulated writer and returns the number of bytes written. Character
internal/go-xdr/xdr2/encode.go:348
↓ 3 callersMethodEncodeUhyper
EncodeUhyper writes the XDR encoded representation of the passed 64-bit unsigned integer to the encapsulated writer and returns the number of bytes wr
internal/go-xdr/xdr2/encode.go:217
↓ 3 callersMethodGetCallbackID
()
internal/event/event.go:19
↓ 3 callersMethodIsConnected
IsConnected indicates whether or not there is currently a connection to libvirtd.
libvirt.go:356
↓ 3 callersMethodParse
(yyLexer)
internal/lvgen/y.go:281
↓ 3 callersMethodPassword
Password adds the password auth method to the allowed list.
socket/dialers/gossh.go:224
↓ 3 callersMethodPush
Push appends a new event to the queue.
internal/event/stream.go:85
↓ 3 callersMethodRun
Run executes the given QAPI command against a domain's QEMU instance. For a list of available QAPI commands, see: http://git.qemu.org/?p=qemu.git;a=b
libvirt.go:531
↓ 3 callersMethodShutdown
Shutdown shuts down a domain. Note that the guest OS may ignore the request. If flags is set to 0 then the hypervisor will choose the method of shutdo
libvirt.go:677
↓ 3 callersMethodStoragePoolRefresh
StoragePoolRefresh is the go wrapper for REMOTE_PROC_STORAGE_POOL_REFRESH.
remote_protocol.gen.go:6839
↓ 3 callersMethodStoragePools
StoragePools returns a list of defined storage pools. Pools are filtered by the provided flags. See StoragePools*. Deprecated: use ConnectListAllStor
libvirt.go:594
↓ 3 callersFunctioncheckCapabilities
(t *testing.T, l *Libvirt)
libvirt_integration_test.go:80
↓ 3 callersFunctiondecodeError
decodeError extracts an error message from the provider buffer.
rpc.go:377
↓ 3 callersMethodderegister
deregister destroys a method response callback. It is the responsibility of the caller to manage locking (l.cmux) during this call.
rpc.go:234
↓ 3 callersMethodempty
Since it's possible to have an embedded struct definition, this implements a stack to keep track of the current structure.
internal/lvgen/generate.go:201
↓ 3 callersMethodencodeFixedArray
encodeFixedArray writes the XDR encoded representation of each element in the passed array represented by the reflection value to the encapsulated wri
internal/go-xdr/xdr2/encode.go:372
↓ 3 callersMethoderrorf
errorf is used by the lexer to report errors. It inserts an ERROR token into the items channel, and sets the state to nil, which stops the lexer's sta
internal/lvgen/lvlexer.go:139
↓ 3 callersFunctioneventDecoder
eventDecoder decodes an event from a xdr buffer.
rpc.go:405
↓ 3 callersFunctionfromSnakeToCamel
fromSnakeToCamel transmutes a snake-cased string to a camel-cased one. All runes that follow an underscore are up-cased, and the underscores themselve
internal/lvgen/generate.go:364
↓ 3 callersMethodgetResponse
(c chan response)
rpc.go:350
↓ 3 callersMethodignore
ignore discards the current text from start to pos.
internal/lvgen/lvlexer.go:162
↓ 3 callersMethodindirect
indirect dereferences pointers until it reaches a non-pointer. This allows transparent encoding through arbitrary levels of indirection.
internal/go-xdr/xdr2/encode.go:626
↓ 3 callersMethodindirect
indirect dereferences pointers allocating them as needed until it reaches a non-pointer. This allows transparent decoding through arbitrary levels of
internal/go-xdr/xdr2/decode.go:829
↓ 3 callersMethodisDisconnected
isDisconnected is a non-blocking function to query whether a connection is disconnected or not.
socket/socket.go:191
↓ 3 callersFunctionparseNumber
parseNumber makes sure that a parsed numerical value can be parsed to a 64- bit integer.
internal/lvgen/generate.go:695
↓ 3 callersMethodremoveAllStreams
removeAllStreams deletes all event streams. This is meant to be used to clean up only once the underlying connection to libvirt is disconnected and t
rpc.go:214
↓ 3 callersMethodremoveStream
removeStream deletes an event stream. The caller should first notify libvirt to stop sending events for this stream. Subsequent calls to removeStream
rpc.go:197
↓ 3 callersMethodrequest
request performs a libvirt RPC request. returns response returned by server. if response is not OK, decodes error from it and returns it.
rpc.go:260
↓ 3 callersMethodserial
serial provides atomic access to the next sequential request serial number.
rpc.go:169
↓ 3 callersFunctiontestConn
(t *testing.T)
libvirt_integration_test.go:495
↓ 3 callersFunctionyyStatname
(s int)
internal/lvgen/y.go:310
↓ 2 callersFunctionAddCase
AddCase is called when the parser finishes parsing a case.
internal/lvgen/generate.go:797
↓ 2 callersFunctionAddProcEnumVal
AddProcEnumVal adds a procedure enum to our list of remote procedures which we will later generate code for. These declarations look like enums, but h
internal/lvgen/generate.go:639
↓ 2 callersFunctionAddVariableArray
AddVariableArray is called by the parser to add a variable-length array. Variable-length arrays are prefixed with a 32-bit unsigned length, and may al
internal/lvgen/generate.go:843
↓ 2 callersMethodAgent
Agent adds the ssh agent auth method to the allowed list.
socket/dialers/gossh.go:190
↓ 2 callersMethodConnectDomainEventCallbackRegisterAny
ConnectDomainEventCallbackRegisterAny is the go wrapper for REMOTE_PROC_CONNECT_DOMAIN_EVENT_CALLBACK_REGISTER_ANY.
remote_protocol.gen.go:13873
↓ 2 callersMethodConnectListAllDomains
ConnectListAllDomains is the go wrapper for REMOTE_PROC_CONNECT_LIST_ALL_DOMAINS.
remote_protocol.gen.go:12494
↓ 2 callersMethodDecodeDouble
DecodeDouble treats the next 8 bytes as an XDR encoded double-precision floating point and returns the result as a float64 along with the number of by
internal/go-xdr/xdr2/decode.go:291
↓ 2 callersMethodDecodeFloat
DecodeFloat treats the next 4 bytes as an XDR encoded floating point and returns the result as a float32 along with the number of bytes actually read.
internal/go-xdr/xdr2/decode.go:268
↓ 2 callersMethodDecodeHyper
DecodeHyper treats the next 8 bytes as an XDR encoded hyper value and returns the result as an int64 along with the number of bytes actually read. A
internal/go-xdr/xdr2/decode.go:219
↓ 2 callersMethodDecodeUhyper
DecodeUhyper treats the next 8 bytes as an XDR encoded unsigned hyper value and returns the result as a uint64 along with the number of bytes actual
internal/go-xdr/xdr2/decode.go:244
↓ 2 callersMethodEncodeDouble
EncodeDouble writes the XDR encoded representation of the passed 64-bit (double-precision) floating point to the encapsulated writer and returns the n
internal/go-xdr/xdr2/encode.go:263
↓ 2 callersMethodEncodeFloat
EncodeFloat writes the XDR encoded representation of the passed 32-bit (single-precision) floating point to the encapsulated writer and returns the nu
internal/go-xdr/xdr2/encode.go:248
↓ 2 callersMethodEncodeHyper
EncodeHyper writes the XDR encoded representation of the passed 64-bit signed integer to the encapsulated writer and returns the number of bytes writt
internal/go-xdr/xdr2/encode.go:186
↓ 2 callersFunctionIsNotFound
IsNotFound detects libvirt's ERR_NO_DOMAIN.
rpc.go:70
next →1–100 of 1,030, ranked by callers