implementations

package
v0.0.0-...-d6a869a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PassThrough_Handler = &PassThrough{
	domain.HandlerBase{
		Name:    "PassThrough",
		Path:    "*",
		Enabled: true,
	},
}
View Source
var ProcSwaps_Handler = &ProcSwaps{
	domain.HandlerBase{
		Name:    "ProcSwaps",
		Path:    "/proc/swaps",
		Enabled: true,
	},
}
View Source
var ProcSysFs_Handler = &ProcSysFs{
	domain.HandlerBase{
		Name:    "ProcSysFs",
		Path:    "/proc/sys/fs",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"file-max": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"nr_open": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"protected_hardlinks": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0600)),
				Enabled: true,
				Size:    1024,
			},
			"protected_symlinks": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0600)),
				Enabled: true,
				Size:    1024,
			},
		},
	},
}
View Source
var ProcSysKernelYama_Handler = &ProcSysKernelYama{
	domain.HandlerBase{
		Name:    "ProcSysKernelYama",
		Path:    "/proc/sys/kernel/yama",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"ptrace_scope": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
		},
	},
}
View Source
var ProcSysKernel_Handler = &ProcSysKernel{
	domain.HandlerBase{
		Name:    "ProcSysKernel",
		Path:    "/proc/sys/kernel",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"domainname": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    4096,
			},
			"hostname": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    4096,
			},
			"kptr_restrict": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
			"dmesg_restrict": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
			"ngroups_max": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0444)),
				Enabled: true,
				Size:    1024,
			},
			"cap_last_cap": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0444)),
				Enabled: true,
				Size:    1024,
			},
			"panic": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    4096,
			},
			"panic_on_oops": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
			"printk": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"sysrq": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"pid_max": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
		},
	},
}
View Source
var ProcSysNetCore_Handler = &ProcSysNetCore{
	domain.HandlerBase{
		Name:    "ProcSysNetCore",
		Path:    "/proc/sys/net/core",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"default_qdisc": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"somaxconn": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
		},
	},
}
View Source
var ProcSysNetIpv4Neigh_Handler = &ProcSysNetIpv4Neigh{
	domain.HandlerBase{
		Name:    "ProcSysNetIpv4Neigh",
		Path:    "/proc/sys/net/ipv4/neigh",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"default": {
				Kind:    domain.DirEmuResource,
				Mode:    os.FileMode(uint32(0555)),
				Enabled: true,
			},
			"default/gc_thresh1": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"default/gc_thresh2": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"default/gc_thresh3": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
		},
	},
}
View Source
var ProcSysNetIpv4Vs_Handler = &ProcSysNetIpv4Vs{
	domain.HandlerBase{
		Name:    "ProcSysNetIpv4Vs",
		Path:    "/proc/sys/net/ipv4/vs",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"conntrack": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
			"conn_reuse_mode": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
			"expire_nodest_conn": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
			"expire_quiescent_template": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
		},
	},
}
View Source
var ProcSysNetIpv4_Handler = &ProcSysNetIpv4{
	domain.HandlerBase{
		Name:    "ProcSysNetIpv4",
		Path:    "/proc/sys/net/ipv4",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"ping_group_range": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
		},
	},
}
View Source
var ProcSysNetNetfilter_Handler = &ProcSysNetNetfilter{
	domain.HandlerBase{
		Name:    "ProcSysNetNetfilter",
		Path:    "/proc/sys/net/netfilter",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"nf_conntrack_max": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"nf_conntrack_generic_timeout": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"nf_conntrack_tcp_be_liberal": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
			"nf_conntrack_tcp_timeout_established": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
			"nf_conntrack_tcp_timeout_close_wait": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
		},
	},
}
View Source
var ProcSysNetUnix_Handler = &ProcSysNetUnix{
	domain.HandlerBase{
		Name:    "ProcSysNetUnix",
		Path:    "/proc/sys/net/unix",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"max_dgram_qlen": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
		},
	},
}
View Source
var ProcSysVm_Handler = &ProcSysVm{
	domain.HandlerBase{
		Name:    "ProcSysVm",
		Path:    "/proc/sys/vm",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"overcommit_memory": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    2,
			},
			"mmap_min_addr": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0644)),
				Enabled: true,
				Size:    1024,
			},
		},
	},
}
View Source
var ProcSys_Handler = &ProcSys{
	domain.HandlerBase{
		Name:    "ProcSys",
		Path:    "/proc/sys",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			".": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0555)),
				Enabled: true,
			},
		},
	},
}
View Source
var ProcUptime_Handler = &ProcUptime{
	domain.HandlerBase{
		Name:    "ProcUptime",
		Path:    "/proc/uptime",
		Enabled: true,
	},
}
View Source
var Root_Handler = &Root{
	domain.HandlerBase{
		Name:    "root",
		Path:    "/",
		Enabled: true,
	},
}
View Source
var SysDevicesVirtualDmiId_Handler = &SysDevicesVirtualDmiId{
	domain.HandlerBase{
		Name:    "SysDevicesVirtualDmiId",
		Path:    "/sys/devices/virtual/dmi/id",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			".": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0755)),
				Enabled: true,
			},
			"product_uuid": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0400)),
				Size:    4096,
				Enabled: true,
			},
		},
	},
}
View Source
var SysDevicesVirtualDmi_Handler = &SysDevicesVirtualDmi{
	domain.HandlerBase{
		Name:    "SysDevicesVirtualDmi",
		Path:    "/sys/devices/virtual/dmi",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			".": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0755)),
				Enabled: true,
			},
			"id": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0755)),
				Enabled: true,
			},
		},
	},
}
View Source
var SysDevicesVirtual_Handler = &SysDevicesVirtual{
	domain.HandlerBase{
		Name:    "SysDevicesVirtual",
		Path:    "/sys/devices/virtual",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			".": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0755)),
				Enabled: true,
			},
			"dmi": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0755)),
				Enabled: true,
			},
		},
	},
	map[string]bool{
		"net": true,
	},
}
View Source
var SysKernel_Handler = &SysKernel{
	domain.HandlerBase{
		Name:    "SysKernel",
		Path:    "/sys/kernel",
		Enabled: true,

		EmuResourceMap: map[string]*domain.EmuResource{
			"config": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0755)),
				Enabled: true,
			},
			"debug": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0700)),
				Enabled: true,
			},
			"tracing": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0700)),
				Enabled: true,
			},
			"security": {
				Kind:    domain.DirEmuResource,
				Mode:    os.ModeDir | os.FileMode(uint32(0755)),
				Enabled: true,
			},
		},
	},
}
View Source
var SysModuleNfconntrackParameters_Handler = &SysModuleNfconntrackParameters{
	domain.HandlerBase{
		Name:    "SysModuleNfconntrackParameters",
		Path:    "/sys/module/nf_conntrack/parameters",
		Enabled: true,
		EmuResourceMap: map[string]*domain.EmuResource{
			"hashsize": {
				Kind:    domain.FileEmuResource,
				Mode:    os.FileMode(uint32(0600)),
				Size:    4096,
				Enabled: true,
			},
		},
	},
}

Functions

This section is empty.

Types

type PassThrough

type PassThrough struct {
	domain.HandlerBase
}

func (*PassThrough) GetEnabled

func (h *PassThrough) GetEnabled() bool

func (*PassThrough) GetName

func (h *PassThrough) GetName() string

func (*PassThrough) GetPath

func (h *PassThrough) GetPath() string

func (*PassThrough) GetResourceMutex

func (h *PassThrough) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*PassThrough) GetResourcesList

func (h *PassThrough) GetResourcesList() []string

func (*PassThrough) GetService

func (h *PassThrough) GetService() domain.HandlerServiceIface

func (*PassThrough) Lookup

func (*PassThrough) Open

func (*PassThrough) Read

func (*PassThrough) ReadDirAll

func (h *PassThrough) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)
func (h *PassThrough) ReadLink(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (string, error)

func (*PassThrough) SetEnabled

func (h *PassThrough) SetEnabled(b bool)

func (*PassThrough) SetService

func (h *PassThrough) SetService(hs domain.HandlerServiceIface)

func (*PassThrough) Setattr

func (*PassThrough) Write

type ProcSwaps

type ProcSwaps struct {
	domain.HandlerBase
}

func (*ProcSwaps) GetEnabled

func (h *ProcSwaps) GetEnabled() bool

func (*ProcSwaps) GetName

func (h *ProcSwaps) GetName() string

func (*ProcSwaps) GetPath

func (h *ProcSwaps) GetPath() string

func (*ProcSwaps) GetResourceMutex

func (h *ProcSwaps) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSwaps) GetResourcesList

func (h *ProcSwaps) GetResourcesList() []string

func (*ProcSwaps) GetService

func (h *ProcSwaps) GetService() domain.HandlerServiceIface

func (*ProcSwaps) Lookup

func (*ProcSwaps) Open

func (*ProcSwaps) Read

func (h *ProcSwaps) Read(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

func (*ProcSwaps) ReadDirAll

func (h *ProcSwaps) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)
func (h *ProcSwaps) ReadLink(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (string, error)

func (*ProcSwaps) SetEnabled

func (h *ProcSwaps) SetEnabled(b bool)

func (*ProcSwaps) SetService

func (h *ProcSwaps) SetService(hs domain.HandlerServiceIface)

func (*ProcSwaps) Write

func (h *ProcSwaps) Write(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

type ProcSys

type ProcSys struct {
	domain.HandlerBase
}

func (*ProcSys) GetEnabled

func (h *ProcSys) GetEnabled() bool

func (*ProcSys) GetName

func (h *ProcSys) GetName() string

func (*ProcSys) GetPath

func (h *ProcSys) GetPath() string

func (*ProcSys) GetResourceMutex

func (h *ProcSys) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSys) GetResourcesList

func (h *ProcSys) GetResourcesList() []string

func (*ProcSys) GetService

func (h *ProcSys) GetService() domain.HandlerServiceIface

func (*ProcSys) Lookup

func (*ProcSys) Open

func (h *ProcSys) Open(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (bool, error)

func (*ProcSys) Read

func (h *ProcSys) Read(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

func (*ProcSys) ReadDirAll

func (h *ProcSys) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)
func (h *ProcSys) ReadLink(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (string, error)

func (*ProcSys) SetEnabled

func (h *ProcSys) SetEnabled(b bool)

func (*ProcSys) SetService

func (h *ProcSys) SetService(hs domain.HandlerServiceIface)

func (*ProcSys) Write

func (h *ProcSys) Write(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

type ProcSysFs

type ProcSysFs struct {
	domain.HandlerBase
}

func (*ProcSysFs) GetEnabled

func (h *ProcSysFs) GetEnabled() bool

func (*ProcSysFs) GetName

func (h *ProcSysFs) GetName() string

func (*ProcSysFs) GetPath

func (h *ProcSysFs) GetPath() string

func (*ProcSysFs) GetResourceMutex

func (h *ProcSysFs) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysFs) GetResourcesList

func (h *ProcSysFs) GetResourcesList() []string

func (*ProcSysFs) GetService

func (h *ProcSysFs) GetService() domain.HandlerServiceIface

func (*ProcSysFs) Lookup

func (*ProcSysFs) Open

func (*ProcSysFs) Read

func (h *ProcSysFs) Read(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

func (*ProcSysFs) ReadDirAll

func (h *ProcSysFs) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)
func (h *ProcSysFs) ReadLink(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (string, error)

func (*ProcSysFs) SetEnabled

func (h *ProcSysFs) SetEnabled(b bool)

func (*ProcSysFs) SetService

func (h *ProcSysFs) SetService(hs domain.HandlerServiceIface)

func (*ProcSysFs) Write

func (h *ProcSysFs) Write(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

type ProcSysKernel

type ProcSysKernel struct {
	domain.HandlerBase
}

func (*ProcSysKernel) GetEnabled

func (h *ProcSysKernel) GetEnabled() bool

func (*ProcSysKernel) GetName

func (h *ProcSysKernel) GetName() string

func (*ProcSysKernel) GetPath

func (h *ProcSysKernel) GetPath() string

func (*ProcSysKernel) GetResourceMutex

func (h *ProcSysKernel) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysKernel) GetResourcesList

func (h *ProcSysKernel) GetResourcesList() []string

func (*ProcSysKernel) GetService

func (h *ProcSysKernel) GetService() domain.HandlerServiceIface

func (*ProcSysKernel) Lookup

func (*ProcSysKernel) Open

func (*ProcSysKernel) Read

func (*ProcSysKernel) ReadDirAll

func (h *ProcSysKernel) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)

func (*ProcSysKernel) SetEnabled

func (h *ProcSysKernel) SetEnabled(b bool)

func (*ProcSysKernel) SetService

func (h *ProcSysKernel) SetService(hs domain.HandlerServiceIface)

func (*ProcSysKernel) Write

type ProcSysKernelYama

type ProcSysKernelYama struct {
	domain.HandlerBase
}

func (*ProcSysKernelYama) GetEnabled

func (h *ProcSysKernelYama) GetEnabled() bool

func (*ProcSysKernelYama) GetName

func (h *ProcSysKernelYama) GetName() string

func (*ProcSysKernelYama) GetPath

func (h *ProcSysKernelYama) GetPath() string

func (*ProcSysKernelYama) GetResourceMutex

func (h *ProcSysKernelYama) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysKernelYama) GetResourcesList

func (h *ProcSysKernelYama) GetResourcesList() []string

func (*ProcSysKernelYama) GetService

func (*ProcSysKernelYama) Lookup

func (*ProcSysKernelYama) Open

func (*ProcSysKernelYama) Read

func (*ProcSysKernelYama) ReadDirAll

func (*ProcSysKernelYama) SetEnabled

func (h *ProcSysKernelYama) SetEnabled(b bool)

func (*ProcSysKernelYama) SetService

func (h *ProcSysKernelYama) SetService(hs domain.HandlerServiceIface)

func (*ProcSysKernelYama) Write

type ProcSysNetCore

type ProcSysNetCore struct {
	domain.HandlerBase
}

/proc/sys/net/core handler

Emulated resources:

* /proc/sys/net/core/default_qdisc

Documentation: The default queuing discipline to use for network devices. This allows overriding the default of pfifo_fast with an alternative. Since the default queuing discipline is created without additional parameters so is best suited to queuing disciplines that work well without configuration like stochastic fair queue (sfq), CoDel (codel) or fair queue CoDel (fq_codel). Don’t use queuing disciplines like Hierarchical Token Bucket or Deficit Round Robin which require setting up classes and bandwidths. Note that physical multiqueue interfaces still use mq as root qdisc, which in turn uses this default for its leaves. Virtual devices (like e.g. lo or veth) ignore this setting and instead default to noqueue. Default: pfifo_fast.

Supported schedulers (https://github.com/torvalds/linux/blob/master/net/sched/Kconfig#L478):

  • "pfifo_fast"
  • "fq"
  • "fq_codel"
  • "sfq"
  • "pfifo_fast"

As this is a system-wide attribute with mutually-exclusive values, changes will be only made superficially (at sys-container level). IOW, the host FS value will be left untouched.

* /proc/sys/net/core/somaxconn

Description: Limit of socket listen() backlog, known in userspace as SOMAXCONN. Somaxconn refers to the maximum number of clients that the server can accept to process data, that is, to complete the connection limit. Defaults to 128.

func (*ProcSysNetCore) GetEnabled

func (h *ProcSysNetCore) GetEnabled() bool

func (*ProcSysNetCore) GetName

func (h *ProcSysNetCore) GetName() string

func (*ProcSysNetCore) GetPath

func (h *ProcSysNetCore) GetPath() string

func (*ProcSysNetCore) GetResourceMutex

func (h *ProcSysNetCore) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysNetCore) GetResourcesList

func (h *ProcSysNetCore) GetResourcesList() []string

func (*ProcSysNetCore) GetService

func (h *ProcSysNetCore) GetService() domain.HandlerServiceIface

func (*ProcSysNetCore) Lookup

func (*ProcSysNetCore) Open

func (*ProcSysNetCore) Read

func (*ProcSysNetCore) ReadDirAll

func (h *ProcSysNetCore) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)

func (*ProcSysNetCore) SetEnabled

func (h *ProcSysNetCore) SetEnabled(b bool)

func (*ProcSysNetCore) SetService

func (h *ProcSysNetCore) SetService(hs domain.HandlerServiceIface)

func (*ProcSysNetCore) Write

type ProcSysNetIpv4

type ProcSysNetIpv4 struct {
	domain.HandlerBase
}

func (*ProcSysNetIpv4) GetEnabled

func (h *ProcSysNetIpv4) GetEnabled() bool

func (*ProcSysNetIpv4) GetName

func (h *ProcSysNetIpv4) GetName() string

func (*ProcSysNetIpv4) GetPath

func (h *ProcSysNetIpv4) GetPath() string

func (*ProcSysNetIpv4) GetResourceMutex

func (h *ProcSysNetIpv4) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysNetIpv4) GetResourcesList

func (h *ProcSysNetIpv4) GetResourcesList() []string

func (*ProcSysNetIpv4) GetService

func (h *ProcSysNetIpv4) GetService() domain.HandlerServiceIface

func (*ProcSysNetIpv4) Lookup

func (*ProcSysNetIpv4) Open

func (*ProcSysNetIpv4) Read

func (*ProcSysNetIpv4) ReadDirAll

func (h *ProcSysNetIpv4) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)

func (*ProcSysNetIpv4) SetEnabled

func (h *ProcSysNetIpv4) SetEnabled(b bool)

func (*ProcSysNetIpv4) SetService

func (h *ProcSysNetIpv4) SetService(hs domain.HandlerServiceIface)

func (*ProcSysNetIpv4) Write

type ProcSysNetIpv4Neigh

type ProcSysNetIpv4Neigh struct {
	domain.HandlerBase
}

func (*ProcSysNetIpv4Neigh) GetEnabled

func (h *ProcSysNetIpv4Neigh) GetEnabled() bool

func (*ProcSysNetIpv4Neigh) GetName

func (h *ProcSysNetIpv4Neigh) GetName() string

func (*ProcSysNetIpv4Neigh) GetPath

func (h *ProcSysNetIpv4Neigh) GetPath() string

func (*ProcSysNetIpv4Neigh) GetResourceMutex

func (h *ProcSysNetIpv4Neigh) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysNetIpv4Neigh) GetResourcesList

func (h *ProcSysNetIpv4Neigh) GetResourcesList() []string

func (*ProcSysNetIpv4Neigh) GetService

func (*ProcSysNetIpv4Neigh) Lookup

func (*ProcSysNetIpv4Neigh) Open

func (*ProcSysNetIpv4Neigh) Read

func (*ProcSysNetIpv4Neigh) ReadDirAll

func (*ProcSysNetIpv4Neigh) SetEnabled

func (h *ProcSysNetIpv4Neigh) SetEnabled(b bool)

func (*ProcSysNetIpv4Neigh) SetService

func (*ProcSysNetIpv4Neigh) Write

type ProcSysNetIpv4Vs

type ProcSysNetIpv4Vs struct {
	domain.HandlerBase
}

func (*ProcSysNetIpv4Vs) GetEnabled

func (h *ProcSysNetIpv4Vs) GetEnabled() bool

func (*ProcSysNetIpv4Vs) GetName

func (h *ProcSysNetIpv4Vs) GetName() string

func (*ProcSysNetIpv4Vs) GetPath

func (h *ProcSysNetIpv4Vs) GetPath() string

func (*ProcSysNetIpv4Vs) GetResourceMutex

func (h *ProcSysNetIpv4Vs) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysNetIpv4Vs) GetResourcesList

func (h *ProcSysNetIpv4Vs) GetResourcesList() []string

func (*ProcSysNetIpv4Vs) GetService

func (*ProcSysNetIpv4Vs) Lookup

func (*ProcSysNetIpv4Vs) Open

func (*ProcSysNetIpv4Vs) Read

func (*ProcSysNetIpv4Vs) ReadDirAll

func (*ProcSysNetIpv4Vs) SetEnabled

func (h *ProcSysNetIpv4Vs) SetEnabled(b bool)

func (*ProcSysNetIpv4Vs) SetService

func (h *ProcSysNetIpv4Vs) SetService(hs domain.HandlerServiceIface)

func (*ProcSysNetIpv4Vs) Write

type ProcSysNetNetfilter

type ProcSysNetNetfilter struct {
	domain.HandlerBase
}

func (*ProcSysNetNetfilter) GetEnabled

func (h *ProcSysNetNetfilter) GetEnabled() bool

func (*ProcSysNetNetfilter) GetName

func (h *ProcSysNetNetfilter) GetName() string

func (*ProcSysNetNetfilter) GetPath

func (h *ProcSysNetNetfilter) GetPath() string

func (*ProcSysNetNetfilter) GetResourceMutex

func (h *ProcSysNetNetfilter) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysNetNetfilter) GetResourcesList

func (h *ProcSysNetNetfilter) GetResourcesList() []string

func (*ProcSysNetNetfilter) GetService

func (*ProcSysNetNetfilter) Lookup

func (*ProcSysNetNetfilter) Open

func (*ProcSysNetNetfilter) Read

func (*ProcSysNetNetfilter) ReadDirAll

func (*ProcSysNetNetfilter) SetEnabled

func (h *ProcSysNetNetfilter) SetEnabled(b bool)

func (*ProcSysNetNetfilter) SetService

func (*ProcSysNetNetfilter) Write

type ProcSysNetUnix

type ProcSysNetUnix struct {
	domain.HandlerBase
}

func (*ProcSysNetUnix) GetEnabled

func (h *ProcSysNetUnix) GetEnabled() bool

func (*ProcSysNetUnix) GetName

func (h *ProcSysNetUnix) GetName() string

func (*ProcSysNetUnix) GetPath

func (h *ProcSysNetUnix) GetPath() string

func (*ProcSysNetUnix) GetResourceMutex

func (h *ProcSysNetUnix) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysNetUnix) GetResourcesList

func (h *ProcSysNetUnix) GetResourcesList() []string

func (*ProcSysNetUnix) GetService

func (h *ProcSysNetUnix) GetService() domain.HandlerServiceIface

func (*ProcSysNetUnix) Lookup

func (*ProcSysNetUnix) Open

func (*ProcSysNetUnix) Read

func (*ProcSysNetUnix) ReadDirAll

func (h *ProcSysNetUnix) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)

func (*ProcSysNetUnix) SetEnabled

func (h *ProcSysNetUnix) SetEnabled(b bool)

func (*ProcSysNetUnix) SetService

func (h *ProcSysNetUnix) SetService(hs domain.HandlerServiceIface)

func (*ProcSysNetUnix) Write

type ProcSysVm

type ProcSysVm struct {
	domain.HandlerBase
}

func (*ProcSysVm) GetEnabled

func (h *ProcSysVm) GetEnabled() bool

func (*ProcSysVm) GetName

func (h *ProcSysVm) GetName() string

func (*ProcSysVm) GetPath

func (h *ProcSysVm) GetPath() string

func (*ProcSysVm) GetResourceMutex

func (h *ProcSysVm) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcSysVm) GetResourcesList

func (h *ProcSysVm) GetResourcesList() []string

func (*ProcSysVm) GetService

func (h *ProcSysVm) GetService() domain.HandlerServiceIface

func (*ProcSysVm) Lookup

func (*ProcSysVm) Open

func (*ProcSysVm) Read

func (h *ProcSysVm) Read(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

func (*ProcSysVm) ReadDirAll

func (h *ProcSysVm) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)
func (h *ProcSysVm) ReadLink(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (string, error)

func (*ProcSysVm) SetEnabled

func (h *ProcSysVm) SetEnabled(b bool)

func (*ProcSysVm) SetService

func (h *ProcSysVm) SetService(hs domain.HandlerServiceIface)

func (*ProcSysVm) Write

func (h *ProcSysVm) Write(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

type ProcUptime

type ProcUptime struct {
	domain.HandlerBase
}

func (*ProcUptime) GetEnabled

func (h *ProcUptime) GetEnabled() bool

func (*ProcUptime) GetName

func (h *ProcUptime) GetName() string

func (*ProcUptime) GetPath

func (h *ProcUptime) GetPath() string

func (*ProcUptime) GetResourceMutex

func (h *ProcUptime) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*ProcUptime) GetResourcesList

func (h *ProcUptime) GetResourcesList() []string

func (*ProcUptime) GetService

func (h *ProcUptime) GetService() domain.HandlerServiceIface

func (*ProcUptime) Lookup

func (*ProcUptime) Open

func (*ProcUptime) Read

func (*ProcUptime) ReadDirAll

func (h *ProcUptime) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)
func (h *ProcUptime) ReadLink(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (string, error)

func (*ProcUptime) SetEnabled

func (h *ProcUptime) SetEnabled(b bool)

func (*ProcUptime) SetService

func (h *ProcUptime) SetService(hs domain.HandlerServiceIface)

func (*ProcUptime) Write

func (h *ProcUptime) Write(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

type Root

type Root struct {
	domain.HandlerBase
}

func (*Root) GetEnabled

func (h *Root) GetEnabled() bool

func (*Root) GetName

func (h *Root) GetName() string

func (*Root) GetPath

func (h *Root) GetPath() string

func (*Root) GetResourceMutex

func (h *Root) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*Root) GetResourcesList

func (h *Root) GetResourcesList() []string

func (*Root) GetService

func (h *Root) GetService() domain.HandlerServiceIface

func (*Root) Lookup

func (h *Root) Lookup(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (os.FileInfo, error)

func (*Root) Open

func (h *Root) Open(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (bool, error)

func (*Root) Read

func (h *Root) Read(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

func (*Root) ReadDirAll

func (h *Root) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)
func (h *Root) ReadLink(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (string, error)

func (*Root) SetEnabled

func (h *Root) SetEnabled(b bool)

func (*Root) SetService

func (h *Root) SetService(hs domain.HandlerServiceIface)

func (*Root) Write

func (h *Root) Write(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

type SysDevicesVirtual

type SysDevicesVirtual struct {
	domain.HandlerBase
	// contains filtered or unexported fields
}

func (*SysDevicesVirtual) GetEnabled

func (h *SysDevicesVirtual) GetEnabled() bool

func (*SysDevicesVirtual) GetName

func (h *SysDevicesVirtual) GetName() string

func (*SysDevicesVirtual) GetPath

func (h *SysDevicesVirtual) GetPath() string

func (*SysDevicesVirtual) GetResourceMutex

func (h *SysDevicesVirtual) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*SysDevicesVirtual) GetResourcesList

func (h *SysDevicesVirtual) GetResourcesList() []string

func (*SysDevicesVirtual) GetService

func (*SysDevicesVirtual) Lookup

func (*SysDevicesVirtual) Open

func (*SysDevicesVirtual) Read

func (*SysDevicesVirtual) ReadDirAll

func (*SysDevicesVirtual) SetEnabled

func (h *SysDevicesVirtual) SetEnabled(b bool)

func (*SysDevicesVirtual) SetService

func (h *SysDevicesVirtual) SetService(hs domain.HandlerServiceIface)

func (*SysDevicesVirtual) Write

type SysDevicesVirtualDmi

type SysDevicesVirtualDmi struct {
	domain.HandlerBase
}

func (*SysDevicesVirtualDmi) GetEnabled

func (h *SysDevicesVirtualDmi) GetEnabled() bool

func (*SysDevicesVirtualDmi) GetName

func (h *SysDevicesVirtualDmi) GetName() string

func (*SysDevicesVirtualDmi) GetPath

func (h *SysDevicesVirtualDmi) GetPath() string

func (*SysDevicesVirtualDmi) GetResourceMutex

func (h *SysDevicesVirtualDmi) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*SysDevicesVirtualDmi) GetResourcesList

func (h *SysDevicesVirtualDmi) GetResourcesList() []string

func (*SysDevicesVirtualDmi) GetService

func (*SysDevicesVirtualDmi) Lookup

func (*SysDevicesVirtualDmi) Open

func (*SysDevicesVirtualDmi) Read

func (*SysDevicesVirtualDmi) ReadDirAll

func (*SysDevicesVirtualDmi) SetEnabled

func (h *SysDevicesVirtualDmi) SetEnabled(b bool)

func (*SysDevicesVirtualDmi) SetService

func (*SysDevicesVirtualDmi) Write

type SysDevicesVirtualDmiId

type SysDevicesVirtualDmiId struct {
	domain.HandlerBase
}

func (*SysDevicesVirtualDmiId) CreateCntrUuid

func (h *SysDevicesVirtualDmiId) CreateCntrUuid(cntr domain.ContainerIface) string

Method is public exclusively for unit-testing purposes.

func (*SysDevicesVirtualDmiId) GetEnabled

func (h *SysDevicesVirtualDmiId) GetEnabled() bool

func (*SysDevicesVirtualDmiId) GetName

func (h *SysDevicesVirtualDmiId) GetName() string

func (*SysDevicesVirtualDmiId) GetPath

func (h *SysDevicesVirtualDmiId) GetPath() string

func (*SysDevicesVirtualDmiId) GetResourceMutex

func (h *SysDevicesVirtualDmiId) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*SysDevicesVirtualDmiId) GetResourcesList

func (h *SysDevicesVirtualDmiId) GetResourcesList() []string

func (*SysDevicesVirtualDmiId) GetService

func (*SysDevicesVirtualDmiId) Lookup

func (*SysDevicesVirtualDmiId) Open

func (*SysDevicesVirtualDmiId) Read

func (*SysDevicesVirtualDmiId) ReadDirAll

func (*SysDevicesVirtualDmiId) SetEnabled

func (h *SysDevicesVirtualDmiId) SetEnabled(b bool)

func (*SysDevicesVirtualDmiId) SetService

func (*SysDevicesVirtualDmiId) Write

type SysKernel

type SysKernel struct {
	domain.HandlerBase
}

func (*SysKernel) GetEnabled

func (h *SysKernel) GetEnabled() bool

func (*SysKernel) GetName

func (h *SysKernel) GetName() string

func (*SysKernel) GetPath

func (h *SysKernel) GetPath() string

func (*SysKernel) GetResourceMutex

func (h *SysKernel) GetResourceMutex(n domain.IOnodeIface) *sync.Mutex

func (*SysKernel) GetResourcesList

func (h *SysKernel) GetResourcesList() []string

func (*SysKernel) GetService

func (h *SysKernel) GetService() domain.HandlerServiceIface

func (*SysKernel) Lookup

func (*SysKernel) Open

func (*SysKernel) Read

func (h *SysKernel) Read(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

func (*SysKernel) ReadDirAll

func (h *SysKernel) ReadDirAll(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) ([]os.FileInfo, error)
func (h *SysKernel) ReadLink(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (string, error)

func (*SysKernel) SetEnabled

func (h *SysKernel) SetEnabled(b bool)

func (*SysKernel) SetService

func (h *SysKernel) SetService(hs domain.HandlerServiceIface)

func (*SysKernel) Write

func (h *SysKernel) Write(
	n domain.IOnodeIface,
	req *domain.HandlerRequest) (int, error)

type SysModuleNfconntrackParameters

type SysModuleNfconntrackParameters struct {
	domain.HandlerBase
}

func (*SysModuleNfconntrackParameters) GetEnabled

func (h *SysModuleNfconntrackParameters) GetEnabled() bool

func (*SysModuleNfconntrackParameters) GetName

func (*SysModuleNfconntrackParameters) GetPath

func (*SysModuleNfconntrackParameters) GetResourceMutex

func (*SysModuleNfconntrackParameters) GetResourcesList

func (h *SysModuleNfconntrackParameters) GetResourcesList() []string

func (*SysModuleNfconntrackParameters) GetService

func (*SysModuleNfconntrackParameters) Lookup

func (*SysModuleNfconntrackParameters) Open

func (*SysModuleNfconntrackParameters) Read

func (*SysModuleNfconntrackParameters) ReadDirAll

func (*SysModuleNfconntrackParameters) SetEnabled

func (h *SysModuleNfconntrackParameters) SetEnabled(b bool)

func (*SysModuleNfconntrackParameters) SetService

func (*SysModuleNfconntrackParameters) Write

Jump to

Keyboard shortcuts

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