Documentation ¶
Index ¶
- func AddMetricsLabel(ctx context.Context, name, value string)
- func AddRPCAuditFields(ctx context.Context, fields logrus.Fields)
- func AuditLog(ctx context.Context) (audit.Logger, bool)
- func AuditRPC(ctx context.Context)
- func AuditRPCWithError(ctx context.Context, err error)
- func AuditRPCWithFields(ctx context.Context, fields logrus.Fields)
- func AuditRPCWithTypesStatus(ctx context.Context, s *types.Status, fieldsFunc func() logrus.Fields)
- func CallCounter(ctx context.Context) api.CallCounter
- func CallerAddr(ctx context.Context) net.Addr
- func CallerAdminEntries(ctx context.Context) ([]*types.Entry, bool)
- func CallerDownstreamEntries(ctx context.Context) ([]*types.Entry, bool)
- func CallerID(ctx context.Context) (spiffeid.ID, bool)
- func CallerIsAdmin(ctx context.Context) bool
- func CallerIsAgent(ctx context.Context) bool
- func CallerIsDownstream(ctx context.Context) bool
- func CallerIsLocal(ctx context.Context) bool
- func CallerX509SVID(ctx context.Context) (*x509.Certificate, bool)
- func Logger(ctx context.Context) logrus.FieldLogger
- func Names(ctx context.Context) (api.Names, bool)
- func RateLimit(ctx context.Context, count int) error
- func RateLimiter(ctx context.Context) (api.RateLimiter, bool)
- func WithAgentCaller(ctx context.Context) context.Context
- func WithAuditLog(ctx context.Context, auditLog audit.Logger) context.Context
- func WithCallCounter(ctx context.Context, counter api.CallCounter) context.Context
- func WithCallerAddr(ctx context.Context, addr net.Addr) context.Context
- func WithCallerAdminEntries(ctx context.Context, entries []*types.Entry) context.Context
- func WithCallerDownstreamEntries(ctx context.Context, entries []*types.Entry) context.Context
- func WithCallerID(ctx context.Context, id spiffeid.ID) context.Context
- func WithCallerX509SVID(ctx context.Context, x509SVID *x509.Certificate) context.Context
- func WithLocalCaller(ctx context.Context) context.Context
- func WithLogger(ctx context.Context, log logrus.FieldLogger) context.Context
- func WithNames(ctx context.Context, names api.Names) context.Context
- func WithRateLimiter(ctx context.Context, limiter api.RateLimiter) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMetricsLabel ¶
func AddRPCAuditFields ¶ added in v1.0.1
func AuditRPCWithError ¶ added in v1.0.1
func AuditRPCWithFields ¶ added in v1.0.1
func AuditRPCWithTypesStatus ¶ added in v1.0.1
func CallCounter ¶
func CallCounter(ctx context.Context) api.CallCounter
func CallerAddr ¶
CallerAddr returns the caller address.
func CallerAdminEntries ¶
CallerAdminEntries returns the admin entries for the caller. If the caller is not an admin caller, it returns false.
func CallerDownstreamEntries ¶
CallerDownstreamEntries returns the downstream entries for the caller. If the caller is not a downstream caller, it returns false.
func CallerIsAdmin ¶
CallerIsAdmin returns true if the caller is an admin caller.
func CallerIsAgent ¶
CallerIsAgent returns true if the caller is an agent.
func CallerIsDownstream ¶
CallerIsDownstream returns true if the caller is a downstream caller.
func CallerIsLocal ¶
CallerIsLocal returns true if the caller is local.
func CallerX509SVID ¶
func CallerX509SVID(ctx context.Context) (*x509.Certificate, bool)
CallerX509SVID returns the caller X509SVID, if available.
func RateLimiter ¶
func RateLimiter(ctx context.Context) (api.RateLimiter, bool)
func WithAgentCaller ¶
WithAgentCaller returns a context whether the caller is tagged as an agent.
func WithAuditLog ¶ added in v1.0.1
func WithCallCounter ¶
func WithCallerAddr ¶
WithCallerAddr returns a context with the given address.
func WithCallerAdminEntries ¶
WithCallerAdminEntries returns a context with the given entries.
func WithCallerDownstreamEntries ¶
WithCallerDownstreamEntries returns a context with the given entries.
func WithCallerID ¶
WithCallerID returns a context with the given ID.
func WithCallerX509SVID ¶
WithCallerX509SVID returns a context with the given X509SVID.
func WithLocalCaller ¶
WithLocalCaller returns a context whether the caller is tagged as local.
func WithLogger ¶
func WithRateLimiter ¶
Types ¶
This section is empty.