Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultName = "kcm-am"
)
Variables ¶
This section is empty.
Functions ¶
func NewAccessManagement ¶
func NewAccessManagement(opts ...Opt) *kcmv1.AccessManagement
func NewResourceRule ¶
func NewResourceRule(kind string, names ...string) kcmv1.ResourceRule
NewResourceRule builds a kcmv1.ResourceRule selecting the given object names.
APIGroup is left empty so kcmv1.ResourceRule.GroupKind defaults it to the built-in k0rdent.mirantis.com group for a built-in Kind; for custom kinds, set APIGroup explicitly.
Types ¶
type Opt ¶
type Opt func(am *kcmv1.AccessManagement)
func WithAccessRules ¶
func WithAccessRules(accessRules []kcmv1.AccessRule) Opt
func WithLabels ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.