cloud

package
v0.18.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package cloud contains logic to support connecting to a steampipe cloud 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 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 GetUserWorkspaceHandle added in v0.17.0

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 added in v0.17.0

func LoadToken() (string, error)

func PublishSnapshot added in v0.17.0

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

func SaveToken added in v0.17.0

func SaveToken(token string) error

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

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