Documentation ¶
Overview ¶
package auth provides authentication-related functionality
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA interface {
Sign(Certificate) Certificate
}
type CapFlags ¶
type CapFlags uint32
CapFlags specifies permission flags for the Capability.
Leaving the flags at 0 will remove all rights from that point onwards. For example, if person A has a grant with CapPermFull for
/.orgs/fi/some-company/some-team/*
putting a grant with CapFlags(0) at
/.orgs/fi/some-company/some-team/.identities/*
would mean A had otherwise full access to everything under /.orgs/fi/some-company/some-team/, except for the ./identities subfolder
type Capability ¶
A Capability gives access to something according to a path and permission flags.
type Certificate ¶
type Certificate interface { common.Hashable PublicKey() sign.PublicKey Attributes() Attrs // Subject returns the subject this certificate covers. Must be a / separated path. Example: // /identity/ // Subject() string // TODO: get everything from Attributes? Fingerprint() sign.Fingerprint encoding.TextMarshaler encoding.TextUnmarshaler }
Click to show internal directories.
Click to hide internal directories.