ionscale

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultDir         string      = "~/.ionscale"
	DefaultPermissions os.FileMode = 0700
)

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() string

func EnsureFile

func EnsureFile(file string) (string, error)

func NewAuthenticationInterceptor

func NewAuthenticationInterceptor(clientAuth ClientAuth) connect.UnaryInterceptorFunc

func NewClient

func NewClient(clientAuth ClientAuth, serverURL string, insecureSkipVerify bool) (api.IonscaleServiceClient, error)

func SessionToFile

func SessionToFile(token string, tailnetID *uint64) error

func TailnetFromFile

func TailnetFromFile() (uint64, error)

func TailnetToFile

func TailnetToFile(id *uint64) error

func TokenFromFile

func TokenFromFile() (string, error)

func TokenToFile

func TokenToFile(token string) error

Types

type ClientAuth

type ClientAuth interface {
	GetToken() (string, error)
}

func LoadClientAuth

func LoadClientAuth(systemAdminKey string) (ClientAuth, error)

Jump to

Keyboard shortcuts

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