Documentation
¶
Index ¶
- Constants
- func ListAccounts(ctx context.Context, client *organizations.Client) ([]types.Account, error)
- func ParseNicknameMapping(mapping string) map[string]string
- func PermissionSets(ctx context.Context, client *ssoadmin.Client, instanceArn string, ...) ([]types.PermissionSet, error)
- func SsoInstance(ctx context.Context, client *ssoadmin.Client) (types.InstanceMetadata, error)
- type ConfigFile
- type FileBuilder
- type Profile
Constants ¶
View Source
const DefaultNicknamePrefix string = "NoNickname"
View Source
const SSOAccountIdKey string = "sso_account_id"
View Source
const SSORegionKey string = "sso_region"
View Source
const SSORegistrationScopesKey string = "sso_registration_scopes"
View Source
const SSORegistrationScopesValue string = "sso:account:access"
View Source
const SSORoleNameKey string = "sso_role_name"
View Source
const SSOSessionAttrKey string = "sso_session"
View Source
const SSOSessionSectionKey string = "sso-session"
View Source
const SSOStartUrlKey string = "sso_start_url"
Variables ¶
This section is empty.
Functions ¶
func ListAccounts ¶
func ParseNicknameMapping ¶
func PermissionSets ¶
func SsoInstance ¶
get the SSO instance ARN (there's only one allowed)
Types ¶
type ConfigFile ¶
type ConfigFile struct {
SessionName string
IdentityStoreId string
FriendlyName string
Region string
Profiles []Profile
NicknameMapping map[string]string
}
func (ConfigFile) HasNickname ¶
func (c ConfigFile) HasNickname(accountId string) bool
func (*ConfigFile) StartURL ¶
func (c *ConfigFile) StartURL() string
type FileBuilder ¶
type FileBuilder struct {
Config ConfigFile
}
func NewFileBuilder ¶
func NewFileBuilder(configFile ConfigFile) FileBuilder
Source Files
¶
Click to show internal directories.
Click to hide internal directories.