Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crocuda/virshle
/ functions
Functions
552 in github.com/crocuda/virshle
⨍
Functions
552
◇
Types & classes
192
↓ 4 callers
Method
shutdown
(&self)
virshle_rest/src/server/methods.rs:586
↓ 4 callers
Method
shutdown
(&mut self)
virshle_core/src/hypervisor/vmm/api.rs:212
↓ 4 callers
Method
template
(&mut self)
virshle_rest/src/client/methods.rs:84
↓ 4 callers
Method
try_into
(self)
virshle_core/src/peer/mod.rs:71
↓ 4 callers
Function
uuid_to_duid
Convert Vm uuid to predictable dhcp duid-uuid.
virshle_core/src/network/utils.rs:59
↓ 4 callers
Function
vm_bulk_results_to_hashmap
( vms: Vec<Vm>, results: Vec<Result<Result<Vm, VirshleError>, JoinError>>, )
virshle_rest/src/commons/utils.rs:87
↓ 3 callers
Method
_create
Create a network on host (and ovs configuration).
virshle_core/src/hypervisor/vm/networks.rs:78
↓ 3 callers
Method
_delete
Remove a network from host (and ovs configuration). WARNING: Silently fail (due to ".ok()").
virshle_core/src/hypervisor/vm/networks.rs:141
↓ 3 callers
Function
add_color_used
(string: &str, percentage: &f64)
virshle_core/src/utils/display.rs:148
↓ 3 callers
Method
base_url
(&mut self, base_url: &str)
virshle_network/src/http/mod.rs:45
↓ 3 callers
Method
boot
Bring the virtual machine up.
virshle_core/src/hypervisor/vmm/api.rs:175
↓ 3 callers
Method
create
Create account record and persist into database.
virshle_core/src/config/user_data.rs:114
↓ 3 callers
Function
delete
(name: &str)
virshle_core/src/network/ip/tap.rs:62
↓ 3 callers
Method
delete
* Remove network port from the vm switch. */
virshle_core/src/network/ovs/mod.rs:98
↓ 3 callers
Method
delete_all
Remove all networks associated to Vm from host (and ovs configuration).
virshle_core/src/hypervisor/vm/networks.rs:131
↓ 3 callers
Method
from
(vm: &VmTemplate)
virshle_core/src/config/template/vm.rs:225
↓ 3 callers
Method
get
(&mut self)
virshle_core/src/network/ovs/request.rs:74
↓ 3 callers
Method
get_disks_dir
Return vm's disks directory path.
virshle_core/src/hypervisor/vm/getters.rs:68
↓ 3 callers
Method
get_mount_dir
Return path where to mount vm pipelight-init disk to. This path is used to provision a pipelight-init disk (cloud-init alternative) with user defined
virshle_core/src/hypervisor/vm/getters.rs:82
↓ 3 callers
Method
get_net_socket
* Return vm network socket path. */
virshle_core/src/hypervisor/vm/getters.rs:63
↓ 3 callers
Method
get_percentage_reserved
(&self)
virshle_core/src/peer/info.rs:152
↓ 3 callers
Method
info
Get info for locally running node "Self".
virshle_rest/src/server/methods.rs:96
↓ 3 callers
Method
info
Get info about the vm.
virshle_core/src/hypervisor/vmm/api.rs:133
↓ 3 callers
Method
is_saturated
RAM saturation
virshle_core/src/peer/info.rs:161
↓ 3 callers
Method
make_endpoint
(&mut self, endpoint: &str)
virshle_network/src/http/mod.rs:55
↓ 3 callers
Method
ping
Test if locally running node "Self" is responding to external requests
virshle_rest/src/server/methods.rs:92
↓ 3 callers
Function
reverse_human_bytes
Convert string to bytes.
virshle_core/src/hypervisor/disk/utils.rs:26
↓ 3 callers
Method
saturation_index
(&self)
virshle_core/src/peer/info.rs:156
↓ 3 callers
Method
send
( &mut self, endpoint: &str, request: &Request<Full<Bytes>>, )
virshle_network/src/http/mod.rs:138
↓ 3 callers
Function
server
()
virshle_rest/src/e2e_tests/mod.rs:17
↓ 3 callers
Function
server
()
virshle_rest/src/server/tests.rs:19
↓ 3 callers
Method
to
()
virshle_core/src/database/entity/vm.rs:28
↓ 3 callers
Function
unwind
(result: Result<T, E>)
virshle_core/src/utils/testing.rs:104
↓ 3 callers
Method
vmm
(&mut self)
virshle_rest/src/client/methods.rs:562
↓ 2 callers
Method
_add_networks
Add networks: - push config to vmm process. This function does not create network on host.
virshle_core/src/hypervisor/vmm/api.rs:84
↓ 2 callers
Method
_get_ipv4_leases
(&self)
virshle_core/src/network/dhcp/kea_old.rs:113
↓ 2 callers
Method
_get_ipv4_leases_by_hostname
( &self, vm_name: &str, )
virshle_core/src/network/dhcp/kea_old.rs:74
↓ 2 callers
Method
_get_ipv6_leases
(&self)
virshle_core/src/network/dhcp/kea_old.rs:140
↓ 2 callers
Method
_get_ipv6_leases_by_hostname
( &self, vm_name: &str, )
virshle_core/src/network/dhcp/kea_old.rs:41
↓ 2 callers
Method
_info
Get info about the vm as json.
virshle_core/src/hypervisor/vmm/api.rs:139
↓ 2 callers
Method
_remove_networks
Remove networks: - remove config from vmm process. This function does not remove network device from host.
virshle_core/src/hypervisor/vmm/api.rs:69
↓ 2 callers
Method
add_init_disk
(&mut self, user_data: Option<UserData>)
virshle_core/src/hypervisor/vm/init.rs:172
↓ 2 callers
Method
create
(&mut self, user_data: Option<UserData>)
virshle_core/src/hypervisor/vm/crud.rs:24
↓ 2 callers
Method
database
(&self)
virshle_core/src/config/init.rs:104
↓ 2 callers
Method
delete
(&mut self)
virshle_core/src/network/ovs/request.rs:70
↓ 2 callers
Method
delete_all
Delete
virshle_core/src/config/definition.rs:48
↓ 2 callers
Method
did
Get decentralized ID for locally running node "Self".
virshle_rest/src/server/methods.rs:101
↓ 2 callers
Method
directories
Ensure virshle working directories exists.
virshle_core/src/config/init.rs:44
↓ 2 callers
Method
ensure
(&mut self)
virshle_rest/src/client/methods.rs:629
↓ 2 callers
Method
ensure
(&self)
virshle_rest/src/server/methods.rs:332
↓ 2 callers
Method
ensure_all
(&self)
virshle_core/src/hypervisor/vm/networks.rs:39
↓ 2 callers
Function
ensure_switches
* Split host main network interface to provide connectivity to vms. * see: ./README.md */
virshle_core/src/network/ovs/mod.rs:217
↓ 2 callers
Function
fresh_db
Create a fresh database and ovewrite the old one.
virshle_core/src/database/connect.rs:36
↓ 2 callers
Function
get_db_url
()
virshle_core/src/database/connect.rs:18
↓ 2 callers
Function
get_fd
(name: &str)
virshle_core/src/network/ip/fd.rs:14
↓ 2 callers
Method
get_ipv4_leases
(&self)
virshle_core/src/network/dhcp/kea_old.rs:108
↓ 2 callers
Function
get_main_interface
()
virshle_core/src/network/ip/mod.rs:124
↓ 2 callers
Method
get_ports_by_type
(&self, _type: &OvsInterfaceType)
virshle_core/src/network/ovs/getters.rs:25
↓ 2 callers
Method
get_random_unleased_ip
* Get a random an unused ip. */
virshle_core/src/network/dhcp/fake.rs:86
↓ 2 callers
Function
map_title_to_content
( titleTag: string, contentTags: string[], vnodes: VNode[], )
docs/templates/js/code.ts:12
↓ 2 callers
Method
network
(&self)
virshle_core/src/config/init.rs:82
↓ 2 callers
Method
one
( &mut self, lease: Lease, )
virshle_core/src/network/dhcp/kea/methods.rs:277
↓ 2 callers
Method
open
(&mut self)
virshle_network/src/http/mod.rs:123
↓ 2 callers
Method
peer
* For patch interface only. */
virshle_core/src/network/ovs/request.rs:159
↓ 2 callers
Method
ping_url
(&mut self, ping_url: &str)
virshle_network/src/http/mod.rs:42
↓ 2 callers
Function
random_name
()
virshle_core/src/hypervisor/rand/mod.rs:38
↓ 2 callers
Method
remove_orphan_ports
* Remove ports from vm dedicated switch, * If a port is not related to an existing vm in database. */
virshle_core/src/network/ovs/mod.rs:191
↓ 2 callers
Method
set_vsock_permissions
Widden vsock permissions to allow ssh connection from the owning group. Socket is not created on ch proc start, but after vm boot. So this function i
virshle_core/src/hypervisor/vm/mod.rs:131
↓ 2 callers
Method
to_pipelight_toml_config
Convert user-data into a pipelight configuration file.
virshle_core/src/hypervisor/vm/init.rs:65
↓ 2 callers
Method
try_into
(self)
virshle_core/src/config/node.rs:35
↓ 2 callers
Method
try_into
(self)
virshle_core/src/config/load.rs:45
↓ 2 callers
Function
umount
Unmount init disk from host filesystem.
virshle_core/src/hypervisor/disk/utils.rs:144
↓ 2 callers
Method
umount
(&self)
virshle_core/src/hypervisor/disk/mod.rs:108
↓ 2 callers
Function
up
* Bring interface up. */
virshle_core/src/network/ip/mod.rs:141
↓ 2 callers
Method
write_init_files
* Write pipelight configuration file to init disk. */
virshle_core/src/hypervisor/disk/mod.rs:72
↓ 1 callers
Method
_clean_directories
Clean orphan vm files if vm not in database.
virshle_core/src/config/init.rs:63
↓ 1 callers
Method
_clean_leases
Clean dhcp leases
virshle_core/src/config/init.rs:92
↓ 1 callers
Method
_delete_ipv4_leases
Delete a list of leases.
virshle_core/src/network/dhcp/kea_old.rs:256
↓ 1 callers
Method
_delete_ipv6_leases
Delete a list of leases.
virshle_core/src/network/dhcp/kea_old.rs:225
↓ 1 callers
Method
_first
(&mut self)
virshle_rest/src/client/methods.rs:325
↓ 1 callers
Method
_many
(args: GetManyVmArgs)
virshle_rest/src/server/methods.rs:193
↓ 1 callers
Method
_one
(args: GetVmArgs)
virshle_rest/src/server/methods.rs:168
↓ 1 callers
Method
_self
(&mut self)
virshle_rest/src/client/methods.rs:314
↓ 1 callers
Function
_umount
Unmount filesystem with ffi bindings. Not working yet for loopback devices, see: https://github.com/pop-os/sys-mount
virshle_core/src/hypervisor/disk/utils.rs:161
↓ 1 callers
Method
_wait_until_socket_up
(&self)
virshle_core/src/hypervisor/vmm/api.rs:51
↓ 1 callers
Method
add_net
(&mut self, net_config: &NetConfig)
virshle_core/src/hypervisor/vmm/api.rs:234
↓ 1 callers
Method
age
(&self)
virshle_core/src/hypervisor/vm/display.rs:56
↓ 1 callers
Method
can_create_vm
(&self, vm_template: &VmTemplate)
virshle_core/src/peer/info.rs:50
↓ 1 callers
Method
clean
( &mut self, inet6: bool, inet4: bool, )
virshle_core/src/network/dhcp/kea/methods.rs:105
↓ 1 callers
Method
clean_ipv4_leases
Remove leases if associated vm doesn't exist.
virshle_core/src/network/dhcp/kea_old.rs:168
↓ 1 callers
Method
clean_ipv6_leases
Remove leases if associated vm doesn't exist.
virshle_core/src/network/dhcp/kea_old.rs:193
↓ 1 callers
Function
connect_or_fresh_db
()
virshle_core/src/database/connect.rs:42
↓ 1 callers
Method
connect_to_socket
After ssh connection is open. Connect to socket at path: self.uri.path.
virshle_network/src/connection/ssh.rs:127
↓ 1 callers
Function
convert_bad_json_to_good_json
* Internally used by `to_json` method. * * Flatten ovs-vsctl crazy json values into sane and usable values. * * BUG: OVS will return arrays for mis
virshle_core/src/network/ovs/convert.rs:105
↓ 1 callers
Method
create
* Create an init disk on host filesystem. */
virshle_core/src/hypervisor/disk/mod.rs:92
↓ 1 callers
Method
create_all
Create
virshle_core/src/config/definition.rs:35
↓ 1 callers
Function
create_disks
Copy template disks (if some) to vm storage directory and set file permissions.
virshle_core/src/config/template/vm.rs:141
↓ 1 callers
Method
create_dpdk_port
* Add vm port into ovs config. */
virshle_core/src/network/ovs/mod.rs:57
↓ 1 callers
Method
create_tap_port
* Add vm port into ovs config. */
virshle_core/src/network/ovs/mod.rs:41
↓ 1 callers
Method
create_vms
(&mut self)
virshle_core/src/config/definition.rs:39
← previous
next →
101–200 of 552, ranked by callers