[lxc-devel] [lxd/master] instance: Adds new type instance

tomponline on Github lxc-bot at linuxcontainers.org
Mon Jul 15 12:46:10 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 546 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190715/e2e59fea/attachment.bin>
-------------- next part --------------
From a3d14a33862f61a338c9386c0f6be9dfe492d371 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parrott at canonical.com>
Date: Thu, 4 Jul 2019 09:37:16 +0100
Subject: [PATCH] instance: Adds new type instance

Defines constants for the different instance types and will allow us to expose name, type and other properties to other packages (such as device package).

Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
---
 lxd/instance/instance.go | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 lxd/instance/instance.go

diff --git a/lxd/instance/instance.go b/lxd/instance/instance.go
new file mode 100644
index 0000000000..1dff9a626d
--- /dev/null
+++ b/lxd/instance/instance.go
@@ -0,0 +1,4 @@
+package instance
+
+// TypeContainer represents a container instance type.
+const TypeContainer = "container"


More information about the lxc-devel mailing list