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
↓ 1 callers
Function
NewRequestList
NewRequestList instances a new RequestList debug=false will currently completely disable the list
cmd/mulch-proxy/request_list.go:28
↓ 1 callers
Function
NewRootConfig
NewRootConfig reads configuration from filename and environment. Priority : CLI flag, config file, environment
cmd/mulch/topics/root_config.go:32
↓ 1 callers
Function
NewSSHPairDatabase
NewSSHPairDatabase instanciates a new SSHPairDatabase
cmd/mulchd/server/sshpair_database.go:31
↓ 1 callers
Function
NewSSHProxyAgent
NewSSHProxyAgent creates a new SSH agent proxy
cmd/mulchd/server/ssh_agent.go:22
↓ 1 callers
Function
NewSSHProxyServer
NewSSHProxyServer creates and starts our SSH proxy to VMs
cmd/mulchd/server/ssh_server.go:30
↓ 1 callers
Function
NewSecretDatabase
NewSecretDatabase instanciates a new SecretDatabase, creating a new passphrase if needed.
cmd/mulchd/server/secret_database.go:44
↓ 1 callers
Function
NewSeeder
NewSeeder instanciates a new SeedDatabase
cmd/mulchd/server/seeds.go:47
↓ 1 callers
Function
NewVMConfigFromFile
NewVMConfigFromFile creates a new VMConfig from a TOML file
cmd/mulch/client/vm_config.go:13
↓ 1 callers
Function
NewVMDatabase
NewVMDatabase instanciates a new VMDatabase
cmd/mulchd/server/vm_database.go:45
↓ 1 callers
Function
NewVMDatabaseMigrate
NewVMDatabaseMigrate create an new VMDatabaseMigrate instance
cmd/mulchd/server/vm_database_migrate.go:15
↓ 1 callers
Function
NewVMPortArray
NewVMPortArray will parse an array of strings and return an array of *VMPort
cmd/mulchd/server/vm_port.go:75
↓ 1 callers
Function
NewVMStateDatabase
NewVMStateDatabase instanciates a new VMStateDatabase
cmd/mulchd/server/vmstate_database.go:28
↓ 1 callers
Function
NewVolumeDownload
NewVolumeDownload is a variant that writes to a file
cmd/mulchd/volumes/volume_download.go:38
↓ 1 callers
Function
NewVolumeTransfert
NewVolumeTransfert creates a VolumeTransfert instance, allowing to transfert a content from a libvirt storage pool to another
cmd/mulchd/volumes/volume_transfer.go:17
↓ 1 callers
Function
NewVolumeUploadFromReader
NewVolumeUploadFromReader creates a VolumeUpload instance, allowing to upload a file to a libvirt storage pool
cmd/mulchd/volumes/volume_upload.go:17
↓ 1 callers
Function
ParseVMName
ParseVMName parses a VM name and returns a VMName struct
cmd/mulchd/server/vm_name.go:24
↓ 1 callers
Method
PauseSeed
PauseSeed pause a seed until a given time (and save the DB)
cmd/mulchd/server/seeds.go:491
↓ 1 callers
Method
Push
Push a new message in the list
cmd/mulchd/server/log_history.go:36
↓ 1 callers
Function
RandString
RandString generate a random string of A-Za-z0-9 runes
cmd/mulchd/server/tools.go:34
↓ 1 callers
Function
RandomUniqueIPv4
RandomUniqueIPv4 generate a random unique IPv4 (among other Mulch VMs) inside libvirt DHCP range, excluding other "external" static leases
cmd/mulchd/server/network.go:50
↓ 1 callers
Function
RandomUniqueMAC
RandomUniqueMAC generate a random unique (among other Mulch VMs) MAC address (we use QEMU MAC prefix)
cmd/mulchd/server/network.go:28
↓ 1 callers
Function
RebuildVM
RebuildVM rebuilds a VM from a backup (with revision system) and delete the original
cmd/mulchd/controllers/vm.go:990
↓ 1 callers
Function
RedefineVM
RedefineVM replace VM config file with a new one, for next rebuild
cmd/mulchd/controllers/vm.go:1002
↓ 1 callers
Method
Reload
Reload is the mutex-protected variant of load()
cmd/mulch-proxy/domain_database.go:80
↓ 1 callers
Method
ReloadDomains
ReloadDomains reload domains config file
cmd/mulch-proxy/proxy.go:449
↓ 1 callers
Method
ReloadPorts
ReloadPorts will load the file,
cmd/mulch-proxy/port_server.go:36
↓ 1 callers
Method
RemoveAll
RemoveAll removes all identities
cmd/mulchd/server/ssh_agent.go:108
↓ 1 callers
Method
RemoveAllSSHFingerprint
RemoveAllSSHFingerprint removes all fingerprints allowed for a VM of a key
cmd/mulchd/server/api_keys.go:368
↓ 1 callers
Method
RemoveRight
RemoveRight will remove the parsed right from the key
cmd/mulchd/server/api_keys.go:529
↓ 1 callers
Method
RemoveSSHFingerprint
RemoveSSHFingerprint removes a fingerprint from the list of allowed fingerprints
cmd/mulchd/server/api_keys.go:338
↓ 1 callers
Method
RemoveTransientDHCPHost
RemoveTransientDHCPHost will remove a transient DHCP lease
cmd/mulchd/server/libvirt_dhcp.go:36
↓ 1 callers
Method
ReplaceChainedDomains
ReplaceChainedDomains remove all domains chain-forwared to "forwardTo" and replace it with "domains"
cmd/mulch-proxy/domain_database.go:133
↓ 1 callers
Function
RestartVM
RestartVM restart a VM (deals with failure and success by itself)
cmd/mulchd/controllers/vm.go:879
↓ 1 callers
Function
RestoreVM
(req *server.Request, vm *server.VM, vmName *server.VMName)
cmd/mulchd/controllers/vm.go:961
↓ 1 callers
Method
Run
Run will start the Hub, allowing messages to be sent and received
cmd/mulchd/server/hub.go:38
↓ 1 callers
Method
RunKeepAlive
RunKeepAlive will send a keepalive alert every X days
cmd/mulchd/server/alert.go:116
↓ 1 callers
Function
SFTPCopy
SFTPCopy is a WIP
cmd/mulch/client/sftp.go:23
↓ 1 callers
Method
SaveToWriter
Save the database to a writer
cmd/mulchd/server/secret_database.go:230
↓ 1 callers
Method
ScheduleReload
ScheduleReload will schedule a reload of the ExtraCertsDB
cmd/mulch-proxy/extra_certs.go:65
↓ 1 callers
Method
ScheduleSelfCalls
ScheduleSelfCalls call our own API HTTPS URL every 24 hour, refreshing the TLS certificate.
cmd/mulchd/server/cert_manager.go:147
↓ 1 callers
Method
ScheduleSelfCalls
ScheduleSelfCalls call our own API HTTPS URL every 24 hour, refreshing the TLS certificate.
cmd/mulch-proxy/api_server.go:196
↓ 1 callers
Method
Search
Search return an array of messages (latest messages, up to maxMessages, for a specific target)
cmd/mulchd/server/log_history.go:89
↓ 1 callers
Method
SearchGreenhouseEntries
SearchGreenhouseEntries lists all VMs in the greenhouse matching the specified name
cmd/mulchd/server/vm_database.go:543
↓ 1 callers
Function
SearchSSHAuthorizedKey
SearchSSHAuthorizedKey search a public key in an authorized_keys formatted file and return key & comment
cmd/mulchd/server/ssh_keys.go:43
↓ 1 callers
Method
Serve
Serve starts the SSH agent proxy
cmd/mulchd/server/ssh_agent.go:132
↓ 1 callers
Method
Status
Status returns informations about Mulch server
cmd/mulchd/server/app.go:569
↓ 1 callers
Function
StopVM
StopVM stop a VM (deals with failure and success by itself)
cmd/mulchd/controllers/vm.go:842
↓ 1 callers
Method
String
String version of the VMPort (Index is not part of the string)
cmd/mulchd/server/vm_port.go:46
↓ 1 callers
Function
StringFindVariables
StringFindVariables returns a deduplicated slice of all "variables" ($test) in the string
common/tools.go:83
↓ 1 callers
Method
SyncPeer
SyncPeer syncs the secret database with a peer
cmd/mulchd/server/secret_database.go:450
↓ 1 callers
Method
TimestampShow
TimestampShow allow to override -d flags
cmd/mulch/client/apicall.go:248
↓ 1 callers
Function
VMCreateBackupDisk
VMCreateBackupDisk create a new backup volume TODO: make this function transactional: remove disk if we fail in last steps
cmd/mulchd/server/vm.go:1066
↓ 1 callers
Function
VMLoadGet
VMLoadGet returns the VM's load (in percentage)
cmd/mulchd/server/vm.go:1016
↓ 1 callers
Method
VolumeDownloadToWriter
VolumeDownloadToWriter return a *VolumeDownload for a download operation to a writer
cmd/mulchd/server/libvirt.go:401
↓ 1 callers
Method
WaitStream
WaitStream waits for StartStream()
cmd/mulchd/server/request.go:39
↓ 1 callers
Method
Warning
Warning sends a MessageWarning Message
cmd/mulch-proxy/log.go:65
↓ 1 callers
Method
add
add a client with address addr to the database
cmd/mulchd/server/ssh_server.go:140
↓ 1 callers
Function
autoRebuildStart
(app *App)
cmd/mulchd/server/auto_rebuild.go:24
↓ 1 callers
Function
autoRebuildVM
(vmName *VMName, app *App)
cmd/mulchd/server/auto_rebuild.go:39
↓ 1 callers
Method
checkDataPath
()
cmd/mulchd/server/app.go:187
↓ 1 callers
Method
checkDataPath
()
cmd/mulch-proxy/app.go:157
↓ 1 callers
Method
checkDomainsController
(response http.ResponseWriter, request *http.Request)
cmd/mulch-proxy/api_server.go:154
↓ 1 callers
Function
cloudInitMetaData
(id string, hostname string)
cmd/mulchd/server/cloudinit.go:13
↓ 1 callers
Function
cloudInitUserData
(templateFile string, variables map[string]interface{})
cmd/mulchd/server/cloudinit.go:20
↓ 1 callers
Method
createDomainDB
()
cmd/mulch-proxy/app.go:167
↓ 1 callers
Function
dealWithSpecialMessages
(content string)
cmd/mulch/client/apicall.go:285
↓ 1 callers
Function
decodeJSONStream
(body io.ReadCloser, call *PeerCall)
cmd/mulchd/server/peer_call.go:293
↓ 1 callers
Method
delete
delete a client by its address
cmd/mulchd/server/ssh_server.go:147
↓ 1 callers
Method
delete
delete the Backup from the database using its name (must be locked by the caller)
cmd/mulchd/server/backup_database.go:130
↓ 1 callers
Method
delete
delete a secret (low-level)
cmd/mulchd/server/secret_database.go:134
↓ 1 callers
Method
deleteExpired
deleteExpired deletes all expired backups
cmd/mulchd/server/backup_database.go:104
↓ 1 callers
Function
dialTest
* This module is here because we've had issues with proxy-chaining when the child-parent link is using HTTP2 (ie: child with HTTPS proxy_chain_chil
cmd/mulch-proxy/watchdog.go:48
↓ 1 callers
Method
do
do the actual call
cmd/mulchd/server/peer_call.go:68
↓ 1 callers
Method
findByHost
findByHost returns a NetworkDHCPHost lease by its name (or nil of not found)
cmd/mulchd/server/libvirt_dhcp.go:168
↓ 1 callers
Method
genDomainsDB
build domain database, updated with each vm.LastIP (and name, as it's not available at config file reading time)
cmd/mulchd/server/vm_database.go:75
↓ 1 callers
Method
genKey
GenKey generates a new random API key
cmd/mulchd/server/api_keys.go:221
↓ 1 callers
Method
genPortsDB
build port database for the TCP proxy
cmd/mulchd/server/vm_database.go:114
↓ 1 callers
Method
generatePassphrase
()
cmd/mulchd/server/secret_database.go:369
↓ 1 callers
Method
getClients
getClients as an array
cmd/mulchd/server/ssh_server.go:154
↓ 1 callers
Function
getContentFromGitOrigin
returns a content using a git origin
cmd/mulchd/server/origin.go:247
↓ 1 callers
Method
getContentFromOrigin
getContentFromOrigin returns a ReadCloser thru the provided origin
cmd/mulchd/server/origin.go:124
↓ 1 callers
Method
getEntryByID
for special server internal purposes (ex: vm state database)
cmd/mulchd/server/vm_database.go:628
↓ 1 callers
Method
initAPIKeysDB
()
cmd/mulchd/server/app.go:372
↓ 1 callers
Method
initBackupDB
()
cmd/mulchd/server/app.go:358
↓ 1 callers
Method
initLibvirtNWFilter
()
cmd/mulchd/server/app.go:450
↓ 1 callers
Method
initLibvirtNetwork
()
cmd/mulchd/server/app.go:432
↓ 1 callers
Method
initLibvirtStorage
()
cmd/mulchd/server/app.go:395
↓ 1 callers
Method
initSSHPairDB
()
cmd/mulchd/server/app.go:194
↓ 1 callers
Method
initSecretDB
()
cmd/mulchd/server/app.go:225
↓ 1 callers
Method
initSeedsDB
()
cmd/mulchd/server/app.go:383
↓ 1 callers
Method
initSigHUPHandler
()
cmd/mulch-proxy/app.go:185
↓ 1 callers
Method
initSigQUITHandler
write a pprof memory profile dump on SIGQUIT kill -QUIT $(pidof mulchd)
cmd/mulchd/server/app.go:485
↓ 1 callers
Method
initSigQUITHandler
kill -QUIT $(pidof mulch-proxy)
cmd/mulch-proxy/app.go:202
↓ 1 callers
Method
initVMDB
()
cmd/mulchd/server/app.go:244
↓ 1 callers
Method
initVMStateDB
()
cmd/mulchd/server/app.go:347
↓ 1 callers
Method
initWebServers
()
cmd/mulchd/server/app.go:462
↓ 1 callers
Method
load
()
cmd/mulchd/server/sshpair_database.go:71
↓ 1 callers
Method
load
()
cmd/mulchd/server/vmstate_database.go:73
↓ 1 callers
Method
load
()
cmd/mulchd/server/vm_database.go:276
↓ 1 callers
Method
load
(log *Log)
cmd/mulchd/server/api_keys.go:86
← previous
next →
301–400 of 644, ranked by callers