Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add general purpose RemoteCredentials and derive ECSCredentials from it
- Loading branch information
1 parent
dc6215a
commit 314c917
Showing
10 changed files
with
566 additions
and
212 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
.changes/next-release/feature-credentials_provider-683a1b9e.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type": "feature", | ||
"category": "credentials_provider", | ||
"description": "Add general purpose RemoteCredentials and derive ECSCredentials from it" | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {Credentials} from '../credentials'; | ||
export class RemoteCredentials extends Credentials { | ||
/** | ||
* Represents credentials received. | ||
* @param {object} options - Override the default (1s) timeout period. | ||
*/ | ||
constructor(options?: RemoteCredentialsOptions); | ||
} | ||
interface RemoteCredentialsOptions { | ||
httpOptions?: { | ||
/** | ||
* Timeout in milliseconds. | ||
*/ | ||
timeout?: number | ||
} | ||
maxRetries?: number | ||
} |
Oops, something went wrong.