MCPcopy Create free account

hub / github.com/OnitiFR/mulch / functions

Functions644 in github.com/OnitiFR/mulch

↓ 1 callersFunctionNewRequestList
NewRequestList instances a new RequestList debug=false will currently completely disable the list
cmd/mulch-proxy/request_list.go:28
↓ 1 callersFunctionNewRootConfig
NewRootConfig reads configuration from filename and environment. Priority : CLI flag, config file, environment
cmd/mulch/topics/root_config.go:32
↓ 1 callersFunctionNewSSHPairDatabase
NewSSHPairDatabase instanciates a new SSHPairDatabase
cmd/mulchd/server/sshpair_database.go:31
↓ 1 callersFunctionNewSSHProxyAgent
NewSSHProxyAgent creates a new SSH agent proxy
cmd/mulchd/server/ssh_agent.go:22
↓ 1 callersFunctionNewSSHProxyServer
NewSSHProxyServer creates and starts our SSH proxy to VMs
cmd/mulchd/server/ssh_server.go:30
↓ 1 callersFunctionNewSecretDatabase
NewSecretDatabase instanciates a new SecretDatabase, creating a new passphrase if needed.
cmd/mulchd/server/secret_database.go:44
↓ 1 callersFunctionNewSeeder
NewSeeder instanciates a new SeedDatabase
cmd/mulchd/server/seeds.go:47
↓ 1 callersFunctionNewVMConfigFromFile
NewVMConfigFromFile creates a new VMConfig from a TOML file
cmd/mulch/client/vm_config.go:13
↓ 1 callersFunctionNewVMDatabase
NewVMDatabase instanciates a new VMDatabase
cmd/mulchd/server/vm_database.go:45
↓ 1 callersFunctionNewVMDatabaseMigrate
NewVMDatabaseMigrate create an new VMDatabaseMigrate instance
cmd/mulchd/server/vm_database_migrate.go:15
↓ 1 callersFunctionNewVMPortArray
NewVMPortArray will parse an array of strings and return an array of *VMPort
cmd/mulchd/server/vm_port.go:75
↓ 1 callersFunctionNewVMStateDatabase
NewVMStateDatabase instanciates a new VMStateDatabase
cmd/mulchd/server/vmstate_database.go:28
↓ 1 callersFunctionNewVolumeDownload
NewVolumeDownload is a variant that writes to a file
cmd/mulchd/volumes/volume_download.go:38
↓ 1 callersFunctionNewVolumeTransfert
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 callersFunctionNewVolumeUploadFromReader
NewVolumeUploadFromReader creates a VolumeUpload instance, allowing to upload a file to a libvirt storage pool
cmd/mulchd/volumes/volume_upload.go:17
↓ 1 callersFunctionParseVMName
ParseVMName parses a VM name and returns a VMName struct
cmd/mulchd/server/vm_name.go:24
↓ 1 callersMethodPauseSeed
PauseSeed pause a seed until a given time (and save the DB)
cmd/mulchd/server/seeds.go:491
↓ 1 callersMethodPush
Push a new message in the list
cmd/mulchd/server/log_history.go:36
↓ 1 callersFunctionRandString
RandString generate a random string of A-Za-z0-9 runes
cmd/mulchd/server/tools.go:34
↓ 1 callersFunctionRandomUniqueIPv4
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 callersFunctionRandomUniqueMAC
RandomUniqueMAC generate a random unique (among other Mulch VMs) MAC address (we use QEMU MAC prefix)
cmd/mulchd/server/network.go:28
↓ 1 callersFunctionRebuildVM
RebuildVM rebuilds a VM from a backup (with revision system) and delete the original
cmd/mulchd/controllers/vm.go:990
↓ 1 callersFunctionRedefineVM
RedefineVM replace VM config file with a new one, for next rebuild
cmd/mulchd/controllers/vm.go:1002
↓ 1 callersMethodReload
Reload is the mutex-protected variant of load()
cmd/mulch-proxy/domain_database.go:80
↓ 1 callersMethodReloadDomains
ReloadDomains reload domains config file
cmd/mulch-proxy/proxy.go:449
↓ 1 callersMethodReloadPorts
ReloadPorts will load the file,
cmd/mulch-proxy/port_server.go:36
↓ 1 callersMethodRemoveAll
RemoveAll removes all identities
cmd/mulchd/server/ssh_agent.go:108
↓ 1 callersMethodRemoveAllSSHFingerprint
RemoveAllSSHFingerprint removes all fingerprints allowed for a VM of a key
cmd/mulchd/server/api_keys.go:368
↓ 1 callersMethodRemoveRight
RemoveRight will remove the parsed right from the key
cmd/mulchd/server/api_keys.go:529
↓ 1 callersMethodRemoveSSHFingerprint
RemoveSSHFingerprint removes a fingerprint from the list of allowed fingerprints
cmd/mulchd/server/api_keys.go:338
↓ 1 callersMethodRemoveTransientDHCPHost
RemoveTransientDHCPHost will remove a transient DHCP lease
cmd/mulchd/server/libvirt_dhcp.go:36
↓ 1 callersMethodReplaceChainedDomains
ReplaceChainedDomains remove all domains chain-forwared to "forwardTo" and replace it with "domains"
cmd/mulch-proxy/domain_database.go:133
↓ 1 callersFunctionRestartVM
RestartVM restart a VM (deals with failure and success by itself)
cmd/mulchd/controllers/vm.go:879
↓ 1 callersFunctionRestoreVM
(req *server.Request, vm *server.VM, vmName *server.VMName)
cmd/mulchd/controllers/vm.go:961
↓ 1 callersMethodRun
Run will start the Hub, allowing messages to be sent and received
cmd/mulchd/server/hub.go:38
↓ 1 callersMethodRunKeepAlive
RunKeepAlive will send a keepalive alert every X days
cmd/mulchd/server/alert.go:116
↓ 1 callersFunctionSFTPCopy
SFTPCopy is a WIP
cmd/mulch/client/sftp.go:23
↓ 1 callersMethodSaveToWriter
Save the database to a writer
cmd/mulchd/server/secret_database.go:230
↓ 1 callersMethodScheduleReload
ScheduleReload will schedule a reload of the ExtraCertsDB
cmd/mulch-proxy/extra_certs.go:65
↓ 1 callersMethodScheduleSelfCalls
ScheduleSelfCalls call our own API HTTPS URL every 24 hour, refreshing the TLS certificate.
cmd/mulchd/server/cert_manager.go:147
↓ 1 callersMethodScheduleSelfCalls
ScheduleSelfCalls call our own API HTTPS URL every 24 hour, refreshing the TLS certificate.
cmd/mulch-proxy/api_server.go:196
↓ 1 callersMethodSearch
Search return an array of messages (latest messages, up to maxMessages, for a specific target)
cmd/mulchd/server/log_history.go:89
↓ 1 callersMethodSearchGreenhouseEntries
SearchGreenhouseEntries lists all VMs in the greenhouse matching the specified name
cmd/mulchd/server/vm_database.go:543
↓ 1 callersFunctionSearchSSHAuthorizedKey
SearchSSHAuthorizedKey search a public key in an authorized_keys formatted file and return key & comment
cmd/mulchd/server/ssh_keys.go:43
↓ 1 callersMethodServe
Serve starts the SSH agent proxy
cmd/mulchd/server/ssh_agent.go:132
↓ 1 callersMethodStatus
Status returns informations about Mulch server
cmd/mulchd/server/app.go:569
↓ 1 callersFunctionStopVM
StopVM stop a VM (deals with failure and success by itself)
cmd/mulchd/controllers/vm.go:842
↓ 1 callersMethodString
String version of the VMPort (Index is not part of the string)
cmd/mulchd/server/vm_port.go:46
↓ 1 callersFunctionStringFindVariables
StringFindVariables returns a deduplicated slice of all "variables" ($test) in the string
common/tools.go:83
↓ 1 callersMethodSyncPeer
SyncPeer syncs the secret database with a peer
cmd/mulchd/server/secret_database.go:450
↓ 1 callersMethodTimestampShow
TimestampShow allow to override -d flags
cmd/mulch/client/apicall.go:248
↓ 1 callersFunctionVMCreateBackupDisk
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 callersFunctionVMLoadGet
VMLoadGet returns the VM's load (in percentage)
cmd/mulchd/server/vm.go:1016
↓ 1 callersMethodVolumeDownloadToWriter
VolumeDownloadToWriter return a *VolumeDownload for a download operation to a writer
cmd/mulchd/server/libvirt.go:401
↓ 1 callersMethodWaitStream
WaitStream waits for StartStream()
cmd/mulchd/server/request.go:39
↓ 1 callersMethodWarning
Warning sends a MessageWarning Message
cmd/mulch-proxy/log.go:65
↓ 1 callersMethodadd
add a client with address addr to the database
cmd/mulchd/server/ssh_server.go:140
↓ 1 callersFunctionautoRebuildStart
(app *App)
cmd/mulchd/server/auto_rebuild.go:24
↓ 1 callersFunctionautoRebuildVM
(vmName *VMName, app *App)
cmd/mulchd/server/auto_rebuild.go:39
↓ 1 callersMethodcheckDataPath
()
cmd/mulchd/server/app.go:187
↓ 1 callersMethodcheckDataPath
()
cmd/mulch-proxy/app.go:157
↓ 1 callersMethodcheckDomainsController
(response http.ResponseWriter, request *http.Request)
cmd/mulch-proxy/api_server.go:154
↓ 1 callersFunctioncloudInitMetaData
(id string, hostname string)
cmd/mulchd/server/cloudinit.go:13
↓ 1 callersFunctioncloudInitUserData
(templateFile string, variables map[string]interface{})
cmd/mulchd/server/cloudinit.go:20
↓ 1 callersMethodcreateDomainDB
()
cmd/mulch-proxy/app.go:167
↓ 1 callersFunctiondealWithSpecialMessages
(content string)
cmd/mulch/client/apicall.go:285
↓ 1 callersFunctiondecodeJSONStream
(body io.ReadCloser, call *PeerCall)
cmd/mulchd/server/peer_call.go:293
↓ 1 callersMethoddelete
delete a client by its address
cmd/mulchd/server/ssh_server.go:147
↓ 1 callersMethoddelete
delete the Backup from the database using its name (must be locked by the caller)
cmd/mulchd/server/backup_database.go:130
↓ 1 callersMethoddelete
delete a secret (low-level)
cmd/mulchd/server/secret_database.go:134
↓ 1 callersMethoddeleteExpired
deleteExpired deletes all expired backups
cmd/mulchd/server/backup_database.go:104
↓ 1 callersFunctiondialTest
* 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 callersMethoddo
do the actual call
cmd/mulchd/server/peer_call.go:68
↓ 1 callersMethodfindByHost
findByHost returns a NetworkDHCPHost lease by its name (or nil of not found)
cmd/mulchd/server/libvirt_dhcp.go:168
↓ 1 callersMethodgenDomainsDB
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 callersMethodgenKey
GenKey generates a new random API key
cmd/mulchd/server/api_keys.go:221
↓ 1 callersMethodgenPortsDB
build port database for the TCP proxy
cmd/mulchd/server/vm_database.go:114
↓ 1 callersMethodgeneratePassphrase
()
cmd/mulchd/server/secret_database.go:369
↓ 1 callersMethodgetClients
getClients as an array
cmd/mulchd/server/ssh_server.go:154
↓ 1 callersFunctiongetContentFromGitOrigin
returns a content using a git origin
cmd/mulchd/server/origin.go:247
↓ 1 callersMethodgetContentFromOrigin
getContentFromOrigin returns a ReadCloser thru the provided origin
cmd/mulchd/server/origin.go:124
↓ 1 callersMethodgetEntryByID
for special server internal purposes (ex: vm state database)
cmd/mulchd/server/vm_database.go:628
↓ 1 callersMethodinitAPIKeysDB
()
cmd/mulchd/server/app.go:372
↓ 1 callersMethodinitBackupDB
()
cmd/mulchd/server/app.go:358
↓ 1 callersMethodinitLibvirtNWFilter
()
cmd/mulchd/server/app.go:450
↓ 1 callersMethodinitLibvirtNetwork
()
cmd/mulchd/server/app.go:432
↓ 1 callersMethodinitLibvirtStorage
()
cmd/mulchd/server/app.go:395
↓ 1 callersMethodinitSSHPairDB
()
cmd/mulchd/server/app.go:194
↓ 1 callersMethodinitSecretDB
()
cmd/mulchd/server/app.go:225
↓ 1 callersMethodinitSeedsDB
()
cmd/mulchd/server/app.go:383
↓ 1 callersMethodinitSigHUPHandler
()
cmd/mulch-proxy/app.go:185
↓ 1 callersMethodinitSigQUITHandler
write a pprof memory profile dump on SIGQUIT kill -QUIT $(pidof mulchd)
cmd/mulchd/server/app.go:485
↓ 1 callersMethodinitSigQUITHandler
kill -QUIT $(pidof mulch-proxy)
cmd/mulch-proxy/app.go:202
↓ 1 callersMethodinitVMDB
()
cmd/mulchd/server/app.go:244
↓ 1 callersMethodinitVMStateDB
()
cmd/mulchd/server/app.go:347
↓ 1 callersMethodinitWebServers
()
cmd/mulchd/server/app.go:462
↓ 1 callersMethodload
()
cmd/mulchd/server/sshpair_database.go:71
↓ 1 callersMethodload
()
cmd/mulchd/server/vmstate_database.go:73
↓ 1 callersMethodload
()
cmd/mulchd/server/vm_database.go:276
↓ 1 callersMethodload
(log *Log)
cmd/mulchd/server/api_keys.go:86
← previousnext →301–400 of 644, ranked by callers