processcreds

package
v0.0.0-...-ea1c39e Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

processcreds takes a standard AWS credentials provider and provides a method to serialize credentials per the AWS processcreds specification.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SerializeCredentials

func SerializeCredentials(ep ExpiringProvider) ([]byte, error)

SerializeCredentials takes an ExpiringProvider and returns a serialized JSON document. It is suitable for printing to standard out in an aws credentials_process.

Types

type CredentialOutput

type CredentialOutput struct {
	Version         int
	AccessKeyId     string
	SecretAccessKey string
	SessionToken    string
	Expiration      *time.Time
}

CredentialOutput is the JSON format expected by the AWS processcreds provider

type ExpiringProvider

type ExpiringProvider interface {
	credentials.Provider
	credentials.Expirer
}

ExpiringProvider is required so we know when the credentials expire

Jump to

Keyboard shortcuts

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