| Top |
| GVirSandboxConfig * | gvir_sandbox_context_get_config () |
| gboolean | gvir_sandbox_context_start () |
| gboolean | gvir_sandbox_context_stop () |
| gboolean | gvir_sandbox_context_attach () |
| gboolean | gvir_sandbox_context_detach () |
| gboolean | gvir_sandbox_context_is_attached () |
| GVirDomain * | gvir_sandbox_context_get_domain () |
| GVirConnection * | gvir_sandbox_context_get_connection () |
| GVirSandboxConsole * | gvir_sandbox_context_get_log_console () |
| GVirSandboxConsole * | gvir_sandbox_context_get_shell_console () |
| GVirSandboxConfig * | config | Read / Write / Construct Only |
| GVirConnection * | connection | Read / Write / Construct Only |
| GVirDomain * | domain | Read / Write |
| #define | GVIR_SANDBOX_TYPE_CONTEXT_HANDLE |
| struct | GVirSandboxContext |
| struct | GVirSandboxContextClass |
| GVirSandboxContextPrivate |
GObject
╰── GVirSandboxContext
├── GVirSandboxContextInteractive
╰── GVirSandboxContextService
Provides a base class for implementing console based application sandboxes
The GVirSandboxContext object takes a GVirSandboxConfig instance, passing it to GVirSandboxBuilder instance to create a virtual machine, and then provides access to a GVirSandboxConsole instance for interacting with the sandboxed application's stdio.
GVirSandboxConfig *
gvir_sandbox_context_get_config (GVirSandboxContext *ctxt);
Retrieves the sandbox configuration
gboolean gvir_sandbox_context_start (GVirSandboxContext *ctxt,GError **error);
gboolean gvir_sandbox_context_stop (GVirSandboxContext *ctxt,GError **error);
gboolean gvir_sandbox_context_attach (GVirSandboxContext *ctxt,GError **error);
gboolean gvir_sandbox_context_detach (GVirSandboxContext *ctxt,GError **error);
gboolean
gvir_sandbox_context_is_attached (GVirSandboxContext *ctxt);
GVirDomain * gvir_sandbox_context_get_domain (GVirSandboxContext *ctxt,GError **error);
Retrieves the sandbox domain (if running)
GVirConnection *
gvir_sandbox_context_get_connection (GVirSandboxContext *ctxt);
Retrieves the sandbox connection
GVirSandboxConsole * gvir_sandbox_context_get_log_console (GVirSandboxContext *ctxt,GError **error);
GVirSandboxConsole * gvir_sandbox_context_get_shell_console (GVirSandboxContext *ctxt,GError **error);
#define GVIR_SANDBOX_TYPE_CONTEXT_HANDLE (gvir_sandbox_context_handle_get_type ())
struct GVirSandboxContextClass {
GObjectClass parent_class;
/* Class method overrides */
gboolean (*start)(GVirSandboxContext *ctxt, GError **error);
gboolean (*stop)(GVirSandboxContext *ctxt, GError **error);
gboolean (*attach)(GVirSandboxContext *ctxt, GError **error);
gboolean (*detach)(GVirSandboxContext *ctxt, GError **error);
gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};
“config” property“config” GVirSandboxConfig *
The sandbox configuration.
Flags: Read / Write / Construct Only
“connection” property “connection” GVirConnection *
The sandbox connection.
Flags: Read / Write / Construct Only