Documentation
¶
Index ¶
- Constants
- Variables
- func CheckDependencies() error
- func GrantedCredentialProcess(commandData CommandData) (aws.Credentials, error)
- func ParseCredentialProcessOutput(credentialProcessOutput string) (aws.Credentials, error)
- func PrepareAWSCLIEnv(creds aws.Credentials, commandData CommandData) []string
- func SanitisedEnv() []string
- type CommandData
- type CredentialProcessOutput
- type GrantOutput
Constants ¶
View Source
const GrantOutputType = "CF::GrantOutput::AWSRDS"
Variables ¶
View Source
var Command = cli.Command{
Name: "rds",
Usage: "Perform RDS Operations",
Subcommands: []*cli.Command{
&proxyCommand,
},
}
Functions ¶
func CheckDependencies ¶
func CheckDependencies() error
func GrantedCredentialProcess ¶
func GrantedCredentialProcess(commandData CommandData) (aws.Credentials, error)
func ParseCredentialProcessOutput ¶
func ParseCredentialProcessOutput(credentialProcessOutput string) (aws.Credentials, error)
ParseCredentialProcessOutput parses the JSON output of a credential process and returns aws.Credentials.
func PrepareAWSCLIEnv ¶
func PrepareAWSCLIEnv(creds aws.Credentials, commandData CommandData) []string
func SanitisedEnv ¶
func SanitisedEnv() []string
SanitisedEnv returns the environment variables excluding specific AWS keys. used so that existing aws creds in the terminal are not passed through to downstream programs like the AWS cli
Types ¶
type CommandData ¶
type CommandData struct { GrantOutput GrantOutput LocalPort string }
type CredentialProcessOutput ¶
type CredentialProcessOutput struct { Version int `json:"Version"` AccessKeyId string `json:"AccessKeyId"` SecretAccessKey string `json:"SecretAccessKey"` SessionToken string `json:"SessionToken,omitempty"` Expiration time.Time `json:"Expiration,omitempty"` }
CredentialProcessOutput represents the JSON output format of the credential process.
type GrantOutput ¶
type GrantOutput struct { Grant eid.EID `json:"grant" authz:"grant"` Name string `json:"name" authz:"name"` SSOStartURL string `json:"sso_start_url" authz:"sso_start_url"` SSORoleName string `json:"sso_role_name" authz:"sso_role_name"` SSORegion string `json:"sso_region" authz:"sso_region"` AccountID string `json:"account_id" authz:"account_id"` InstanceID string `json:"instance_id" authz:"instance_id"` InstanceRegion string `json:"instance_region" authz:"instance_region"` }
func (GrantOutput) EID ¶
func (e GrantOutput) EID() eid.EID
func (GrantOutput) Parents ¶
func (e GrantOutput) Parents() []eid.EID
Click to show internal directories.
Click to hide internal directories.