MCPcopy Create free account

hub / github.com/OnitiFR/mulch / functions

Functions644 in github.com/OnitiFR/mulch

↓ 363 callersMethodErrorf
Errorf sends a formated string MessageError Message
cmd/mulchd/server/log.go:49
↓ 361 callersMethodError
Error sends a MessageError Message
cmd/mulchd/server/log.go:44
↓ 86 callersMethodClose
Close is not called yet
cmd/mulchd/server/app.go:563
↓ 85 callersMethodInfof
Infof sends a formated string MessageInfo Message
cmd/mulchd/server/log.go:71
↓ 82 callersMethodLock
Lock locks the agent
cmd/mulchd/server/ssh_agent.go:114
↓ 82 callersMethodUnlock
Unlock undoes a previous Lock
cmd/mulchd/server/ssh_agent.go:120
↓ 74 callersMethodError
Error sends a MessageError Message
cmd/mulch-proxy/log.go:54
↓ 66 callersMethodDo
Do the actual API call
cmd/mulch/client/apicall.go:84
↓ 66 callersMethodErrorf
Errorf sends a formated string MessageError Message
cmd/mulch-proxy/log.go:59
↓ 62 callersMethodNewCall
NewCall create a new APICall
cmd/mulch/client/apicall.go:60
↓ 60 callersMethodSet
Set a secret value
cmd/mulchd/server/secret_database.go:117
↓ 59 callersMethodFailuref
Failuref sends a formated string MessageFailure Message
cmd/mulchd/server/log.go:104
↓ 59 callersMethodTracef
Tracef sends a formated string MessageTrace Message
cmd/mulchd/server/log.go:82
↓ 56 callersMethodPrintf
Printf like helper for req.Response.Write
cmd/mulchd/server/request.go:54
↓ 51 callersMethodAddRoute
AddRoute adds a new route to the given route muxer
cmd/mulchd/server/route_handler.go:136
↓ 44 callersMethodPrintln
Println like helper for req.Response.Write
cmd/mulchd/server/request.go:59
↓ 41 callersMethodString
()
cmd/mulchd/server/vm_name.go:60
↓ 36 callersMethodAdd
Add a new VM in the database
cmd/mulchd/server/vm_database.go:360
↓ 35 callersMethodSuccessf
Successf sends a formated string MessageSuccess Message
cmd/mulchd/server/log.go:93
↓ 31 callersMethodGetByName
GetByName returns a seed using its name (or an error)
cmd/mulchd/server/seeds.go:143
↓ 30 callersMethodInfo
Info sends an MessageInfo Message
cmd/mulchd/server/log.go:66
↓ 29 callersMethodID
ID returns a unique ID for the VM
cmd/mulchd/server/vm_name.go:48
↓ 27 callersMethodWrite
Write writes data to the buffer (non blocking [overwrites])
cmd/mulchd/server/ring_buffer.go:18
↓ 24 callersMethodClean
Clean will remove old entries WARNING: a scheduled goroutine calling this function will prevent the RateController from being garbage collected! (ex:
cmd/mulch-proxy/rate_controller.go:98
↓ 23 callersMethodWarningf
Warningf sends a formated string MessageWarning Message
cmd/mulchd/server/log.go:60
↓ 21 callersMethodGetTemplateFilepath
GetTemplateFilepath returns a path to a etc/template file
cmd/mulchd/server/app_config.go:391
↓ 21 callersMethodLibvirtDomainName
LibvirtDomainName returns the libvirt domain name (using app prefix)
cmd/mulchd/server/vm_name.go:56
↓ 20 callersMethodStartStream
StartStream indicates that headers have been sent and "body" stream can start
cmd/mulchd/server/request.go:25
↓ 19 callersMethodClose
Close the listener
cmd/mulch-proxy/port_listener.go:120
↓ 17 callersMethodFailure
Failure sends an MessageFailure Message
cmd/mulchd/server/log.go:99
↓ 16 callersMethodGetDomainByName
GetDomainByName returns a domain or nil if domain is not foud. Remember to call dom.Free() after use.
cmd/mulchd/server/libvirt.go:452
↓ 16 callersMethodInfof
Infof sends a formated string MessageInfo Message
cmd/mulch-proxy/log.go:81
↓ 16 callersFunctionPathExist
PathExist returns true if a file or directory exists
common/tools.go:21
↓ 15 callersMethodDo
Do a call to a peer (with detailed error messages)
cmd/mulchd/server/peer_call.go:51
↓ 15 callersMethodGetNames
GetNames returns a list of seed names
cmd/mulchd/server/seeds.go:152
↓ 14 callersMethodGetConnection
GetConnection returns the current libvirt connection
cmd/mulchd/server/libvirt.go:55
↓ 14 callersMethodRemove
Remove removes all identities with the given public key
cmd/mulchd/server/ssh_agent.go:102
↓ 13 callersMethodDelete
Delete the VM from the database using its name
cmd/mulchd/server/vm_database.go:314
↓ 13 callersMethodTrace
Trace sends an MessageTrace Message
cmd/mulchd/server/log.go:77
↓ 12 callersMethodGet
Get a secret value
cmd/mulchd/server/secret_database.go:90
↓ 11 callersMethodGet
Get the ExtraCert for the given domain (or nil if not found)
cmd/mulch-proxy/extra_certs.go:146
↓ 11 callersFunctionVMIsRunning
VMIsRunning returns true if VM is up and running
cmd/mulchd/server/vm.go:995
↓ 10 callersFunctionGetExitMessage
GetExitMessage return a pointer to the global ExitMessage
cmd/mulch/client/exit_message.go:22
↓ 10 callersFunctionIsValidName
IsValidName returns true if argument use only allowed chars for a name
cmd/mulchd/server/tools.go:16
↓ 10 callersFunctionStringIsVariable
StringIsVariable returns true and the value if the string's like: FOOBAR=dummy (returns true and "dummy" if varName is "FOOBAR")
common/tools.go:128
↓ 9 callersMethodCopy
Copy do the actual upload
cmd/mulchd/volumes/volume_upload.go:41
↓ 9 callersMethodGetEntryByName
GetEntryByName lookups a VMDatabaseEntry entry by its name
cmd/mulchd/server/vm_database.go:468
↓ 9 callersMethodGetVolumeName
GetVolumeName return the seed volume file name
cmd/mulchd/server/seeds.go:511
↓ 9 callersFunctionNewVMName
NewVMName instanciates a new VMName struct
cmd/mulchd/server/vm_name.go:16
↓ 8 callersMethodDisable
Disable global ExitMessage
cmd/mulch/client/exit_message.go:27
↓ 8 callersMethodGetContent
GetContent returns a ReadCloser to the file at the given URL/path - caller must Close() the returned value
cmd/mulchd/server/origin.go:67
↓ 8 callersFunctionGetSSHPath
GetSSHPath returns the path of a file in the user SSH config path
cmd/mulch/client/ssh.go:21
↓ 8 callersMethodGlobalID
GlobalID will return a "global" ID for the port (public ports are merged) Useful for deduplication
cmd/mulchd/server/vm_port.go:67
↓ 8 callersMethodGo
Go will execute the Run
cmd/mulchd/server/run.go:33
↓ 8 callersFunctionNewLog
NewLog creates a new log for the provided target and hub note: common.MessageNoTarget is an acceptable target
cmd/mulchd/server/log.go:18
↓ 8 callersFunctionRenderTable
RenderTable renders a table to stdout Note: tablewriter v1.0.7: can't get consistent results with MaxWidth, so we use an internal table hack
cmd/mulch/client/table.go:27
↓ 8 callersMethodSetActiveRevision
SetActiveRevision change the active instance (RevisionNone is allowed)
cmd/mulchd/server/vm_database.go:668
↓ 7 callersMethodGetPublicKeyAuth
GetPublicKeyAuth return a PublicKey AuthMethod for named key pair
cmd/mulchd/server/sshpair_database.go:139
↓ 7 callersMethodLog
Log is a low-level function for sending a Message
cmd/mulchd/server/log.go:27
↓ 7 callersFunctionNewMessage
NewMessage creates a new Message instance
common/message.go:69
↓ 7 callersMethodRead
Read reads data from the buffer
cmd/mulchd/server/ring_buffer.go:29
↓ 7 callersMethodTracef
Tracef sends a formated string MessageTrace Message
cmd/mulch-proxy/log.go:92
↓ 7 callersMethodUpdate
Update saves the DB if data was modified using *VM pointers
cmd/mulchd/server/vm_database.go:306
↓ 7 callersMethodUpdateStatus
UpdateStatus change status informations
cmd/mulchd/server/seeds.go:505
↓ 7 callersFunctionVMStopByName
VMStopByName stops a VM using its name and waits until the VM is down. (or timeouts)
cmd/mulchd/server/vm.go:774
↓ 7 callersFunctiongetEntryFromRequest
(vmName string, req *server.Request)
cmd/mulchd/controllers/vm.go:19
↓ 7 callersMethodsave
Save the database on the disk, without locking (internal use)
cmd/mulchd/server/api_keys.go:147
↓ 6 callersMethodPrint
Print the formatted message
common/message.go:95
↓ 6 callersFunctionVMLockUnlock
VMLockUnlock will lock or unlock a VM, preventing it from deletion
cmd/mulchd/server/vm.go:884
↓ 6 callersMethodVolumeInfos
VolumeInfos returns volume informations, like physical allocated size
cmd/mulchd/server/libvirt.go:508
↓ 6 callersMethodsave
This is done internaly, because it must be done with the mutex locked, but we can't lock it here, since save() is called by functions that are already
cmd/mulchd/server/vm_database.go:245
↓ 6 callersMethodsave
()
cmd/mulchd/server/seeds.go:112
↓ 5 callersMethodDeleteVolume
DeleteVolume for specified pool
cmd/mulchd/server/libvirt.go:494
↓ 5 callersMethodGetEntryBySecretUUID
GetEntryBySecretUUID lookups a VMName by its secretUUID Note: this function also search in greenhouseDB
cmd/mulchd/server/vm_database.go:558
↓ 5 callersMethodInfo
Info sends an MessageInfo Message
cmd/mulch-proxy/log.go:76
↓ 5 callersFunctionInterfaceValueToString
InterfaceValueToString converts most interface types to string
common/tools.go:38
↓ 5 callersFunctionIsValidWord
IsValidWord returns true if argument use only allowed chars for a name
cmd/mulchd/server/tools.go:28
↓ 5 callersMethodRun
Run will start the app servers (foreground)
cmd/mulchd/server/app.go:514
↓ 5 callersMethodSend
Send an alert using all alert scripts (etc/alerts/*.sh)
cmd/mulchd/server/alert.go:78
↓ 5 callersMethodSetTarget
SetTarget change the current "sending" target
cmd/mulchd/server/log.go:110
↓ 5 callersMethodUnregister
Unregister the client from the Hub
cmd/mulchd/server/hub.go:92
↓ 5 callersFunctionVMDelete
VMDelete will delete a VM (using its name) and linked storages.
cmd/mulchd/server/vm.go:896
↓ 5 callersMethodWarning
Warning sends a MessageWarning Message
cmd/mulchd/server/log.go:55
↓ 4 callersMethodAddFile
AddFile to the request (upload)
cmd/mulch/client/apicall.go:71
↓ 4 callersFunctionCheckDomainsConflicts
CheckDomainsConflicts will detect if incoming domains conflicts with existing VMs of other mulchd servers (in case of proxy chaining) You can exclude
cmd/mulchd/server/domains.go:17
↓ 4 callersFunctionCheckPortsConflicts
CheckPortsConflicts will detect exported port conflicts with existing VMs and warn if an imported port is not exported (yet?) by another VM (if log is
cmd/mulchd/server/vm_port.go:280
↓ 4 callersMethodCleanKey
CleanKey returns a cleaned key path, if possible
cmd/mulchd/server/secret_database.go:171
↓ 4 callersMethodClientHandleChannelOpen
ClientHandleChannelOpen is called when the client (= the VM) asks for a new channel (ex: forwarded-tcpip)
cmd/mulchd/server/ssh_proxy.go:24
↓ 4 callersFunctionDurationAsSecondsString
DurationAsSecondsString returns a string representation of a duration (seconds)
cmd/mulch/client/tools.go:65
↓ 4 callersMethodGetActiveEntryByName
GetActiveEntryByName return the active VM entry with the specified name
cmd/mulchd/server/vm_database.go:501
↓ 4 callersMethodGetByComment
GetByComment returns an API key by its comment, or nil if not found
cmd/mulchd/server/api_keys.go:301
↓ 4 callersMethodGetByName
GetByName lookups a Domain by its domain
cmd/mulch-proxy/domain_database.go:112
↓ 4 callersMethodGetCountForName
GetCountForName returns the amount of instances with the specified name (so 0 means none)
cmd/mulchd/server/vm_database.go:654
↓ 4 callersMethodGetGreenhouseEntryByName
GetGreenhouseEntryByName lookups a VMDatabaseEntry in greenhouseDB entry by its name
cmd/mulchd/server/vm_database.go:531
↓ 4 callersMethodIsAllowed
IsAllowed will return true if the APIKey is allowed to request this method/path/headers (req is optional, but will deny the access if the needed right
cmd/mulchd/server/api_keys.go:419
↓ 4 callersMethodIsVMActive
IsVMActive returns true if VM is active
cmd/mulchd/server/vm_database.go:616
↓ 4 callersFunctionLibvirtDomainStateToString
LibvirtDomainStateToString translate a DomainState to string
cmd/mulchd/server/libvirt.go:470
↓ 4 callersMethodLog
Log is a low-level function for sending a Message
cmd/mulch-proxy/log.go:46
↓ 4 callersFunctionNewMessage
NewMessage instanciates a new Message
cmd/mulch-proxy/log.go:27
↓ 4 callersFunctionNewVMConfigFromTomlReader
NewVMConfigFromTomlReader cretes a new VMConfig instance from a io.Reader containing VM configuration description
cmd/mulchd/server/vm_config.go:202
next →1–100 of 644, ranked by callers