Documentation
¶
Index ¶
- func Create() error
- func GetAWSProfile(cmd *cobra.Command) (string, error)
- func GetProfile(cmd *cobra.Command) (string, error)
- func GetRepositories(profile string) ([]string, error)
- func IsGovCloud(cmd *cobra.Command, profile string) bool
- func ProfileLookup(profile string) error
- func Read() error
- type CodeCommitConfig
- type Config
- type ConfigFile
- type ConsoleConfig
- type CredentialsConfig
- type ProfileBody
- type ProfileConfig
- type ProfileServices
- type ProfileServicesCodeCommit
- type ProfileServicesConsole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepositories ¶
func ProfileLookup ¶
Types ¶
type CodeCommitConfig ¶
type CodeCommitConfig struct {
*Config
AuthorARN string
Repository string
PRStatus types.PullRequestStatusEnum
}
func NewCodeCommitConfig ¶
func NewCodeCommitConfig(cmd *cobra.Command) (*CodeCommitConfig, error)
type Config ¶
func (*Config) InteractivelyAssignProfile ¶
type ConfigFile ¶
type ConfigFile struct {
Default ProfileBody `yaml:"default"`
}
type ConsoleConfig ¶
func NewConsoleConfig ¶
func NewConsoleConfig(cmd *cobra.Command) (*ConsoleConfig, error)
type CredentialsConfig ¶
type CredentialsConfig struct {
*Config
RoleARN string
SessionName string
OutputProfile string
OutputStyle string
IsJSON bool
Interactive bool
}
func NewCredentialsConfig ¶
func NewCredentialsConfig(cmd *cobra.Command) (*CredentialsConfig, error)
type ProfileBody ¶
type ProfileBody struct {
Config ProfileConfig `yaml:"config"`
Services ProfileServices `yaml:"services"`
}
type ProfileConfig ¶
type ProfileConfig struct {
AWSProfile string `yaml:"aws-profile"`
}
type ProfileServices ¶
type ProfileServices struct {
Console ProfileServicesConsole `yaml:"console"`
CodeCommit ProfileServicesCodeCommit `yaml:"codecommit"`
}
type ProfileServicesCodeCommit ¶
type ProfileServicesCodeCommit struct {
Repositories []string `yaml:"repositories"`
}
type ProfileServicesConsole ¶
type ProfileServicesConsole struct {
GovCloud bool `yaml:"gov-cloud"`
}
Click to show internal directories.
Click to hide internal directories.