naisdevice

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessPrivilegedGateway

func AccessPrivilegedGateway(gatewayName string) error

func AgentConnection

func AgentConnection() (*grpc.ClientConn, error)

func AutocompleteSet

func AutocompleteSet(_ context.Context, args []string, _ string) ([]string, string)

func Connect

func Connect(ctx context.Context, out cli.Output) error

func Disconnect

func Disconnect(ctx context.Context, out cli.Output) error

func FormatGrpcError

func FormatGrpcError(err error) error

func GetAllowedSettings

func GetAllowedSettings(withHidden, lowerCase bool) []string

func GetConfig

func GetConfig(ctx context.Context) (*pb.AgentConfiguration, error)

func GetPrivilegedGateways

func GetPrivilegedGateways(ctx context.Context) ([]string, error)

func GetSettingValues

func GetSettingValues(setting string) map[string]string

func GetStatus

func GetStatus(ctx context.Context) (*pb.AgentStatus, error)

func IsConnected

func IsConnected(ctx context.Context) bool

func PrintFormattedStatus

func PrintFormattedStatus(format string, status *pb.AgentStatus, out cli.Output) error

func PrintVerboseStatus

func PrintVerboseStatus(status *pb.AgentStatus, out cli.Output)

func SetConfig

func SetConfig(ctx context.Context, setting string, value bool) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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