control

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigReload

func ConfigReload() error

func DeleteDevice added in v1.4.1

func DeleteDevice(username string) error

func DeleteRegistration added in v1.4.1

func DeleteRegistration(id string) (err error)

func FirewallRules

func FirewallRules() (rules map[string]router.FirewallRules, err error)

func GetBPFVersion added in v1.4.1

func GetBPFVersion() (string, error)

func GetVersion

func GetVersion() (string, error)

func ListDevice added in v1.4.1

func ListDevice(username string) (d []database.Device, err error)

List devices, if the username field is empty (""), then list all devices. Otherwise list the one device corrosponding to the set username

func LockDevice added in v1.4.1

func LockDevice(username string) error

func PinBPF added in v1.4.1

func PinBPF() (err error)

func Registrations added in v1.4.1

func Registrations() (out map[string]string, err error)

func Sessions

func Sessions() (string, error)

func Shutdown added in v1.4.1

func Shutdown(cleanup bool) (err error)

func StartControlSocket

func StartControlSocket() error

func TearDown

func TearDown()

func UnlockDevice added in v1.4.1

func UnlockDevice(username string) error

func UnpinBPF added in v1.4.1

func UnpinBPF() (err error)

Types

type RegistrationResult added in v1.4.1

type RegistrationResult struct {
	Token    string
	Username string
}

func NewRegistration added in v1.4.1

func NewRegistration(token, username string) (r RegistrationResult, err error)

Jump to

Keyboard shortcuts

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