cloud

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var UnconfirmedError = "Not confirmed"

Functions

func GetCloudMetadata

func GetCloudMetadata(ctx context.Context, workspaceDatabaseString, token string) (*steampipeconfig.CloudMetadata, error)

func GetLoginToken

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

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

func GetUserName

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

func GetUserWorkspaceHandle

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

GetUserWorkspaceHandle returns the handle of the user workspace

in format actorHandle/workspaceHandle

if there are 0 or > 1 workspaces this is an error

func LoadToken

func LoadToken() (string, error)

func PublishSnapshot

func PublishSnapshot(ctx context.Context, snapshot *steampipeconfig.SteampipeSnapshot, share bool) (string, error)

func SaveToken

func SaveToken(token string) error

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

func WebLogin

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