rolecreds

package
v0.0.0-...-7638cb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

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 AWS Customer Agreement (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/agreement/

package rolecreds contains functions that help procure the managed instance auth credentials

Index

Constants

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL