Documentation
¶
Index ¶
- Constants
- func ConfigDir() string
- func EnsureFile(file string) (string, error)
- func NewAuthenticationInterceptor(clientAuth ClientAuth) connect.UnaryInterceptorFunc
- func NewClient(clientAuth ClientAuth, serverURL string, insecureSkipVerify bool) (api.IonscaleServiceClient, error)
- func SessionToFile(token string, tailnetID *uint64) error
- func TailnetFromFile() (uint64, error)
- func TailnetToFile(id *uint64) error
- func TokenFromFile() (string, error)
- func TokenToFile(token string) error
- type ClientAuth
Constants ¶
View Source
const ( DefaultDir string = "~/.ionscale" DefaultPermissions os.FileMode = 0700 )
Variables ¶
This section is empty.
Functions ¶
func EnsureFile ¶
func NewAuthenticationInterceptor ¶
func NewAuthenticationInterceptor(clientAuth ClientAuth) connect.UnaryInterceptorFunc
func NewClient ¶
func NewClient(clientAuth ClientAuth, serverURL string, insecureSkipVerify bool) (api.IonscaleServiceClient, error)
func SessionToFile ¶
func TailnetFromFile ¶
func TailnetToFile ¶
func TokenFromFile ¶
func TokenToFile ¶
Types ¶
type ClientAuth ¶
func LoadClientAuth ¶
func LoadClientAuth(systemAdminKey string) (ClientAuth, error)
Click to show internal directories.
Click to hide internal directories.