Debian Codegraph @

error.go

raw symbols SCIP
1 // Copyright © 2013, 2014, The Go-LXC Authors. All rights reserved.
2 // Use of this source code is governed by a LGPLv2.1
3 // license that can be found in the LICENSE file.
4
5 //go:build linux && cgo
6 // +build linux,cgo
7
8 package lxc
9
10 const (
11 // ErrAddDeviceNodeFailed - adding device to container failed
12 ErrAddDeviceNodeFailed = lxcError("adding device to container failed")
13
14 // ErrAllocationFailed - allocating memory failed
15 ErrAllocationFailed = lxcError("allocating memory failed")
16
17 // ErrAlreadyDefined - container already defined
18 ErrAlreadyDefined = lxcError("container already defined")
19
20 // ErrAlreadyFrozen - container is already frozen
21 ErrAlreadyFrozen = lxcError("container is already frozen")
22
23 // ErrAlreadyRunning - container is already running
24 ErrAlreadyRunning = lxcError("container is already running")
25
26 // ErrAttachFailed - attaching to the container failed
27 ErrAttachFailed = lxcError("attaching to the container failed")
28
29 // ErrAttachInterfaceFailed - attaching specified netdev to the container failed
30 ErrAttachInterfaceFailed = lxcError("attaching specified netdev to the container failed")
31
32 // ErrBlkioUsage - BlkioUsage for the container failed
33 ErrBlkioUsage = lxcError("BlkioUsage for the container failed")
34
35 // ErrCheckpointFailed - checkpoint failed
36 ErrCheckpointFailed = lxcError("checkpoint failed")
37
38 // ErrClearingConfigItemFailed - clearing config item for the container failed
39 ErrClearingConfigItemFailed = lxcError("clearing config item for the container failed")
40
41 // ErrClearingCgroupItemFailed - clearing cgroup item for the container failed
42 ErrClearingCgroupItemFailed = lxcError("clearing cgroup item for the container failed")
43
44 // ErrCloneFailed - cloning the container failed
45 ErrCloneFailed = lxcError("cloning the container failed")
46
47 // ErrCloseAllFdsFailed - setting close_all_fds flag for container failed
48 ErrCloseAllFdsFailed = lxcError("setting close_all_fds flag for container failed")
49
50 // ErrCreateFailed - creating the container failed
51 ErrCreateFailed = lxcError("creating the container failed")
52
53 // ErrCreateSnapshotFailed - snapshotting the container failed
54 ErrCreateSnapshotFailed = lxcError("snapshotting the container failed")
55
56 // ErrDaemonizeFailed - setting daemonize flag for container failed
57 ErrDaemonizeFailed = lxcError("setting daemonize flag for container failed")
58
59 // ErrDestroyAllSnapshotsFailed - destroying all snapshots failed
60 ErrDestroyAllSnapshotsFailed = lxcError("destroying all snapshots failed")
61
62 // ErrDestroyFailed - destroying the container failed
63 ErrDestroyFailed = lxcError("destroying the container failed")
64
65 // ErrDestroySnapshotFailed - destroying the snapshot failed
66 ErrDestroySnapshotFailed = lxcError("destroying the snapshot failed")
67
68 // ErrDestroyWithAllSnapshotsFailed - destroying the container with all snapshots failed
69 ErrDestroyWithAllSnapshotsFailed = lxcError("destroying the container with all snapshots failed")
70
71 // ErrDetachInterfaceFailed - detaching specified netdev to the container failed
72 ErrDetachInterfaceFailed = lxcError("detaching specified netdev to the container failed")
73
74 // ErrExecuteFailed - executing the command in a temporary container failed
75 ErrExecuteFailed = lxcError("executing the command in a temporary container failed")
76
77 // ErrFreezeFailed - freezing the container failed
78 ErrFreezeFailed = lxcError("freezing the container failed")
79
80 // ErrInsufficientNumberOfArguments - insufficient number of arguments were supplied
81 ErrInsufficientNumberOfArguments = lxcError("insufficient number of arguments were supplied")
82
83 // ErrInterfaces - getting interface names for the container failed
84 ErrInterfaces = lxcError("getting interface names for the container failed")
85
86 // ErrIPAddresses - getting IP addresses of the container failed
87 ErrIPAddresses = lxcError("getting IP addresses of the container failed")
88
89 // ErrIPAddress - getting IP address on the interface of the container failed
90 ErrIPAddress = lxcError("getting IP address on the interface of the container failed")
91
92 // ErrIPv4Addresses - getting IPv4 addresses of the container failed
93 ErrIPv4Addresses = lxcError("getting IPv4 addresses of the container failed")
94
95 // ErrIPv6Addresses - getting IPv6 addresses of the container failed
96 ErrIPv6Addresses = lxcError("getting IPv6 addresses of the container failed")
97
98 // ErrKMemLimit - your kernel does not support cgroup kernel memory controller
99 ErrKMemLimit = lxcError("your kernel does not support cgroup kernel memory controller")
100
101 // ErrLoadConfigFailed - loading config file for the container failed
102 ErrLoadConfigFailed = lxcError("loading config file for the container failed")
103
104 // ErrMemLimit - your kernel does not support cgroup memory controller
105 ErrMemLimit = lxcError("your kernel does not support cgroup memory controller")
106
107 // ErrMemorySwapLimit - your kernel does not support cgroup swap controller
108 ErrMemorySwapLimit = lxcError("your kernel does not support cgroup swap controller")
109
110 // ErrMethodNotAllowed - the requested method is not currently supported with unprivileged containers
111 ErrMethodNotAllowed = lxcError("the requested method is not currently supported with unprivileged containers")
112
113 // ErrNewFailed - allocating the container failed
114 ErrNewFailed = lxcError("allocating the container failed")
115
116 // ErrNoSnapshot - container has no snapshot
117 ErrNoSnapshot = lxcError("container has no snapshot")
118
119 // ErrNotDefined - container is not defined
120 ErrNotDefined = lxcError("container is not defined")
121
122 // ErrNotFrozen - container is not frozen
123 ErrNotFrozen = lxcError("container is not frozen")
124
125 // ErrNotRunning - container is not running
126 ErrNotRunning = lxcError("container is not running")
127
128 // ErrNotSupported - method is not supported by this LXC version
129 ErrNotSupported = lxcError("method is not supported by this LXC version")
130
131 // ErrRebootFailed - rebooting the container failed
132 ErrRebootFailed = lxcError("rebooting the container failed")
133
134 // ErrRemoveDeviceNodeFailed - removing device from container failed
135 ErrRemoveDeviceNodeFailed = lxcError("removing device from container failed")
136
137 // ErrRenameFailed - renaming the container failed
138 ErrRenameFailed = lxcError("renaming the container failed")
139
140 // ErrRestoreFailed - restore failed
141 ErrRestoreFailed = lxcError("restore failed")
142
143 // ErrRestoreSnapshotFailed - restoring the container failed
144 ErrRestoreSnapshotFailed = lxcError("restoring the container failed")
145
146 // ErrSaveConfigFailed - saving config file for the container failed
147 ErrSaveConfigFailed = lxcError("saving config file for the container failed")
148
149 // ErrSettingCgroupItemFailed - setting cgroup item for the container failed
150 ErrSettingCgroupItemFailed = lxcError("setting cgroup item for the container failed")
151
152 // ErrSettingConfigItemFailed - setting config item for the container failed
153 ErrSettingConfigItemFailed = lxcError("setting config item for the container failed")
154
155 // ErrSettingConfigPathFailed - setting config file for the container failed
156 ErrSettingConfigPathFailed = lxcError("setting config file for the container failed")
157
158 // ErrSettingKMemoryLimitFailed - setting kernel memory limit for the container failed
159 ErrSettingKMemoryLimitFailed = lxcError("setting kernel memory limit for the container failed")
160
161 // ErrSettingMemoryLimitFailed - setting memory limit for the container failed
162 ErrSettingMemoryLimitFailed = lxcError("setting memory limit for the container failed")
163
164 // ErrSettingMemorySwapLimitFailed - setting memory+swap limit for the container failed
165 ErrSettingMemorySwapLimitFailed = lxcError("setting memory+swap limit for the container failed")
166
167 // ErrSettingSoftMemoryLimitFailed - setting soft memory limit for the container failed
168 ErrSettingSoftMemoryLimitFailed = lxcError("setting soft memory limit for the container failed")
169
170 // ErrShutdownFailed - shutting down the container failed
171 ErrShutdownFailed = lxcError("shutting down the container failed")
172
173 // ErrSoftMemLimit - your kernel does not support cgroup memory controller
174 ErrSoftMemLimit = lxcError("your kernel does not support cgroup memory controller")
175
176 // ErrStartFailed - starting the container failed
177 ErrStartFailed = lxcError("starting the container failed")
178
179 // ErrStopFailed - stopping the container failed
180 ErrStopFailed = lxcError("stopping the container failed")
181
182 // ErrTemplateNotAllowed - unprivileged users only allowed to use "download" template
183 ErrTemplateNotAllowed = lxcError("unprivileged users only allowed to use \"download\" template")
184
185 // ErrUnfreezeFailed - unfreezing the container failed
186 ErrUnfreezeFailed = lxcError("unfreezing the container failed")
187
188 // ErrUnknownBackendStore - unknown backend type
189 ErrUnknownBackendStore = lxcError("unknown backend type")
190
191 // ErrReleaseFailed - releasing the container failed
192 ErrReleaseFailed = lxcError("releasing the container failed")
193 )
194
195 type lxcError string
196
197 func (e lxcError) Error() string {
198 return string(e)
199 }