gcp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MANAGE_ON_PROVIDER = "MANAGE ON PROVIDER"
View Source
const SUBSCRIBE = "SUBSCRIBE"

Variables

View Source
var (
	ErrUnsupportedGCPMarketplaceState = fmt.Errorf("unsupported GCP Marketplace state")
)
View Source
var (
	ErrUnsupportedPlatform = fmt.Errorf("unsupported platform")
)

Functions

func CheckGcloudExists

func CheckGcloudExists() bool

checkGcloudExists checks if gcloud command is installed and accessible.

func GetGCPProjects

func GetGCPProjects() ([]string, error)

func InstallGcloud

func InstallGcloud() error

Types

type Credentials

type Credentials struct {
	RedirectURI  string
	ClientID     string
	ClientSecret string
}

func PurchaseOGI

func PurchaseOGI(product, gcpProject string) (*Credentials, error)

func (*Credentials) ToMap

func (c *Credentials) ToMap() map[string]string

func (*Credentials) ToString

func (c *Credentials) ToString() string

type PlaywrightInfo

type PlaywrightInfo struct {
	Playwright *playwright.Playwright
	Context    playwright.BrowserContext
	Browser    playwright.Browser
	Page       playwright.Page
}

func (*PlaywrightInfo) Close

func (p *PlaywrightInfo) Close()

func (*PlaywrightInfo) InjectScript

func (p *PlaywrightInfo) InjectScript() error

Jump to

Keyboard shortcuts

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