Documentation ¶
Overview ¶
Package identity defines the various types to work with the Pebble identities file.
This is a subset of the types in github.com/canonical/pebble/cmd, copied directly from that repository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentitiesFile ¶
type Identity ¶
type Identity struct { Access IdentityAccess `json:"access" yaml:"access"` // One or more of the following type-specific configuration fields must be // non-nil (currently the only type is "local"). Local *LocalIdentity `json:"local,omitempty" yaml:"local,omitempty"` }
Identity holds the configuration of a single identity.
type IdentityAccess ¶
type IdentityAccess string
IdentityAccess defines the access level for an identity.
const ( AdminAccess IdentityAccess = "admin" ReadAccess IdentityAccess = "read" UntrustedAccess IdentityAccess = "untrusted" )
type LocalIdentity ¶
type LocalIdentity struct { // This is a pointer so we can distinguish between not set and 0 (a valid // user-id meaning root). UserID *uint32 `json:"user-id" yaml:"user-id"` }
LocalIdentity holds identity configuration specific to the "local" type (for ucrednet/UID authentication).
Click to show internal directories.
Click to hide internal directories.