Documentation ¶
Index ¶
- func DefaultPolicyContext(policy *middleware.Policy) *api.PolicyContext
- func DefaultPolicyInstance(policy *middleware.Policy) *api.PolicyInstance
- func ToPolicyPath(path string) string
- func ValueOrEmpty(ctx context.Context, key interface{}) string
- type Identity
- func (id *Identity) Context() *api.IdentityContext
- func (id *Identity) ID(identity string) middleware.Identity
- func (id *Identity) IsJWT() bool
- func (id *Identity) IsManual() bool
- func (id *Identity) IsSubject() bool
- func (id *Identity) JWT() middleware.Identity
- func (id *Identity) Manual() middleware.Identity
- func (id *Identity) None() middleware.Identity
- func (id *Identity) Subject() middleware.Identity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPolicyContext ¶
func DefaultPolicyContext(policy *middleware.Policy) *api.PolicyContext
func DefaultPolicyInstance ¶
func DefaultPolicyInstance(policy *middleware.Policy) *api.PolicyInstance
func ToPolicyPath ¶
func ValueOrEmpty ¶
Types ¶
type Identity ¶
type Identity struct {
// contains filtered or unexported fields
}
func NewIdentity ¶
func NewIdentity(identityType api.IdentityType, identity string) *Identity
func (*Identity) Context ¶
func (id *Identity) Context() *api.IdentityContext
func (*Identity) JWT ¶
func (id *Identity) JWT() middleware.Identity
func (*Identity) Manual ¶ added in v0.30.0
func (id *Identity) Manual() middleware.Identity
func (*Identity) None ¶
func (id *Identity) None() middleware.Identity
func (*Identity) Subject ¶
func (id *Identity) Subject() middleware.Identity
Click to show internal directories.
Click to hide internal directories.