Documentation ¶
Index ¶
- func GetAccountId(metaEndPoint string, useRegionalSTS bool, region string) (string, error)
- func GetInstanceTagValue(metaEndPoint, tagKey string) (string, error)
- func GetRunsAsUidGid(opts *sc.Options) (int, int)
- func GetSvcNames(svcs []sc.Service) string
- func InitAccessProfileEnvConfig() (*sc.AccessProfileConfig, error)
- func InitAccessProfileFileConfig(fileName string) (*sc.AccessProfileConfig, error)
- func InitCredsConfig(roleSuffix, accessProfileSeparator string, useRegionalSTS bool, region string) (*sc.ConfigAccount, *sc.AccessProfileConfig, error)
- func InitEnvConfig(config *sc.Config) (*sc.Config, *sc.ConfigAccount, error)
- func InitFileConfig(fileName, metaEndPoint string, useRegionalSTS bool, region, account string) (*sc.Config, *sc.ConfigAccount, error)
- func InitProfileConfig(metaEndPoint, roleSuffix, accessProfileSeparator string) (*sc.ConfigAccount, *sc.AccessProfileConfig, error)
- func NewOptions(config *sc.Config, configAccount *sc.ConfigAccount, ...) (*sc.Options, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccountId ¶
func GetInstanceTagValue ¶ added in v1.11.22
func GetRunsAsUidGid ¶ added in v1.10.52
GetRunsAsUidGid returns the uid/gid that the tool should continue to run as based on the configured setup. For example, if all services have been configured to have the same uid/gid for keys and certs, then the tool can drop its access from root to the specified user. If they're multiple users defined then the return values would be -1/-1
func GetSvcNames ¶
GetSvcNames returns comma separated list of service names
func InitAccessProfileEnvConfig ¶ added in v1.11.9
func InitAccessProfileEnvConfig() (*sc.AccessProfileConfig, error)
func InitAccessProfileFileConfig ¶ added in v1.11.9
func InitAccessProfileFileConfig(fileName string) (*sc.AccessProfileConfig, error)
func InitCredsConfig ¶
func InitCredsConfig(roleSuffix, accessProfileSeparator string, useRegionalSTS bool, region string) (*sc.ConfigAccount, *sc.AccessProfileConfig, error)
func InitEnvConfig ¶
func InitFileConfig ¶
func InitProfileConfig ¶
func InitProfileConfig(metaEndPoint, roleSuffix, accessProfileSeparator string) (*sc.ConfigAccount, *sc.AccessProfileConfig, error)
func NewOptions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.