Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserAccessor ¶
type UserAccessor interface {
// EnsureUser adds the user to the object if it is not already present.
// Returns true if the user was added.
// Uses the prefix where applicable.
EnsureUser(prefix, user string) (added bool)
// HasUser returns true if the user is present in the object.
// Uses the prefix where applicable.
HasUser(prefix, user string) bool
}
UserAccessor is an interface for accessing users from objects supported by this project.
func NewUserAccessor ¶
func NewUserAccessor(obj client.Object) (UserAccessor, error)
NewUserAccessor returns a UserAccessor for the given object or an error if the object is not supported.
Click to show internal directories.
Click to hide internal directories.