general

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostnameArgs

type HostnameArgs struct {
	Hostname string
}

type Manager

type Manager struct {
	CommandContext func(ctx context.Context, name string, args ...string) utils.Cmd
}

func (Manager) Hostname

func (m Manager) Hostname(ctx context.Context, args HostnameArgs) (string, error)

Hostname get or change persistent system hostname. With no arguments, this prints currently configured hostname. When you pass a hostname, NetworkManager will set it as the new persistent system hostname.

func (Manager) Permissions

func (m Manager) Permissions(ctx context.Context) ([]Permission, error)

Permissions Show caller permissions for authenticated operations.

type Permission

type Permission struct {
	Permission string
	Value      PermissionValue
}

type PermissionValue

type PermissionValue string
const (
	PermissionValueAuth PermissionValue = "auth"
	PermissionValueYes  PermissionValue = "yes"
	PermissionValueNo   PermissionValue = "no"
)

Jump to

Keyboard shortcuts

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