Versions in this module Expand all Collapse all v0 v0.1.0 Jan 16, 2024 Changes in this version + const InstanceStatusRunning + const InstanceStatusStopping + type InstanceGetter = func(ctx context.Context, projectID, zone, instanceName string) (*compute.Instance, error) + type InstanceIdentity struct + Claims1 *jwt.Claims + Claims2 *InstanceIdentityJWTClaims + type InstanceIdentityGCEJWTClaims struct + InstanceCreationTimestamp int64 + InstanceID string + InstanceName string + LicenseID []string + ProjectID string + ProjectNumber int64 + Zone string + type InstanceIdentityJWTClaims struct + AuthorizedParty string + Email string + Google ... + type InstanceIdentityVerifier struct + func NewInstanceIdentityVerifier(audience string, opts ...InstanceIdentityVerifierOption) (*InstanceIdentityVerifier, error) + func (a *InstanceIdentityVerifier) Verify(ctx context.Context, jwtString string) (*InstanceIdentity, error) + type InstanceIdentityVerifierOption = func(a *InstanceIdentityVerifier) + func WithAllowNonUserManagedServiceAccounts(v bool) InstanceIdentityVerifierOption + func WithInstanceGetter(v InstanceGetter) InstanceIdentityVerifierOption + func WithJWTClaimsLeeway(v time.Duration) InstanceIdentityVerifierOption + func WithKeySetProvider(v google.KeySetProvider) InstanceIdentityVerifierOption + func WithMaximumJWTNotExpiredPeriod(v time.Duration) InstanceIdentityVerifierOption + func WithServiceAccountGetter(v google.ServiceAccountGetter) InstanceIdentityVerifierOption + func WithTimeSource(v func() time.Time) InstanceIdentityVerifierOption + type VerifyError struct + func (v *VerifyError) Error() string