Documentation ¶
Index ¶
- Constants
- Variables
- func BravePathDefaults() ([]string, error)
- func ChromePathDefaults() ([]string, error)
- func ChromiumPathDefaults() ([]string, error)
- func ConfigureBrowserSelection(browserName string, path string) error
- func DetectInstallation(browserKey string) (string, bool)
- func EdgePathDefaults() ([]string, error)
- func Find() (string, error)
- func FirefoxPathDefaults() ([]string, error)
- func GetBrowserKey(b string) string
- func GrantedIntroduction()
- func HandleBrowserWizard(ctx *cli.Context) error
- func HandleLinuxBrowserSearch() (string, error)
- func HandleManualBrowserSelection() (string, error)
- func HandleOSXBrowserSearch() (string, error)
- func HandleWindowsBrowserSearch() (string, error)
- func LaunchConsoleSession(sess Session, labels RoleLabels, service string, region string) error
- func MakeFirefoxContainerURL(urlString string, labels RoleLabels) string
- func MakeUrl(sess Session, labels RoleLabels, service string, region string) (string, error)
- func ManuallyOpenURL(url string)
- func OpenWithChromiumProfile(url string, labels RoleLabels, selectedBrowser Browser) error
- func OpenWithFirefoxContainer(urlString string, labels RoleLabels) error
- func PromoteUseFlags(labels RoleLabels)
- func RunFirefoxExtensionPrompts(firefoxPath string) error
- func UserHasDefaultBrowser(ctx *cli.Context) (bool, error)
- type Array
- type Browser
- type Dict
- type IntDict
- type Pdict
- type RoleLabels
- type Session
Constants ¶
Variables ¶
View Source
var BravePathLinux = []string{`/usr/bin/brave-browser`}
View Source
var BravePathMac = []string{"/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"}
View Source
var BravePathWindows = []string{`\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe`}
View Source
var ChromePathLinux = []string{`/usr/bin/google-chrome`}
View Source
var ChromePathMac = []string{"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"}
A few default paths to check for the browser
View Source
var ChromePathWindows = []string{`\Program Files\Google\Chrome\Application\chrome.exe`, `\Program Files (x86)\Google\Chrome\Application\chrome.exe`}
View Source
var ChromiumPathLinux = []string{`/usr/bin/chromium`}
View Source
var ChromiumPathMac = []string{"/Applications/Chromium.app/Contents/MacOS/Chromium"}
View Source
var ChromiumPathWindows = []string{`\Program Files\Chromium\chromium.exe`}
View Source
var EdgePathLinux = []string{`/usr/bin/edge`}
View Source
var EdgePathMac = []string{"/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge"}
View Source
var EdgePathWindows = []string{`\Program Files (x86)\Microsoft\Edge\Application\msedge.exe`}
View Source
var FirefoxPathLinux = []string{`/usr/bin/firefox`}
View Source
var FirefoxPathMac = []string{"/Applications/Firefox.app/Contents/MacOS/firefox"}
View Source
var FirefoxPathWindows = []string{`\Program Files\Mozilla Firefox\firefox.exe`}
View Source
var ServiceMap = map[string]string{
"": "console",
"ec2": "ec2/v2",
"sso": "singlesignon",
"ecs": "ecs",
"eks": "eks",
"athena": "athena",
"cloudmap": "cloudmap",
"c9": "cloud9",
"cfn": "cloudformation",
"cloudformation": "cloudformation",
"cloudwatch": "cloudwatch",
"gd": "guardduty",
"l": "lambda",
"cw": "cloudwatch",
"cf": "cloudfront",
"ct": "cloudtrail",
"ddb": "dynamodbv2",
"ebs": "elasticbeanstalk",
"ecr": "ecr",
"grafana": "grafana",
"lambda": "lambda",
"route53": "route53/v2",
"r53": "route53/v2",
"s3": "s3",
"secretsmanager": "secretsmanager",
"iam": "iamv2",
}
ServiceMap maps CLI flags to AWS console URL paths. e.g. passing in `-r ec2` will open the console at the ec2/v2 URL.
Functions ¶
func BravePathDefaults ¶ added in v0.1.8
func ChromePathDefaults ¶ added in v0.1.8
func ChromiumPathDefaults ¶ added in v0.1.8
func ConfigureBrowserSelection ¶ added in v0.1.1
ConfigureBrowserSelection will verify the existance of the browser executable and promot for a path if it cannot be found
func DetectInstallation ¶ added in v0.1.1
DetectInstallation checks if the default filepath exists for the browser executables on the current os returns the detected path
func EdgePathDefaults ¶ added in v0.1.8
func FirefoxPathDefaults ¶ added in v0.1.8
func GetBrowserKey ¶ added in v0.1.8
func GrantedIntroduction ¶
func GrantedIntroduction()
func HandleBrowserWizard ¶
func HandleBrowserWizard(ctx *cli.Context) error
func HandleLinuxBrowserSearch ¶ added in v0.1.1
func HandleOSXBrowserSearch ¶ added in v0.1.1
func HandleWindowsBrowserSearch ¶ added in v0.1.1
func LaunchConsoleSession ¶
func LaunchConsoleSession(sess Session, labels RoleLabels, service string, region string) error
func MakeFirefoxContainerURL ¶ added in v0.1.8
func MakeFirefoxContainerURL(urlString string, labels RoleLabels) string
func ManuallyOpenURL ¶ added in v0.1.8
func ManuallyOpenURL(url string)
func OpenWithChromiumProfile ¶
func OpenWithChromiumProfile(url string, labels RoleLabels, selectedBrowser Browser) error
func OpenWithFirefoxContainer ¶
func OpenWithFirefoxContainer(urlString string, labels RoleLabels) error
func PromoteUseFlags ¶ added in v0.1.1
func PromoteUseFlags(labels RoleLabels)
func UserHasDefaultBrowser ¶
Checks the config to see if the user has already set up their default browser
Types ¶
type RoleLabels ¶
func (*RoleLabels) MakeExternalFirefoxTitle ¶
func (r *RoleLabels) MakeExternalFirefoxTitle() string
func (*RoleLabels) MakeExternalProfileTitle ¶
func (r *RoleLabels) MakeExternalProfileTitle() string
type Session ¶
type Session struct { SessionID string `json:"sessionId"` SesssionKey string `json:"sessionKey"` SessionToken string `json:"sessionToken"` }
func SessionFromCredentials ¶ added in v0.1.6
func SessionFromCredentials(creds aws.Credentials) Session
Click to show internal directories.
Click to hide internal directories.