types

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TFD_CLOEXEC             = unix.O_CLOEXEC
	TFD_NONBLOCK            = unix.O_NONBLOCK
	TFD_TIMER_ABSTIME       = 1 << 0
	TFD_TIMER_CANCEL_ON_SET = 1 << 1
)
View Source
const (
	UNK             = -1
	OK              = 0
	EPERM           = 1
	ENOENT          = 2
	ESRCH           = 3
	EINTR           = 4
	EIO             = 5
	ENXIO           = 6
	E2BIG           = 7
	ENOEXEC         = 8
	EBADF           = 9
	ECHILD          = 10
	EAGAIN          = 11
	ENOMEM          = 12
	EACCES          = 13
	EFAULT          = 14
	ENOTBLK         = 15
	EBUSY           = 16
	EEXIST          = 17
	EXDEV           = 18
	ENODEV          = 19
	ENOTDIR         = 20
	EISDIR          = 21
	EINVAL          = 22
	ENFILE          = 23
	EMFILE          = 24
	ENOTTY          = 25
	ETXTBSY         = 26
	EFBIG           = 27
	ENOSPC          = 28
	ESPIPE          = 29
	EROFS           = 30
	EMLINK          = 31
	EPIPE           = 32
	EDOM            = 33
	ERANGE          = 34
	EDEADLK         = 35
	ENAMETOOLONG    = 36
	ENOLCK          = 37
	ENOSYS          = 38
	ENOTEMPTY       = 39
	ELOOP           = 40
	EWOULDBLOCK     = 11
	ENOMSG          = 42
	EIDRM           = 43
	ECHRNG          = 44
	EL2NSYNC        = 45
	EL3HLT          = 46
	EL3RST          = 47
	ELNRNG          = 48
	EUNATCH         = 49
	ENOCSI          = 50
	EL2HLT          = 51
	EBADE           = 52
	EBADR           = 53
	EXFULL          = 54
	ENOANO          = 55
	EBADRQC         = 56
	EBADSLT         = 57
	EBFONT          = 59
	ENOSTR          = 60
	ENODATA         = 61
	ETIME           = 62
	ENOSR           = 63
	ENONET          = 64
	ENOPKG          = 65
	EREMOTE         = 66
	ENOLINK         = 67
	EADV            = 68
	ESRMNT          = 69
	ECOMM           = 70
	EPROTO          = 71
	EMULTIHOP       = 72
	EDOTDOT         = 73
	EBADMSG         = 74
	EOVERFLOW       = 75
	ENOTUNIQ        = 76
	EBADFD          = 77
	EREMCHG         = 78
	ELIBACC         = 79
	ELIBBAD         = 80
	ELIBSCN         = 81
	ELIBMAX         = 82
	ELIBEXEC        = 83
	EILSEQ          = 84
	ERESTART        = 85
	ESTRPIPE        = 86
	EUSERS          = 87
	ENOTSOCK        = 88
	EDESTADDRREQ    = 89
	EMSGSIZE        = 90
	EPROTOTYPE      = 91
	ENOPROTOOPT     = 92
	EPROTONOSUPPORT = 93
	ESOCKTNOSUPPORT = 94
	EOPNOTSUPP      = 95
	EPFNOSUPPORT    = 96
	EAFNOSUPPORT    = 97
	EADDRINUSE      = 98
	EADDRNOTAVAIL   = 99
	ENETDOWN        = 100
	ENETUNREACH     = 101
	ENETRESET       = 102
	ECONNABORTED    = 103
	ECONNRESET      = 104
	ENOBUFS         = 105
	EISCONN         = 106
	ENOTCONN        = 107
	ESHUTDOWN       = 108
	ETOOMANYREFS    = 109
	ETIMEDOUT       = 110
	ECONNREFUSED    = 111
	EHOSTDOWN       = 112
	EHOSTUNREACH    = 113
	EALREADY        = 114
	EINPROGRESS     = 115
	ESTALE          = 116
	EUCLEAN         = 117
	ENOTNAM         = 118
	ENAVAIL         = 119
	EISNAM          = 120
	EDQUOT          = 122
	ENOKEY          = 126
	ERFKILL         = 132
	ENOMEDIUM       = 123
	EREMOTEIO       = 121
	ECANCELED       = 125
	EHWPOISON       = 133
	EOWNERDEAD      = 130
	EMEDIUMTYPE     = 124
	EKEYEXPIRED     = 127
	EKEYREVOKED     = 128
	EKEYREJECTED    = 129
	ENOTRECOVERABLE = 131
	ERESTARTSYS     = 512
)
View Source
const (
	// PTRACE_SEIZE ...
	PTRACE_SEIZE = 0x4206
	// PTRACE_INTERRUPT ...
	PTRACE_INTERRUPT = 0x4207
	// PTRACE_LISTEN ...
	PTRACE_LISTEN = 0x4208
	// PTRACE_PEEKSIGINFO ...
	PTRACE_PEEKSIGINFO = 0x4209
	// PTRACE_SECCOMP_GET_FILTER ...
	PTRACE_SECCOMP_GET_FILTER = 0x420c
)
View Source
const CLONE_NEWCGROUP = 0x02000000

Variables

This section is empty.

Functions

func MakeC32

func MakeC32(data unsafe.Pointer) int32

func MakeC64

func MakeC64(data unsafe.Pointer) int64

func MakeCBytes

func MakeCBytes(data unsafe.Pointer, len int) []byte

func MakeCString

func MakeCString(data unsafe.Pointer, len int) string

func MakeCU32

func MakeCU32(data unsafe.Pointer) uint32

func MakeCU64

func MakeCU64(data unsafe.Pointer) uint64

Types

type Buffer

type Buffer []byte

type CloneFlags

type CloneFlags int

func (CloneFlags) Parse

func (flags CloneFlags) Parse() []string

func (CloneFlags) String

func (flags CloneFlags) String() string

type Container

type Container struct {
	ID           string            `json:"id,omitempty"`
	Pod          string            `json:"pod,omitempty"`
	PodSandboxID string            `json:"sandbox-id,omitempty"`
	Name         string            `json:"name,omitempty"`
	Image        string            `json:"image,omitempty"`
	Namespace    string            `json:"namespace,omitempty"`
	Labels       map[string]string `json:"labels,omitempty"`
	Pid          int               `json:"pid,omitempty"`
	PidNamespace int               `json:"pid-namespace,omitempty"`
}

func (*Container) Copy

func (c *Container) Copy() *Container

func (*Container) FQDN

func (c *Container) FQDN() string

type DirFD

type DirFD int

func (DirFD) String

func (d DirFD) String() string

type Errno

type Errno int

func (Errno) ColorString

func (e Errno) ColorString() string

func (Errno) MarshalJSON

func (e Errno) MarshalJSON() ([]byte, error)

func (Errno) String

func (e Errno) String() string

func (*Errno) UnmarshalJSON

func (e *Errno) UnmarshalJSON(data []byte) error

type FileFlags

type FileFlags int

func (FileFlags) MarshalJSON

func (f FileFlags) MarshalJSON() ([]byte, error)

func (FileFlags) Parse

func (flags FileFlags) Parse() []string

func (FileFlags) String

func (flags FileFlags) String() string

func (*FileFlags) UnmarshalJSON

func (f *FileFlags) UnmarshalJSON(data []byte) error

type InputFD

type InputFD int

used to mark a file-descriptor as an INPUT type, such as: bind(<INPUT FD>, ...)

type Itimerspec

type Itimerspec struct {
	Interval Timespec
	Value    Timespec
}

type MsgFlags

type MsgFlags int

func (MsgFlags) MarshalJSON

func (flags MsgFlags) MarshalJSON() ([]byte, error)

func (MsgFlags) Parse

func (flags MsgFlags) Parse() []string

func (MsgFlags) String

func (flags MsgFlags) String() string

func (*MsgFlags) UnmarshalJSON

func (f *MsgFlags) UnmarshalJSON(data []byte) error

type OutputFD

type OutputFD int

used to mark a file-descriptor as an OUTPUT type, such as: <OUTPUT FD> = socket(...)

type PtraceFlags

type PtraceFlags int

func (PtraceFlags) Parse

func (flags PtraceFlags) Parse() []string

func (PtraceFlags) String

func (flags PtraceFlags) String() string

type SockAddr

type SockAddr syscall.RawSockaddr

SockAddr our local version of RawSockadddr that we can manipulate

func (*SockAddr) MarshalJSON

func (s *SockAddr) MarshalJSON() ([]byte, error)

func (*SockAddr) String

func (s *SockAddr) String() string

type TFDClock

type TFDClock int

type TimerFlags

type TimerFlags int

func (TimerFlags) MarshalJSON

func (f TimerFlags) MarshalJSON() ([]byte, error)

func (TimerFlags) Parse

func (f TimerFlags) Parse() []string

func (TimerFlags) String

func (f TimerFlags) String() string

func (*TimerFlags) UnmarshalJSON

func (f *TimerFlags) UnmarshalJSON(data []byte) error

type Timespec

type Timespec struct {
	Sec  int64
	Nsec int64
}

type UmountFlags

type UmountFlags int

func (UmountFlags) MarshalJSON

func (flags UmountFlags) MarshalJSON() ([]byte, error)

func (UmountFlags) Parse

func (flags UmountFlags) Parse() []string

func (UmountFlags) String

func (flags UmountFlags) String() string

func (*UmountFlags) UnmarshalJSON

func (f *UmountFlags) UnmarshalJSON(data []byte) error

type XmodeFlags

type XmodeFlags int

func (XmodeFlags) Parse

func (flags XmodeFlags) Parse() []string

func (XmodeFlags) String

func (flags XmodeFlags) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL