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 lxcscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/
9
10 const (
11 // ErrAddDeviceNodeFailed - adding device to container failed
12 ErrAddDeviceNodeFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrAddDeviceNodeFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("adding device to container failed")
13
14 // ErrAllocationFailed - allocating memory failed
15 ErrAllocationFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrAllocationFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("allocating memory failed")
16
17 // ErrAlreadyDefined - container already defined
18 ErrAlreadyDefinedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrAlreadyDefined. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("container already defined")
19
20 // ErrAlreadyFrozen - container is already frozen
21 ErrAlreadyFrozenscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrAlreadyFrozen. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("container is already frozen")
22
23 // ErrAlreadyRunning - container is already running
24 ErrAlreadyRunningscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrAlreadyRunning. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("container is already running")
25
26 // ErrAttachFailed - attaching to the container failed
27 ErrAttachFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrAttachFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("attaching to the container failed")
28
29 // ErrAttachInterfaceFailed - attaching specified netdev to the container failed
30 ErrAttachInterfaceFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrAttachInterfaceFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("attaching specified netdev to the container failed")
31
32 // ErrBlkioUsage - BlkioUsage for the container failed
33 ErrBlkioUsagescip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrBlkioUsage. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("BlkioUsage for the container failed")
34
35 // ErrCheckpointFailed - checkpoint failed
36 ErrCheckpointFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrCheckpointFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("checkpoint failed")
37
38 // ErrClearingConfigItemFailed - clearing config item for the container failed
39 ErrClearingConfigItemFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrClearingConfigItemFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("clearing config item for the container failed")
40
41 // ErrClearingCgroupItemFailed - clearing cgroup item for the container failed
42 ErrClearingCgroupItemFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrClearingCgroupItemFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("clearing cgroup item for the container failed")
43
44 // ErrCloneFailed - cloning the container failed
45 ErrCloneFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrCloneFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("cloning the container failed")
46
47 // ErrCloseAllFdsFailed - setting close_all_fds flag for container failed
48 ErrCloseAllFdsFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrCloseAllFdsFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("setting close_all_fds flag for container failed")
49
50 // ErrCreateFailed - creating the container failed
51 ErrCreateFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrCreateFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("creating the container failed")
52
53 // ErrCreateSnapshotFailed - snapshotting the container failed
54 ErrCreateSnapshotFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrCreateSnapshotFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("snapshotting the container failed")
55
56 // ErrDaemonizeFailed - setting daemonize flag for container failed
57 ErrDaemonizeFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrDaemonizeFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("setting daemonize flag for container failed")
58
59 // ErrDestroyAllSnapshotsFailed - destroying all snapshots failed
60 ErrDestroyAllSnapshotsFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrDestroyAllSnapshotsFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("destroying all snapshots failed")
61
62 // ErrDestroyFailed - destroying the container failed
63 ErrDestroyFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrDestroyFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("destroying the container failed")
64
65 // ErrDestroySnapshotFailed - destroying the snapshot failed
66 ErrDestroySnapshotFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrDestroySnapshotFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("destroying the snapshot failed")
67
68 // ErrDestroyWithAllSnapshotsFailed - destroying the container with all snapshots failed
69 ErrDestroyWithAllSnapshotsFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrDestroyWithAllSnapshotsFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("destroying the container with all snapshots failed")
70
71 // ErrDetachInterfaceFailed - detaching specified netdev to the container failed
72 ErrDetachInterfaceFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrDetachInterfaceFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("detaching specified netdev to the container failed")
73
74 // ErrExecuteFailed - executing the command in a temporary container failed
75 ErrExecuteFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrExecuteFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("executing the command in a temporary container failed")
76
77 // ErrFreezeFailed - freezing the container failed
78 ErrFreezeFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrFreezeFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("freezing the container failed")
79
80 // ErrInsufficientNumberOfArguments - insufficient number of arguments were supplied
81 ErrInsufficientNumberOfArgumentsscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrInsufficientNumberOfArguments. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("insufficient number of arguments were supplied")
82
83 // ErrInterfaces - getting interface names for the container failed
84 ErrInterfacesscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrInterfaces. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("getting interface names for the container failed")
85
86 // ErrIPAddresses - getting IP addresses of the container failed
87 ErrIPAddressesscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrIPAddresses. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("getting IP addresses of the container failed")
88
89 // ErrIPAddress - getting IP address on the interface of the container failed
90 ErrIPAddressscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrIPAddress. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("getting IP address on the interface of the container failed")
91
92 // ErrIPv4Addresses - getting IPv4 addresses of the container failed
93 ErrIPv4Addressesscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrIPv4Addresses. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("getting IPv4 addresses of the container failed")
94
95 // ErrIPv6Addresses - getting IPv6 addresses of the container failed
96 ErrIPv6Addressesscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrIPv6Addresses. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("getting IPv6 addresses of the container failed")
97
98 // ErrKMemLimit - your kernel does not support cgroup kernel memory controller
99 ErrKMemLimitscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrKMemLimit. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("your kernel does not support cgroup kernel memory controller")
100
101 // ErrLoadConfigFailed - loading config file for the container failed
102 ErrLoadConfigFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrLoadConfigFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("loading config file for the container failed")
103
104 // ErrMemLimit - your kernel does not support cgroup memory controller
105 ErrMemLimitscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrMemLimit. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("your kernel does not support cgroup memory controller")
106
107 // ErrMemorySwapLimit - your kernel does not support cgroup swap controller
108 ErrMemorySwapLimitscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrMemorySwapLimit. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("your kernel does not support cgroup swap controller")
109
110 // ErrMethodNotAllowed - the requested method is not currently supported with unprivileged containers
111 ErrMethodNotAllowedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrMethodNotAllowed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("the requested method is not currently supported with unprivileged containers")
112
113 // ErrNewFailed - allocating the container failed
114 ErrNewFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrNewFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("allocating the container failed")
115
116 // ErrNoSnapshot - container has no snapshot
117 ErrNoSnapshotscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrNoSnapshot. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("container has no snapshot")
118
119 // ErrNotDefined - container is not defined
120 ErrNotDefinedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrNotDefined. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("container is not defined")
121
122 // ErrNotFrozen - container is not frozen
123 ErrNotFrozenscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrNotFrozen. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("container is not frozen")
124
125 // ErrNotRunning - container is not running
126 ErrNotRunningscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrNotRunning. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("container is not running")
127
128 // ErrNotSupported - method is not supported by this LXC version
129 ErrNotSupportedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrNotSupported. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("method is not supported by this LXC version")
130
131 // ErrRebootFailed - rebooting the container failed
132 ErrRebootFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrRebootFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("rebooting the container failed")
133
134 // ErrRemoveDeviceNodeFailed - removing device from container failed
135 ErrRemoveDeviceNodeFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrRemoveDeviceNodeFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("removing device from container failed")
136
137 // ErrRenameFailed - renaming the container failed
138 ErrRenameFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrRenameFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("renaming the container failed")
139
140 // ErrRestoreFailed - restore failed
141 ErrRestoreFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrRestoreFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("restore failed")
142
143 // ErrRestoreSnapshotFailed - restoring the container failed
144 ErrRestoreSnapshotFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrRestoreSnapshotFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("restoring the container failed")
145
146 // ErrSaveConfigFailed - saving config file for the container failed
147 ErrSaveConfigFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrSaveConfigFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("saving config file for the container failed")
148
149 // ErrSettingCgroupItemFailed - setting cgroup item for the container failed
150 ErrSettingCgroupItemFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrSettingCgroupItemFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("setting cgroup item for the container failed")
151
152 // ErrSettingConfigItemFailed - setting config item for the container failed
153 ErrSettingConfigItemFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrSettingConfigItemFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("setting config item for the container failed")
154
155 // ErrSettingConfigPathFailed - setting config file for the container failed
156 ErrSettingConfigPathFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrSettingConfigPathFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("setting config file for the container failed")
157
158 // ErrSettingKMemoryLimitFailed - setting kernel memory limit for the container failed
159 ErrSettingKMemoryLimitFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrSettingKMemoryLimitFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("setting kernel memory limit for the container failed")
160
161 // ErrSettingMemoryLimitFailed - setting memory limit for the container failed
162 ErrSettingMemoryLimitFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrSettingMemoryLimitFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("setting memory limit for the container failed")
163
164 // ErrSettingMemorySwapLimitFailed - setting memory+swap limit for the container failed
165 ErrSettingMemorySwapLimitFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrSettingMemorySwapLimitFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("setting memory+swap limit for the container failed")
166
167 // ErrSettingSoftMemoryLimitFailed - setting soft memory limit for the container failed
168 ErrSettingSoftMemoryLimitFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrSettingSoftMemoryLimitFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("setting soft memory limit for the container failed")
169
170 // ErrShutdownFailed - shutting down the container failed
171 ErrShutdownFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrShutdownFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("shutting down the container failed")
172
173 // ErrSoftMemLimit - your kernel does not support cgroup memory controller
174 ErrSoftMemLimitscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrSoftMemLimit. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("your kernel does not support cgroup memory controller")
175
176 // ErrStartFailed - starting the container failed
177 ErrStartFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrStartFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("starting the container failed")
178
179 // ErrStopFailed - stopping the container failed
180 ErrStopFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrStopFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("stopping the container failed")
181
182 // ErrTemplateNotAllowed - unprivileged users only allowed to use "download" template
183 ErrTemplateNotAllowedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrTemplateNotAllowed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("unprivileged users only allowed to use \"download\" template")
184
185 // ErrUnfreezeFailed - unfreezing the container failed
186 ErrUnfreezeFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrUnfreezeFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("unfreezing the container failed")
187
188 // ErrUnknownBackendStore - unknown backend type
189 ErrUnknownBackendStorescip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrUnknownBackendStore. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("unknown backend type")
190
191 // ErrReleaseFailed - releasing the container failed
192 ErrReleaseFailedscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/ErrReleaseFailed. = lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#("releasing the container failed")
193 )
194
195 type lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError# string
196
197 func (e lxcErrorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#) Errorscip-go gomod github.com/lxc/go-lxc . `github.com/lxc/go-lxc`/lxcError#Error().() string {
198 return string(e)
199 }