cloud

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cloud contains logic to support connecting to a Turbot Pipes database

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLoginToken added in v0.17.0

func GetLoginToken(ctx context.Context, id, code string) (string, error)

GetLoginToken uses the login id and code and retrieves an authentication token

func GetUserName added in v0.17.0

func GetUserName(ctx context.Context, token string) (string, error)

func LoadToken added in v0.17.0

func LoadToken() (string, error)

func SaveToken added in v0.17.0

func SaveToken(token string) error

SaveToken writes the token to ~/.steampipe/internal/{cloud-host}.tptt

func WebLogin added in v0.17.0

func WebLogin(ctx context.Context) (string, error)

WebLogin POSTs to ${envBaseUrl}/api/latest/login/token to retrieve a login is it then opens the login webpage and returns th eid

Types

This section is empty.

Jump to

Keyboard shortcuts

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