Skip to content

virt.utils #

fn clear_str #

fn clear_str(s string) string

fn contains_ssh_port #

fn contains_ssh_port(forwarded_ports []string) bool

fn parse_container_state #

fn parse_container_state(state string) !ContainerStatus

fn parse_digest #

fn parse_digest(s string) !string

fn parse_labels #

fn parse_labels(s string) !map[string]string

fn parse_mounts #

fn parse_mounts(s string) ![]ContainerVolume

fn parse_networks #

fn parse_networks(s string) ![]string

fn parse_ports #

fn parse_ports(s string) ![]string

fn parse_size_mb #

fn parse_size_mb(size_ string) !int

convert strings as used by format from docker to MB in int

fn parse_time #

fn parse_time(s string) !time.Time

enum ContainerStatus #

enum ContainerStatus {
	up
	down
	restarting
	paused
	dead
	created
}

struct ContainerVolume #

struct ContainerVolume {
	src  string
	dest string
}