Versions in this module Expand all Collapse all v0 v0.0.310 Jun 15, 2022 Changes in this version + const ClusterScope + const DevOpsScope + const GlobalScope + const NamespaceScope + const WorkspaceScope + func AuditEventFrom(ctx context.Context) *audit.Event + func NamespaceFrom(ctx context.Context) (string, bool) + func NamespaceValue(ctx context.Context) string + func NewContext() context.Context + func NewDefaultContext() context.Context + func UserFrom(ctx context.Context) (user.Info, bool) + func WithAuditEvent(parent context.Context, ev *audit.Event) context.Context + func WithNamespace(parent context.Context, namespace string) context.Context + func WithRequestInfo(parent context.Context, info *RequestInfo) context.Context + func WithUser(parent context.Context, user user.Info) context.Context + func WithValue(parent context.Context, key interface{}, val interface{}) context.Context + type RequestInfo struct + Cluster string + DevOps string + IsKubernetesRequest bool + ResourceScope string + SourceIP string + UserAgent string + Workspace string + func RequestInfoFrom(ctx context.Context) (*RequestInfo, bool) + type RequestInfoFactory struct + APIPrefixes sets.String + GlobalResources []schema.GroupResource + GrouplessAPIPrefixes sets.String + func (r *RequestInfoFactory) NewRequestInfo(req *http.Request) (*RequestInfo, error) + type RequestInfoResolver interface + NewRequestInfo func(req *http.Request) (*RequestInfo, error)