workloadapi

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDiscoveredSelectorsSample

func AddDiscoveredSelectorsSample(m telemetry.Metrics, count float32)

AddDiscoveredSelectorsSample count of discovered selectors during an agent Workload Attest call

func IncrConnectionCounter

func IncrConnectionCounter(m telemetry.Metrics)

IncrConnectionCounter indicate Workload API connection (some connection is made, running total count)

func IncrFetchJWTBundlesCounter

func IncrFetchJWTBundlesCounter(m telemetry.Metrics)

IncrFetchJWTBundlesCounter indicate call to Workload API, on fetching JWT bundles.

func IncrUpdateJWTBundlesCounter

func IncrUpdateJWTBundlesCounter(m telemetry.Metrics)

IncrUpdateJWTBundlesCounter indicate call to Workload API, on updating JWT bundles

func IncrValidJWTSVIDCounter

func IncrValidJWTSVIDCounter(m telemetry.Metrics, id string, aud string)

IncrValidJWTSVIDCounter indicate call to Workload API, on validating JWT SVID. Takes SVID SPIFFE ID and request audience

func IncrValidJWTSVIDErrCounter

func IncrValidJWTSVIDErrCounter(m telemetry.Metrics)

IncrValidJWTSVIDErrCounter indicate call to Workload API, on error validating JWT SVID.

func MeasureFetchX509SVIDLatency

func MeasureFetchX509SVIDLatency(m telemetry.Metrics, t time.Time)

MeasureFetchX509SVIDLatency emit metric on agent Workload API, latency of fetching X509SVID

func MeasureSendJWTBundleLatency

func MeasureSendJWTBundleLatency(m telemetry.Metrics, t time.Time)

MeasureSendJWTBundleLatency emit metric on agent Workload API, latency of sending JWT Bundle to workload

func SetConnectionTotalGauge

func SetConnectionTotalGauge(m telemetry.Metrics, connections int32)

SetConnectionTotalGauge sets the number of active Workload API connections

func SetFetchJWTSVIDTTLGauge

func SetFetchJWTSVIDTTLGauge(m telemetry.Metrics, id string, val float32)

SetFetchJWTSVIDTTLGauge set gauge for agent Workload API, TTL of fetching JWT SVID for a specific SPIFFE ID

func SetFetchX509SVIDTTLGauge

func SetFetchX509SVIDTTLGauge(m telemetry.Metrics, id string, val float32)

SetFetchX509SVIDTTLGauge set gauge for agent Workload API, TTL of fetching X509 SVID for a specific SPIFFE ID

func StartAttestationCall

func StartAttestationCall(m telemetry.Metrics) *telemetry.CallCounter

StartAttestationCall return metric for agent's Workload API Attestor for overall attestation

func StartAttestorCall

func StartAttestorCall(m telemetry.Metrics, aType string) *telemetry.CallCounter

StartAttestorCall return metric for agent's Workload API Attestor for a specific attestor

func StartFetchJWTBundlesCall

func StartFetchJWTBundlesCall(m telemetry.Metrics) *telemetry.CallCounter

StartFetchJWTBundlesCall return metric for agent's Workload API, on fetching the workload's JWT Bundles

func StartFetchJWTSVIDCall

func StartFetchJWTSVIDCall(m telemetry.Metrics) *telemetry.CallCounter

StartFetchJWTSVIDCall return metric for agent's Workload API, on fetching the workload's JWT SVID

func StartFetchX509SVIDCall

func StartFetchX509SVIDCall(m telemetry.Metrics) *telemetry.CallCounter

StartFetchX509SVIDCall return metric for agent's Workload API, on fetching the workload's X509 SVID

Types

This section is empty.

Jump to

Keyboard shortcuts

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