identity

package
v0.0.0-...-c3677c5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceIdentityFile = "/run/instanceIdentity/doc"
	PkcsFile             = "/run/instanceIdentity/pkcs"
)

Variables

View Source
var (
	ErrEC2MetadataServiceUnavailable = errors.New("EC2 metadata service unavailable")
	ErrEC2MetadataFileNotFound       = errors.New("EC2 metadata file was not found")
	ErrPkcsFileNotFound              = errors.New("PKCS file was not found")
)

Functions

This section is empty.

Types

type InstanceIdentityProvider

type InstanceIdentityProvider interface {
	GetIdentity(ctx context.Context) (*vpcapi.InstanceIdentity, error)
}

func GetEC2Provider

func GetEC2Provider() InstanceIdentityProvider

func GetEnvironmentProvider

func GetEnvironmentProvider(v *viper.Viper) (*pflag.FlagSet, InstanceIdentityProvider)

Jump to

Keyboard shortcuts

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