authmetrics

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMetrics

type AuthMetrics interface {
	// LastAuthTime returns the approximate last time a service account key was used to authenticate, based
	// on data from the Cloud Metrics API.
	// If the key has not been used to authenticate within the last 7 days, nil is returned
	LastAuthTime(project string, serviceAccountEmail string, keyID string) (*time.Time, error)
}

AuthMetrics returns the last time a service account key was used to authenticate

func New

func New(metricClient *monitoring.MetricClient, iam *iam.Service) AuthMetrics

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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