Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + const Action + const Activate + const Address + const Admin + const AdminIDs + const AgentID + const AgentKeyManager + const AgentSVID + const Append + const Attempt + const Attest + const Attestor + const Audience + const AuthorizeCall + const AuthorizedAs + const AuthorizedVia + const Bundle + const BundleEndpointProfile + const BundleEndpointURL + const BundleManager + const BundlesUpdate + const ByBanned + const BySelectorMatch + const BySelectors + const CA + const CAManager + const CGroupPath + const Cache + const CacheManager + const CacheType + const CallerAddr + const CallerGID + const CallerID + const CallerPath + const CallerUID + const CallerUserSID + const Catalog + const Check + const Connection + const Connections + const ContainerID + const ContainerName + const Count + const CountAgents + const CountBundles + const CountEntries + const Create + const CreateFederatedBundle + const CreateIfNotExists + const CreateJoinToken + const CreateRegistrationEntry + const CreateRegistrationEntryIfNotExists + const Csr + const CsrSpiffeID + const DNSName + const DataDir + const DatabaseType + const Datastore + const DebugAPI + const DelegatedIdentityAPI + const Delete + const DeleteFederatedBundle + const DeleteFederatedBundleMode + const DeleteRegistrationEntry + const Deleted + const DeprecatedServiceName + const Details + const DiscoveredSelectors + const Downstream + const Duration + const ElapsedTime + const EndpointSpiffeID + const Endpoints + const Entry + const Error + const Event + const EvictAgent + const Expect + const ExpectGID + const ExpectStartTime + const ExpectUID + const Expiration + const ExpiresAt + const ExpiringSVIDs + const ExpiryCheckDuration + const External + const Failures + const FederatedAdded + const FederatedBundle + const FederatedRemoved + const FederatesWith + const FederatesWithMatch + const FederationRelationship + const Fetch + const FetchBundle + const FetchEntriesUpdates + const FetchFederatedBundle + const FetchJWTBundles + const FetchJWTSVID + const FetchPrivateKey + const FetchRegistrationEntries + const FetchRegistrationEntry + const FetchSVIDsUpdates + const FetchSecrets + const FetchX509CASVID + const FetchX509SVID + const GenerateKey + const GenerateKeyPair + const Generation + const GetKey + const GetKeys + const GetNodeSelectors + const GetPublicKey + const GetPublicKeys + const IDType + const IssuedAt + const JWT + const JWTAuthorityExpiresAt + const JWTAuthorityKeyID + const JWTAuthorityPublicKeySHA256 + const JWTKey + const JWTKeys + const JWTSVID + const JWTSVIDTTL + const JoinToken + const Keys + const Kid + const Limit + const List + const ListAgents + const ListAllEntriesWithPages + const ListFederatedBundles + const ListRegistrationsByParentID + const ListRegistrationsBySPIFFEID + const ListRegistrationsBySelector + const ListRegistrationsBySelectors + const Manager + const Method + const Mint + const MintJWTSVID + const MintX509SVID + const Mode + const Network + const NewSVID + const NewSerialNumber + const Node + const NodeAttestorType + const Nonce + const Notifier + const OutdatedSVIDs + const PID + const ParentID + const Path + const PeerID + const PluginName + const PluginService + const PluginServices + const PluginType + const PodUID + const PreferredServiceName + const Prepare + const Prune + const Pruned + const Push + const PushJWTKeyUpstream + const ReadOnly + const Reason + const Reattestable + const Received + const ReceivedGID + const ReceivedStartTime + const ReceivedUID + const RefreshHint + const Registered + const RegistrationEntry + const RegistrationID + const RegistrationManager + const Reload + const RequestID + const ResourceNames + const RetryInterval + const RevisionNumber + const Rotate + const SDSAPI + const SPIFFEID + const SVID + const SVIDResponseLatency + const SVIDRotator + const SVIDSerialNumber + const SVIDStore + const SVIDType + const SVIDUpdated + const Schema + const Seconds + const Selector + const Selectors + const SelectorsAdded + const SelectorsRemoved + const SelfSigned + const SendJWTBundleLatency + const SequenceNumber + const SerialNumber + const ServerCA + const ServerKeyManager + const Set + const Sign + const SignData + const Slot + const SpireAgent + const SpireServer + const StartTime + const Status + const StatusCode + const StatusMessage + const Store + const StorePrivateKey + const StoreSVIDUpdates + const StoreSvid + const StreamSecrets + const Subject + const SubsystemName + const Sync + const TTL + const Telemetry + const TrustDomain + const TrustDomainID + const Type + const Unknown + const Update + const UpdateFederatedBundle + const UpdateRegistrationEntry + const Updated + const ValidateJWTSVID + const ValidateJWTSVIDError + const Version + const VersionInfo + const WorkloadAPI + const WorkloadAttestation + const WorkloadAttestor + const X509 + const X509AuthoritiesASN1SHA256 + const X509CA + const X509CASVID + const X509CAs + const X509SVID + const X509SVIDTTL + func EmitUptime(m Metrics, v float32) + func EmitVersion(m Metrics) + type Blackhole struct + func (Blackhole) AddSample(key []string, val float32) + func (Blackhole) AddSampleWithLabels(key []string, val float32, labels []Label) + func (Blackhole) EmitKey(key []string, val float32) + func (Blackhole) IncrCounter(key []string, val float32) + func (Blackhole) IncrCounterWithLabels(key []string, val float32, labels []Label) + func (Blackhole) MeasureSince(key []string, start time.Time) + func (Blackhole) MeasureSinceWithLabels(key []string, start time.Time, labels []Label) + func (Blackhole) SetGauge(key []string, val float32) + func (Blackhole) SetGaugeWithLabels(key []string, val float32, labels []Label) + type CallCounter struct + func StartCall(metrics Metrics, key string, keyn ...string) *CallCounter + func (c *CallCounter) AddLabel(name, value string) + func (c *CallCounter) Done(errp *error) + type DogStatsdConfig struct + Address string + UnusedKeys []string + type FileConfig struct + AllowedLabels []string + AllowedPrefixes []string + BlockedLabels []string + BlockedPrefixes []string + DogStatsd []DogStatsdConfig + InMem *InMem + M3 []M3Config + Prometheus *PrometheusConfig + Statsd []StatsdConfig + UnusedKeys []string + type InMem struct + UnusedKeys []string + type Label = metrics.Label + func SanitizeLabels(labels []Label) []Label + type M3Config struct + Address string + Env string + UnusedKeys []string + type Metrics interface + AddSample func(key []string, val float32) + AddSampleWithLabels func(key []string, val float32, labels []Label) + EmitKey func(key []string, val float32) + IncrCounter func(key []string, val float32) + IncrCounterWithLabels func(key []string, val float32, labels []Label) + MeasureSince func(key []string, start time.Time) + MeasureSinceWithLabels func(key []string, start time.Time, labels []Label) + SetGauge func(key []string, val float32) + SetGaugeWithLabels func(key []string, val float32, labels []Label) + func WithLabels(metrics Metrics, labels []Label) Metrics + type MetricsConfig struct + FileConfig FileConfig + Logger logrus.FieldLogger + ServiceName string + Sinks []Sink + type MetricsImpl struct + func NewMetrics(c *MetricsConfig) (*MetricsImpl, error) + func (m *MetricsImpl) AddSample(key []string, val float32) + func (m *MetricsImpl) AddSampleWithLabels(key []string, val float32, labels []Label) + func (m *MetricsImpl) EmitKey(key []string, val float32) + func (m *MetricsImpl) IncrCounter(key []string, val float32) + func (m *MetricsImpl) IncrCounterWithLabels(key []string, val float32, labels []Label) + func (m *MetricsImpl) ListenAndServe(ctx context.Context) error + func (m *MetricsImpl) MeasureSince(key []string, start time.Time) + func (m *MetricsImpl) MeasureSinceWithLabels(key []string, start time.Time, labels []Label) + func (m *MetricsImpl) SetGauge(key []string, val float32) + func (m *MetricsImpl) SetGaugeWithLabels(key []string, val float32, labels []Label) + type PrometheusConfig struct + Host string + Port int + UnusedKeys []string + type Sink = metrics.MetricSink + type StatsdConfig struct + Address string + UnusedKeys []string