/
resource_prepare_interface.go
29 lines (26 loc) · 1.14 KB
/
resource_prepare_interface.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
package resourceprepares
import (
cappv1alpha1 "github.com/dana-team/container-app-operator/api/v1alpha1"
)
type ResourceManager interface {
CreateOrUpdateObject(capp cappv1alpha1.Capp) error
CleanUp(capp cappv1alpha1.Capp) error
IsRequired(capp cappv1alpha1.Capp) bool
}
const (
eventCappFlowCreationFailed = "FlowCreationFailed"
eventCappFlowCreated = "FlowCreated"
eventCappDomainMappingCreationFailed = "DomainMappingCreationFailed"
eventCappKnativeServiceCreationFailed = "KnativeServiceCreationFailed"
eventCappOutputCreationFailed = "OutputCreationFailed"
eventCappOutputCreated = "OutputCreated"
eventCappDisabled = "CappDisabled"
eventCappEnabled = "CappEnabled"
eventNFSPVCCreationFailed = "NfsPvcCreationFailed"
eventNFSPVCCreated = "NfsPvcCreated"
DomainMapping = "domainMapping"
KnativeServing = "knativeServing"
Flow = "flow"
Output = "output"
NFSPVC = "NfsPvc"
)