-
Notifications
You must be signed in to change notification settings - Fork 110
/
resource.go
28 lines (21 loc) · 1.32 KB
/
resource.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Package internal is used only within this package and all code contained within
// is not supported and should be considered experimetnal and subject to change.
package internal
// ResourceMatcher matches resource expressions against resources.
// TODO(PRODUCT-460): right now this is just simple builtin strings and there is no real
// matching system.
type ResourceMatcher interface {
notActuallyImplementedYet()
}
// ComponentDependencyWildcardMatcher is used internally right now for lack of a better way to
// "select" resources that another resource is dependency on. Usage of this is an
// anti-pattern and a better matcher system should exist.
var ComponentDependencyWildcardMatcher = ResourceMatcher(componentDependencyWildcardMatcher("*:component:*/*:*"))
type componentDependencyWildcardMatcher string
func (c componentDependencyWildcardMatcher) notActuallyImplementedYet() {}
// SLAMDependencyWildcardMatcher is used internally right now for lack of a better way to
// "select" slam services that another resource is dependency on. Usage of this is an
// anti-pattern and a better matcher system should exist.
var SLAMDependencyWildcardMatcher = ResourceMatcher(slamDependencyWildcardMatcher("rdk:service:slam/*:*"))
type slamDependencyWildcardMatcher string
func (s slamDependencyWildcardMatcher) notActuallyImplementedYet() {}