Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConfigFile = "config.yaml" ConfigDir = ".triggermesh/cli" Namespace = "local" ManifestFile = "manifest.yaml" // objects meta ContextLabel = "triggermesh.io/context" ExternalResourcesAnnotation = "triggermesh.io/external-resources" // broker default parameters MemoryBrokerImage = "gcr.io/triggermesh/memory-broker:latest" MemoryBrokerBufferSize = "100" MemoryBrokerProduceTimeout = "1s" )
TriggerMesh constant values used as default paths, configs, etc.
Variables ¶
View Source
var DefaultConfig = map[string]interface{}{ "context": defaultContext, "triggermesh.version": latestOrDefault(defaultVersion), "triggermesh.broker.image": MemoryBrokerImage, "triggermesh.broker.memory.buffer-size": MemoryBrokerBufferSize, "triggermesh.broker.memory.produce-timeout": MemoryBrokerProduceTimeout, }
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component interface {
AsK8sObject() (kubernetes.Object, error)
GetName() string
GetKind() string
GetAPIVersion() string
GetSpec() map[string]interface{}
}
Component is the common interface for all TriggerMesh components.
type Consumer ¶
type Consumer interface {
ConsumedEventTypes() ([]string, error)
GetPort(context.Context) (string, error)
}
Consumer is implemented by all components that consume events.
type Producer ¶
type Producer interface {
SetEventAttributes(map[string]string) error
GetEventTypes() ([]string, error)
GetEventSource() (string, error)
}
Producer is implemeted by all components that produce events.
type Reconcilable ¶
type Reconcilable interface {
Initialize(context.Context, map[string]string) (map[string]interface{}, error)
Finalize(context.Context, map[string]string) error
UpdateStatus(map[string]interface{})
GetExternalResources() map[string]interface{}
}
Reconcilable is implemented by the components that depend on external services and require additional initialization and finalization logic.
Click to show internal directories.
Click to hide internal directories.