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
Click to show internal directories.
Click to hide internal directories.