Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OnitiFR/mulch
/ functions
Functions
644 in github.com/OnitiFR/mulch
⨍
Functions
644
◇
Types & classes
148
↓ 363 callers
Method
Errorf
Errorf sends a formated string MessageError Message
cmd/mulchd/server/log.go:49
↓ 361 callers
Method
Error
Error sends a MessageError Message
cmd/mulchd/server/log.go:44
↓ 86 callers
Method
Close
Close is not called yet
cmd/mulchd/server/app.go:563
↓ 85 callers
Method
Infof
Infof sends a formated string MessageInfo Message
cmd/mulchd/server/log.go:71
↓ 82 callers
Method
Lock
Lock locks the agent
cmd/mulchd/server/ssh_agent.go:114
↓ 82 callers
Method
Unlock
Unlock undoes a previous Lock
cmd/mulchd/server/ssh_agent.go:120
↓ 74 callers
Method
Error
Error sends a MessageError Message
cmd/mulch-proxy/log.go:54
↓ 66 callers
Method
Do
Do the actual API call
cmd/mulch/client/apicall.go:84
↓ 66 callers
Method
Errorf
Errorf sends a formated string MessageError Message
cmd/mulch-proxy/log.go:59
↓ 62 callers
Method
NewCall
NewCall create a new APICall
cmd/mulch/client/apicall.go:60
↓ 60 callers
Method
Set
Set a secret value
cmd/mulchd/server/secret_database.go:117
↓ 59 callers
Method
Failuref
Failuref sends a formated string MessageFailure Message
cmd/mulchd/server/log.go:104
↓ 59 callers
Method
Tracef
Tracef sends a formated string MessageTrace Message
cmd/mulchd/server/log.go:82
↓ 56 callers
Method
Printf
Printf like helper for req.Response.Write
cmd/mulchd/server/request.go:54
↓ 51 callers
Method
AddRoute
AddRoute adds a new route to the given route muxer
cmd/mulchd/server/route_handler.go:136
↓ 44 callers
Method
Println
Println like helper for req.Response.Write
cmd/mulchd/server/request.go:59
↓ 41 callers
Method
String
()
cmd/mulchd/server/vm_name.go:60
↓ 36 callers
Method
Add
Add a new VM in the database
cmd/mulchd/server/vm_database.go:360
↓ 35 callers
Method
Successf
Successf sends a formated string MessageSuccess Message
cmd/mulchd/server/log.go:93
↓ 31 callers
Method
GetByName
GetByName returns a seed using its name (or an error)
cmd/mulchd/server/seeds.go:143
↓ 30 callers
Method
Info
Info sends an MessageInfo Message
cmd/mulchd/server/log.go:66
↓ 29 callers
Method
ID
ID returns a unique ID for the VM
cmd/mulchd/server/vm_name.go:48
↓ 27 callers
Method
Write
Write writes data to the buffer (non blocking [overwrites])
cmd/mulchd/server/ring_buffer.go:18
↓ 24 callers
Method
Clean
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 callers
Method
Warningf
Warningf sends a formated string MessageWarning Message
cmd/mulchd/server/log.go:60
↓ 21 callers
Method
GetTemplateFilepath
GetTemplateFilepath returns a path to a etc/template file
cmd/mulchd/server/app_config.go:391
↓ 21 callers
Method
LibvirtDomainName
LibvirtDomainName returns the libvirt domain name (using app prefix)
cmd/mulchd/server/vm_name.go:56
↓ 20 callers
Method
StartStream
StartStream indicates that headers have been sent and "body" stream can start
cmd/mulchd/server/request.go:25
↓ 19 callers
Method
Close
Close the listener
cmd/mulch-proxy/port_listener.go:120
↓ 17 callers
Method
Failure
Failure sends an MessageFailure Message
cmd/mulchd/server/log.go:99
↓ 16 callers
Method
GetDomainByName
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 callers
Method
Infof
Infof sends a formated string MessageInfo Message
cmd/mulch-proxy/log.go:81
↓ 16 callers
Function
PathExist
PathExist returns true if a file or directory exists
common/tools.go:21
↓ 15 callers
Method
Do
Do a call to a peer (with detailed error messages)
cmd/mulchd/server/peer_call.go:51
↓ 15 callers
Method
GetNames
GetNames returns a list of seed names
cmd/mulchd/server/seeds.go:152
↓ 14 callers
Method
GetConnection
GetConnection returns the current libvirt connection
cmd/mulchd/server/libvirt.go:55
↓ 14 callers
Method
Remove
Remove removes all identities with the given public key
cmd/mulchd/server/ssh_agent.go:102
↓ 13 callers
Method
Delete
Delete the VM from the database using its name
cmd/mulchd/server/vm_database.go:314
↓ 13 callers
Method
Trace
Trace sends an MessageTrace Message
cmd/mulchd/server/log.go:77
↓ 12 callers
Method
Get
Get a secret value
cmd/mulchd/server/secret_database.go:90
↓ 11 callers
Method
Get
Get the ExtraCert for the given domain (or nil if not found)
cmd/mulch-proxy/extra_certs.go:146
↓ 11 callers
Function
VMIsRunning
VMIsRunning returns true if VM is up and running
cmd/mulchd/server/vm.go:995
↓ 10 callers
Function
GetExitMessage
GetExitMessage return a pointer to the global ExitMessage
cmd/mulch/client/exit_message.go:22
↓ 10 callers
Function
IsValidName
IsValidName returns true if argument use only allowed chars for a name
cmd/mulchd/server/tools.go:16
↓ 10 callers
Function
StringIsVariable
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 callers
Method
Copy
Copy do the actual upload
cmd/mulchd/volumes/volume_upload.go:41
↓ 9 callers
Method
GetEntryByName
GetEntryByName lookups a VMDatabaseEntry entry by its name
cmd/mulchd/server/vm_database.go:468
↓ 9 callers
Method
GetVolumeName
GetVolumeName return the seed volume file name
cmd/mulchd/server/seeds.go:511
↓ 9 callers
Function
NewVMName
NewVMName instanciates a new VMName struct
cmd/mulchd/server/vm_name.go:16
↓ 8 callers
Method
Disable
Disable global ExitMessage
cmd/mulch/client/exit_message.go:27
↓ 8 callers
Method
GetContent
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 callers
Function
GetSSHPath
GetSSHPath returns the path of a file in the user SSH config path
cmd/mulch/client/ssh.go:21
↓ 8 callers
Method
GlobalID
GlobalID will return a "global" ID for the port (public ports are merged) Useful for deduplication
cmd/mulchd/server/vm_port.go:67
↓ 8 callers
Method
Go
Go will execute the Run
cmd/mulchd/server/run.go:33
↓ 8 callers
Function
NewLog
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 callers
Function
RenderTable
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 callers
Method
SetActiveRevision
SetActiveRevision change the active instance (RevisionNone is allowed)
cmd/mulchd/server/vm_database.go:668
↓ 7 callers
Method
GetPublicKeyAuth
GetPublicKeyAuth return a PublicKey AuthMethod for named key pair
cmd/mulchd/server/sshpair_database.go:139
↓ 7 callers
Method
Log
Log is a low-level function for sending a Message
cmd/mulchd/server/log.go:27
↓ 7 callers
Function
NewMessage
NewMessage creates a new Message instance
common/message.go:69
↓ 7 callers
Method
Read
Read reads data from the buffer
cmd/mulchd/server/ring_buffer.go:29
↓ 7 callers
Method
Tracef
Tracef sends a formated string MessageTrace Message
cmd/mulch-proxy/log.go:92
↓ 7 callers
Method
Update
Update saves the DB if data was modified using *VM pointers
cmd/mulchd/server/vm_database.go:306
↓ 7 callers
Method
UpdateStatus
UpdateStatus change status informations
cmd/mulchd/server/seeds.go:505
↓ 7 callers
Function
VMStopByName
VMStopByName stops a VM using its name and waits until the VM is down. (or timeouts)
cmd/mulchd/server/vm.go:774
↓ 7 callers
Function
getEntryFromRequest
(vmName string, req *server.Request)
cmd/mulchd/controllers/vm.go:19
↓ 7 callers
Method
save
Save the database on the disk, without locking (internal use)
cmd/mulchd/server/api_keys.go:147
↓ 6 callers
Method
Print
Print the formatted message
common/message.go:95
↓ 6 callers
Function
VMLockUnlock
VMLockUnlock will lock or unlock a VM, preventing it from deletion
cmd/mulchd/server/vm.go:884
↓ 6 callers
Method
VolumeInfos
VolumeInfos returns volume informations, like physical allocated size
cmd/mulchd/server/libvirt.go:508
↓ 6 callers
Method
save
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 callers
Method
save
()
cmd/mulchd/server/seeds.go:112
↓ 5 callers
Method
DeleteVolume
DeleteVolume for specified pool
cmd/mulchd/server/libvirt.go:494
↓ 5 callers
Method
GetEntryBySecretUUID
GetEntryBySecretUUID lookups a VMName by its secretUUID Note: this function also search in greenhouseDB
cmd/mulchd/server/vm_database.go:558
↓ 5 callers
Method
Info
Info sends an MessageInfo Message
cmd/mulch-proxy/log.go:76
↓ 5 callers
Function
InterfaceValueToString
InterfaceValueToString converts most interface types to string
common/tools.go:38
↓ 5 callers
Function
IsValidWord
IsValidWord returns true if argument use only allowed chars for a name
cmd/mulchd/server/tools.go:28
↓ 5 callers
Method
Run
Run will start the app servers (foreground)
cmd/mulchd/server/app.go:514
↓ 5 callers
Method
Send
Send an alert using all alert scripts (etc/alerts/*.sh)
cmd/mulchd/server/alert.go:78
↓ 5 callers
Method
SetTarget
SetTarget change the current "sending" target
cmd/mulchd/server/log.go:110
↓ 5 callers
Method
Unregister
Unregister the client from the Hub
cmd/mulchd/server/hub.go:92
↓ 5 callers
Function
VMDelete
VMDelete will delete a VM (using its name) and linked storages.
cmd/mulchd/server/vm.go:896
↓ 5 callers
Method
Warning
Warning sends a MessageWarning Message
cmd/mulchd/server/log.go:55
↓ 4 callers
Method
AddFile
AddFile to the request (upload)
cmd/mulch/client/apicall.go:71
↓ 4 callers
Function
CheckDomainsConflicts
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 callers
Function
CheckPortsConflicts
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 callers
Method
CleanKey
CleanKey returns a cleaned key path, if possible
cmd/mulchd/server/secret_database.go:171
↓ 4 callers
Method
ClientHandleChannelOpen
ClientHandleChannelOpen is called when the client (= the VM) asks for a new channel (ex: forwarded-tcpip)
cmd/mulchd/server/ssh_proxy.go:24
↓ 4 callers
Function
DurationAsSecondsString
DurationAsSecondsString returns a string representation of a duration (seconds)
cmd/mulch/client/tools.go:65
↓ 4 callers
Method
GetActiveEntryByName
GetActiveEntryByName return the active VM entry with the specified name
cmd/mulchd/server/vm_database.go:501
↓ 4 callers
Method
GetByComment
GetByComment returns an API key by its comment, or nil if not found
cmd/mulchd/server/api_keys.go:301
↓ 4 callers
Method
GetByName
GetByName lookups a Domain by its domain
cmd/mulch-proxy/domain_database.go:112
↓ 4 callers
Method
GetCountForName
GetCountForName returns the amount of instances with the specified name (so 0 means none)
cmd/mulchd/server/vm_database.go:654
↓ 4 callers
Method
GetGreenhouseEntryByName
GetGreenhouseEntryByName lookups a VMDatabaseEntry in greenhouseDB entry by its name
cmd/mulchd/server/vm_database.go:531
↓ 4 callers
Method
IsAllowed
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 callers
Method
IsVMActive
IsVMActive returns true if VM is active
cmd/mulchd/server/vm_database.go:616
↓ 4 callers
Function
LibvirtDomainStateToString
LibvirtDomainStateToString translate a DomainState to string
cmd/mulchd/server/libvirt.go:470
↓ 4 callers
Method
Log
Log is a low-level function for sending a Message
cmd/mulch-proxy/log.go:46
↓ 4 callers
Function
NewMessage
NewMessage instanciates a new Message
cmd/mulch-proxy/log.go:27
↓ 4 callers
Function
NewVMConfigFromTomlReader
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