Documentation ¶
Index ¶
Constants ¶
View Source
const ( InstanceIdentityFile = "/run/instanceIdentity/doc" PkcsFile = "/run/instanceIdentity/pkcs" )
Variables ¶
View Source
var ( 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)
Click to show internal directories.
Click to hide internal directories.