Documentation
¶
Index ¶
Constants ¶
const DefaultLifecycleIdentity = AllLifecycleIdentity
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityResolver ¶
type IdentityResolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func NewResolver(required LifecycleIdentity) *IdentityResolver
func (*IdentityResolver) CellEnabled ¶
func (ir *IdentityResolver) CellEnabled() bool
CellEnabled returns true if the resolver is configured to generate cell identities.
func (*IdentityResolver) DocumentEnabled ¶
func (ir *IdentityResolver) DocumentEnabled() bool
DocumentEnabled returns true if the resolver is configured to generate document identities.
type LifecycleIdentities ¶
type LifecycleIdentities []LifecycleIdentity
func (LifecycleIdentities) Contains ¶
func (ids LifecycleIdentities) Contains(id LifecycleIdentity) bool
Contains returns true if the required identity is contained in the provided identities.
type LifecycleIdentity ¶
type LifecycleIdentity int
const ( UnspecifiedLifecycleIdentity LifecycleIdentity = iota AllLifecycleIdentity DocumentLifecycleIdentity CellLifecycleIdentity )
LifecycleIdentities are used to determine which object identities should be generated. The default is to generate all identities.
The following identities are supported: - UnspecifiedLifecycleIdentity: No identity is generated. - AllLifecycleIdentity: All identities are generated. - DocumentLifecycleIdentity: Document identities are generated. - CellLifecycleIdentity: Cell identities are generated.