File: error.go

package info (click to toggle)
golang-gopkg-lxc-go-lxc.v2 0.0+git20190625.f4822c6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 404 kB
  • sloc: ansic: 500; makefile: 81
file content (77 lines) | stat: -rw-r--r-- 5,641 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Copyright © 2013, 2014, The Go-LXC Authors. All rights reserved.
// Use of this source code is governed by a LGPLv2.1
// license that can be found in the LICENSE file.

// +build linux,cgo

package lxc

const (
	ErrAddDeviceNodeFailed           = lxcError("adding device to container failed")
	ErrAllocationFailed              = lxcError("allocating memory failed")
	ErrAlreadyDefined                = lxcError("container already defined")
	ErrAlreadyFrozen                 = lxcError("container is already frozen")
	ErrAlreadyRunning                = lxcError("container is already running")
	ErrAttachFailed                  = lxcError("attaching to the container failed")
	ErrAttachInterfaceFailed         = lxcError("attaching specified netdev to the container failed")
	ErrBlkioUsage                    = lxcError("BlkioUsage for the container failed")
	ErrCheckpointFailed              = lxcError("checkpoint failed")
	ErrClearingConfigItemFailed      = lxcError("clearing config item for the container failed")
	ErrClearingCgroupItemFailed      = lxcError("clearing cgroup item for the container failed")
	ErrCloneFailed                   = lxcError("cloning the container failed")
	ErrCloseAllFdsFailed             = lxcError("setting close_all_fds flag for container failed")
	ErrCreateFailed                  = lxcError("creating the container failed")
	ErrCreateSnapshotFailed          = lxcError("snapshotting the container failed")
	ErrDaemonizeFailed               = lxcError("setting daemonize flag for container failed")
	ErrDestroyAllSnapshotsFailed     = lxcError("destroying all snapshots failed")
	ErrDestroyFailed                 = lxcError("destroying the container failed")
	ErrDestroySnapshotFailed         = lxcError("destroying the snapshot failed")
	ErrDestroyWithAllSnapshotsFailed = lxcError("destroying the container with all snapshots failed")
	ErrDetachInterfaceFailed         = lxcError("detaching specified netdev to the container failed")
	ErrExecuteFailed                 = lxcError("executing the command in a temporary container failed")
	ErrFreezeFailed                  = lxcError("freezing the container failed")
	ErrInsufficientNumberOfArguments = lxcError("insufficient number of arguments were supplied")
	ErrInterfaces                    = lxcError("getting interface names for the container failed")
	ErrIPAddresses                   = lxcError("getting IP addresses of the container failed")
	ErrIPAddress                     = lxcError("getting IP address on the interface of the container failed")
	ErrIPv4Addresses                 = lxcError("getting IPv4 addresses of the container failed")
	ErrIPv6Addresses                 = lxcError("getting IPv6 addresses of the container failed")
	ErrKMemLimit                     = lxcError("your kernel does not support cgroup kernel memory controller")
	ErrLoadConfigFailed              = lxcError("loading config file for the container failed")
	ErrMemLimit                      = lxcError("your kernel does not support cgroup memory controller")
	ErrMemorySwapLimit               = lxcError("your kernel does not support cgroup swap controller")
	ErrMethodNotAllowed              = lxcError("the requested method is not currently supported with unprivileged containers")
	ErrNewFailed                     = lxcError("allocating the container failed")
	ErrNoSnapshot                    = lxcError("container has no snapshot")
	ErrNotDefined                    = lxcError("container is not defined")
	ErrNotFrozen                     = lxcError("container is not frozen")
	ErrNotRunning                    = lxcError("container is not running")
	ErrNotSupported                  = lxcError("method is not supported by this LXC version")
	ErrRebootFailed                  = lxcError("rebooting the container failed")
	ErrRemoveDeviceNodeFailed        = lxcError("removing device from container failed")
	ErrRenameFailed                  = lxcError("renaming the container failed")
	ErrRestoreFailed                 = lxcError("restore failed")
	ErrRestoreSnapshotFailed         = lxcError("restoring the container failed")
	ErrSaveConfigFailed              = lxcError("saving config file for the container failed")
	ErrSettingCgroupItemFailed       = lxcError("setting cgroup item for the container failed")
	ErrSettingConfigItemFailed       = lxcError("setting config item for the container failed")
	ErrSettingConfigPathFailed       = lxcError("setting config file for the container failed")
	ErrSettingKMemoryLimitFailed     = lxcError("setting kernel memory limit for the container failed")
	ErrSettingMemoryLimitFailed      = lxcError("setting memory limit for the container failed")
	ErrSettingMemorySwapLimitFailed  = lxcError("setting memory+swap limit for the container failed")
	ErrSettingSoftMemoryLimitFailed  = lxcError("setting soft memory limit for the container failed")
	ErrShutdownFailed                = lxcError("shutting down the container failed")
	ErrSoftMemLimit                  = lxcError("your kernel does not support cgroup memory controller")
	ErrStartFailed                   = lxcError("starting the container failed")
	ErrStopFailed                    = lxcError("stopping the container failed")
	ErrTemplateNotAllowed            = lxcError("unprivileged users only allowed to use \"download\" template")
	ErrUnfreezeFailed                = lxcError("unfreezing the container failed")
	ErrUnknownBackendStore           = lxcError("unknown backend type")
	ErrReleaseFailed                 = lxcError("releasing the container failed")
)

type lxcError string

func (e lxcError) Error() string {
	return string(e)
}