Documentation ¶
Index ¶
- Variables
- func CreateDeviceAuthorization() (string, error)
- func GetDeviceAuthorization(sessionToken string) (*models.SessionTokenForm, error)
- func GetLatestBinary(osname string, osarch string) (string, []byte, error)
- func GetLatestVersion() (string, error)
- func GetToken() (string, error)
- func GetTunnel(socketID string, tunnelID string) (*models.Tunnel, error)
- func GetUserID() (*string, *string, error)
- func GetUserIDFromAccessToken(accessToken string) (*string, *string, error)
- func Login(email, password string) (bool, error)
- func MFAChallenge(code string) error
- func Register(name, email, password string) error
- func SaveTokenInDisk(accessToken string) error
- func StartLocalHTTPServer(dir string, l net.Listener) error
- func TokenFilePath() string
- func WebUrl() string
- type Client
- type ErrorMessage
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetDeviceAuthorization ¶
func GetDeviceAuthorization(sessionToken string) (*models.SessionTokenForm, error)
func GetLatestVersion ¶
func MFAChallenge ¶
func SaveTokenInDisk ¶
func TokenFilePath ¶
func TokenFilePath() string
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) WithAccessToken ¶
func (*Client) WithVersion ¶
type ErrorMessage ¶
type ErrorMessage struct {
ErrorMessage string `json:"error_message,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.