-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Micah Hausler <[email protected]>
- Loading branch information
1 parent
1d552d5
commit 9ee7592
Showing
19 changed files
with
928 additions
and
1,022 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
package credential_provider | ||
|
||
import ( | ||
"github.com/aws/aws-sdk-go/aws" | ||
"github.com/aws/aws-sdk-go/aws/credentials" | ||
"context" | ||
|
||
"github.com/aws/aws-sdk-go-v2/aws" | ||
) | ||
|
||
// CredentialProvider interface defines methods for obtaining AWS credentials configuration | ||
type CredentialProvider interface { | ||
// ConfigProvider interface defines methods for obtaining AWS credentials configuration | ||
type ConfigProvider interface { | ||
// GetAWSConfig returns an AWS configuration containing credentials obtained from the provider | ||
GetAWSConfig() (*aws.Config, error) | ||
} | ||
|
||
// authTokenFetcher interface defines methods for fetching a token given a K8s namespace and service account. | ||
// It matches stscreds.TokenFetcher interface. | ||
type authTokenFetcher interface { | ||
FetchToken(ctx credentials.Context) ([]byte, error) | ||
GetAWSConfig(ctx context.Context) (aws.Config, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.