Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ID ¶
func ParsePolymorphicID ¶ added in v0.5.8
func ParsePolymorphicID(pid PolymorphicID) (ID, error)
func ParseString ¶ added in v0.5.5
func (*ID) MarshalText ¶
func (*ID) UnmarshalText ¶
type PolymorphicID ¶ added in v0.5.8
type PolymorphicID string
PolymorphicID is a reference of the format "u:<idstr>" for users, "m:<idstr>" for machines, and "g:<idstr>" for groups
func NewGroupPolymorphicID ¶ added in v0.5.8
func NewGroupPolymorphicID(id ID) PolymorphicID
func NewMachinePolymorphicID ¶ added in v0.5.8
func NewMachinePolymorphicID(id ID) PolymorphicID
func NewUserPolymorphicID ¶ added in v0.5.8
func NewUserPolymorphicID(id ID) PolymorphicID
func (PolymorphicID) ID ¶ added in v0.5.8
func (p PolymorphicID) ID() (ID, error)
func (PolymorphicID) IsGroup ¶ added in v0.5.8
func (p PolymorphicID) IsGroup() bool
func (PolymorphicID) IsMachine ¶ added in v0.5.8
func (p PolymorphicID) IsMachine() bool
func (PolymorphicID) IsUser ¶ added in v0.5.8
func (p PolymorphicID) IsUser() bool
func (PolymorphicID) String ¶ added in v0.5.9
func (p PolymorphicID) String() string
Click to show internal directories.
Click to hide internal directories.