Documentation
¶
Index ¶
- func Matches(selector *ackv1alpha1.IAMRoleSelector, ctx MatchContext) bool
- type Cache
- func (c *Cache) GetMatchingSelectors(namespace string, namespaceLabels map[string]string, ...) ([]*ackv1alpha1.IAMRoleSelector, error)
- func (c *Cache) GetSelector(name string) (*ackv1alpha1.IAMRoleSelector, bool)
- func (c *Cache) HasSynced() bool
- func (c *Cache) ListSelectors() []*ackv1alpha1.IAMRoleSelector
- func (c *Cache) Matches(resource runtime.Object) ([]*ackv1alpha1.IAMRoleSelector, error)
- func (c *Cache) Run(client dynamic.Interface, namespaceClient kubernetes.Interface, ...)
- type MatchContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Matches ¶
func Matches(selector *ackv1alpha1.IAMRoleSelector, ctx MatchContext) bool
Matches checks if a selector matches the given context Rules: AND between different field types, OR within arrays
Types ¶
type Cache ¶
Cache wraps the informer for IAMRoleSelector resources
func (*Cache) GetMatchingSelectors ¶
func (c *Cache) GetMatchingSelectors( namespace string, namespaceLabels map[string]string, gvk schema.GroupVersionKind, ) ([]*ackv1alpha1.IAMRoleSelector, error)
GetMatchingSelectors returns the list of IAMRoleSelectors that match the given context
func (*Cache) GetSelector ¶
func (c *Cache) GetSelector(name string) (*ackv1alpha1.IAMRoleSelector, bool)
GetSelector returns a specific selector by name (useful for testing/debugging)
func (*Cache) ListSelectors ¶
func (c *Cache) ListSelectors() []*ackv1alpha1.IAMRoleSelector
ListSelectors returns all valid selectors in the cache
func (*Cache) Matches ¶
func (c *Cache) Matches(resource runtime.Object) ([]*ackv1alpha1.IAMRoleSelector, error)
Matches returns a list of IAMRoleSelectors that match the given resource. This function should only be called after the cache has been started and synced.
type MatchContext ¶
type MatchContext struct {
Namespace string
NamespaceLabels map[string]string
GVK schema.GroupVersionKind
}
MatchContext contains the attributes to match against an IAMRoleSelector
Click to show internal directories.
Click to hide internal directories.