Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrantRule ¶
type GrantRule struct { Owner pyfmt.Format Privilege pyfmt.Format Database pyfmt.Format Schema pyfmt.Format Object pyfmt.Format To pyfmt.Format `mapstructure:"role"` }
type MembershipRule ¶
func (MembershipRule) Generate ¶
func (m MembershipRule) Generate(values map[string]string) role.Membership
func (MembershipRule) IsStatic ¶
func (m MembershipRule) IsStatic() bool
func (MembershipRule) String ¶
func (m MembershipRule) String() string
type RoleRule ¶
type Rules ¶
type Rules []Step
Rules holds a set of rules to generate wanted state.
func (Rules) DropGrants ¶
func (Rules) HasLDAPSearches ¶
func (Rules) SplitStaticRules ¶
type SearchResult ¶
type SearchResult struct {
// contains filtered or unexported fields
}
type Step ¶
type Step struct { Description string LdapSearch ldap.Search RoleRules []RoleRule `mapstructure:"roles"` GrantRules []GrantRule `mapstructure:"grants"` }
func (Step) HasLDAPSearch ¶
func (Step) HasSubsearch ¶
func (*Step) InferAttributes ¶
func (s *Step) InferAttributes()
func (Step) IterFields ¶
Yields all {attr} from all formats in item.
func (*Step) ReplaceAttributeAsSubentryField ¶
func (s *Step) ReplaceAttributeAsSubentryField()
func (Step) SplitStaticItems ¶
Click to show internal directories.
Click to hide internal directories.