Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
func NewContext(ctx context.Context, level AccessLevel) context.Context
Types ¶
type AccessLevel ¶
type AccessLevel uint8
const ( ReadWrite AccessLevel = iota ReadOnly )
func LevelFromContext ¶
func LevelFromContext(ctx context.Context) (AccessLevel, bool)
type NamespaceRegexp ¶
type NamespaceRegexp struct {
// contains filtered or unexported fields
}
func NewFromContext ¶
func NewFromContext(ctx context.Context) NamespaceRegexp
func (NamespaceRegexp) Match ¶
func (level NamespaceRegexp) Match(namespace string) bool
Click to show internal directories.
Click to hide internal directories.