Documentation ¶
Overview ¶
package rolecreds contains functions that help procure the managed instance auth credentials dependencies
Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package rolecreds contains functions that help procure the managed instance auth credentials
Index ¶
Constants ¶
const ( // ProviderName provides a name of managed instance Role provider ProviderName = "managedInstancesRoleProvider" // EarlyExpiryTimeWindow set a short amount of time that will mark the credentials as expired, this can avoid // calls being made with expired credentials. This value should not be too big that's greater than the default token // expiry time. For example, the token expires after 30 min and we set it to 40 min which expires the token // immediately. The value should also not be too small that it should trigger credential rotation before it expires. EarlyExpiryTimeWindow = 1 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func ManagedInstanceCredentialsInstance ¶
func ManagedInstanceCredentialsInstance() *credentials.Credentials
ManagedInstanceCredentialsInstance returns a singleton instance of Crednetials which provides credentials of a managed instance.
Types ¶
This section is empty.