inoxd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 27 Imported by: 0

README

Inox Daemon Package

High Level Documentation

Documentation

Index

Constants

View Source
const (
	DAEMON_SUBCMD = "daemon"
	INOXD_LOG_SRC = "/inoxd"
)
View Source
const (
	INOXD_USERNAME = "inoxd"
	HOMEDIR_PERMS  = 0740
)
View Source
const (
	CGROUPV2_PATH = "/sys/fs/cgroup/"
)

Variables

View Source
var (
	ALLOWED_USERADD_LOCATIONS = []string{"/usr/sbin/useradd", "/sbin/useradd"}
	ALLOWED_USERDEL_LOCATIONS = []string{"/usr/sbin/userdel", "/sbin/userdel"}
)

Functions

func CreateInoxdUserIfNotExists

func CreateInoxdUserIfNotExists(out io.Writer, errOut io.Writer) (username string, uid int, homedir string, _ error)

func Inoxd

func Inoxd(args InoxdArgs)

func RemoveInoxdUser

func RemoveInoxdUser(args UserRemovalParams) error

Types

type Daemon

type Daemon struct {
	// contains filtered or unexported fields
}

type DaemonConfig

type DaemonConfig struct {
	InoxCloud        bool                                 `json:"inoxCloud,omitempty"`
	Server           projectserver.IndividualServerConfig `json:"projectServerConfig"`
	ExposeWebServers bool                                 `json:"exposeWebServers,omitempty"`
	TunnelProvider   string                               `json:"tunnelProvider,omitempty"`
	InoxBinaryPath   string                               `json:"-"`
}

type InoxdArgs

type InoxdArgs struct {
	Config DaemonConfig
	Logger zerolog.Logger
	GoCtx  context.Context

	DoNotUseCgroups     bool
	TestOnlyProxyConfig *cloudproxy.CloudProxyConfig
}

type UserRemovalParams

type UserRemovalParams struct {
	RemoveHomedir bool
	ErrOut, Out   io.Writer
}

Directories

Path Synopsis
cloud

Jump to

Keyboard shortcuts

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