Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetConfigDataCmd = &cobra.Command{ Use: "getConfigData", Short: "A brief description of your command", Long: ``, Run: func(cmd *cobra.Command, args []string) { vaultUrl := cmd.Parent().PersistentFlags().Lookup("vaultUrl").Value.String() accountNo := cmd.Parent().PersistentFlags().Lookup("accountId").Value.String() region := cmd.Parent().PersistentFlags().Lookup("zone").Value.String() acKey := cmd.Parent().PersistentFlags().Lookup("accessKey").Value.String() secKey := cmd.Parent().PersistentFlags().Lookup("secretKey").Value.String() crossAccountRoleArn := cmd.Parent().PersistentFlags().Lookup("crossAccountRoleArn").Value.String() externalId := cmd.Parent().PersistentFlags().Lookup("externalId").Value.String() authFlag := authenticator.AuthenticateData(vaultUrl, accountNo, region, acKey, secKey, crossAccountRoleArn, externalId) if authFlag { userName, _ := cmd.Flags().GetString("userName") if userName != "" { getClusterDetails(region, crossAccountRoleArn, acKey, secKey, userName, externalId) } else { log.Fatalln("userName not provided. Program exit") } } }, }
getConfigDataCmd represents the getConfigData command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.