-
Notifications
You must be signed in to change notification settings - Fork 110
/
resource.go
37 lines (27 loc) · 1.78 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
29
30
31
32
33
34
35
36
37
// 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 has 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() {}
// VisionDependencyWildcardMatcher is used internally right now for lack of a better way to
// "select" vision services that another resource has dependency on. Usage of this is an
// anti-pattern and a better matcher system should exist.
var VisionDependencyWildcardMatcher = ResourceMatcher(visionDependencyWildcardMatcher("rdk:service:vision/*:*"))
type visionDependencyWildcardMatcher string
func (v visionDependencyWildcardMatcher) notActuallyImplementedYet() {}