cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceGetter

func DeviceGetter(getDevices func() ([]devices.Device, error)) func() ([]devices.Device, error)

func Listener

func Listener(
	getDevices func() ([]devices.Device, error),
	printLine func(in string),
) func(serial string, iot bool) error

func Login

func Login(
	readLine func(prompt string) (string, error),
	readSecret func(prompt string) (string, error),
	beginLogin func(email string) (challengeID uuid.UUID, err error),
	completeLogin func(email, otpCode, password string, challengeID uuid.UUID) (token string, err error),
	setConfigToken func(token string) error,
	setServerToken func(token string),
	setServerRegion func(region cloud.ServerRegion),
) func() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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