Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Config Module, Add Config Package Documentation and Examples, Improve Overall SDK Readme #822

Merged
merged 3 commits into from
Oct 15, 2020

Conversation

skmcgrail
Copy link
Member

Refactored config module, add config package documentation and examples, and improved the overall SDK readme.

Comment on lines +356 to +365
// WithWebIdentityRoleCredentialOptions wraps a function and satisfies the EC2RoleCredentialOptionsProvider interface
type WithWebIdentityRoleCredentialOptions func(*stscreds.WebIdentityRoleOptions)

// GetWebIdentityCredentialProviderOptions returns the wrapped function
func (w WithWebIdentityCredentialProviderOptions) GetWebIdentityCredentialProviderOptions() (func(*stscreds.WebIdentityRoleOptions), bool, error) {
// GetWebIdentityRoleCredentialOptions returns the wrapped function
func (w WithWebIdentityRoleCredentialOptions) GetWebIdentityRoleCredentialOptions() (func(*stscreds.WebIdentityRoleOptions), bool, error) {
return w, true, nil
}

// GetWebIdentityCredentialProviderOptions searches the slice of configs and returns the first function found
func GetWebIdentityCredentialProviderOptions(configs Configs) (f func(*stscreds.WebIdentityRoleOptions), found bool, err error) {
// getWebIdentityCredentialProviderOptions searches the slice of configs and returns the first function found
func getWebIdentityCredentialProviderOptions(configs configs) (f func(*stscreds.WebIdentityRoleOptions), found bool, err error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should rename the private getter as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants