Documentation
¶
Index ¶
- Constants
- func KindNameToCustomProperties(kind domain.KindName) map[string]string
- type ConnectedClient
- type ConnectedClientsMessage
- type DeleteObjectMessage
- type GetObjectMessage
- type MessageProducer
- type MessageReader
- type NewChecksumMessage
- type NewObjectMessage
- type PatchObjectMessage
- type PutObjectMessage
- type ReconciliationRequestMessage
- type ReconciliationRequestMessageBatch
- type ReconciliationRequestObject
- type ServerConnectedMessage
- type VerifyObjectMessage
Constants ¶
View Source
const ( MsgPropTimestamp = "timestamp" // MsgPropCluster is the property name for the cluster name MsgPropCluster = "cluster" // MsgPropAccount is the property name for the account name MsgPropAccount = "account" // MsgPropEvent is the property name for the event type MsgPropEvent = "event" // MsgPropResourceKindGroup is the property name for the API Group of the resource MsgPropResourceKindGroup = "group" // MsgPropResourceKindVersion is the property name for the API Version of the resource MsgPropResourceKindVersion = "version" // MsgPropResourceKindResource is the property name for the API Resource of the resource MsgPropResourceKindResource = "resource" // MsgPropResourceName is the property name for the name of the resource MsgPropResourceName = "name" // MsgPropResourceNamespace is the property name for the namespace of the resource MsgPropResourceNamespace = "namespace" // MsgPropResourceVersion is the property name for the resource version of the resource MsgPropResourceVersion = "resourceVersion" MsgPropEventValueGetObjectMessage = "GetObject" MsgPropEventValuePatchObjectMessage = "PatchObject" MsgPropEventValueVerifyObjectMessage = "VerifyObject" MsgPropEventValueDeleteObjectMessage = "DeleteObject" MsgPropEventValuePutObjectMessage = "PutObject" MsgPropEventValueServerConnectedMessage = "ServerConnected" MsgPropEventValueReconciliationRequestMessage = "ReconciliationRequest" MsgPropEventValueReconciliationRequestMessageBatch = "ReconciliationRequestBatch" MsgPropEventValueConnectedClientsMessage = "ConnectedClients" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectedClient ¶ added in v0.0.64
type ConnectedClient struct {
Cluster string `json:"cluster"`
Account string `json:"account"`
SynchronizerVersion string `json:"synchronizerVersion"`
HelmVersion string `json:"helmVersion"`
ConnectionId string `json:"connectionId"`
ConnectionTime time.Time `json:"connectionTime"`
GitVersion string `json:"gitVersion"`
CloudProvider string `json:"cloudProvider"`
}
type ConnectedClientsMessage ¶ added in v0.0.64
type DeleteObjectMessage ¶
type GetObjectMessage ¶
type GetObjectMessage struct {
BaseObject []byte `json:"baseObject"`
Cluster string `json:"cluster"`
Account string `json:"account"`
Depth int `json:"depth"`
Kind string `json:"kind"`
MsgId string `json:"msgId"`
Name string `json:"name"`
Namespace string `json:"namespace"`
ResourceVersion int `json:"resourceVersion"`
}
type MessageProducer ¶
type MessageProducer interface {
// ProduceMessage produces a message to a messaging system
ProduceMessage(ctx context.Context, id domain.ClientIdentifier, eventType string, payload []byte, optionalProperties ...map[string]string) error
ProduceMessageWithoutIdentifier(ctx context.Context, eventType string, payload []byte) error
}
type MessageReader ¶ added in v0.0.40
type NewChecksumMessage ¶
type NewChecksumMessage struct {
Checksum string `json:"checksum"`
Cluster string `json:"cluster"`
Account string `json:"account"`
Depth int `json:"depth"`
Kind string `json:"kind"`
MsgId string `json:"msgId"`
Name string `json:"name"`
Namespace string `json:"namespace"`
ResourceVersion int `json:"resourceVersion"`
}
type NewObjectMessage ¶
type NewObjectMessage struct {
Cluster string `json:"cluster"`
Account string `json:"account"`
Depth int `json:"depth"`
Kind string `json:"kind"`
MsgId string `json:"msgId"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Object []byte `json:"patch"`
ResourceVersion int `json:"resourceVersion"`
}
type PatchObjectMessage ¶
type PatchObjectMessage struct {
Checksum string `json:"checksum"`
Cluster string `json:"cluster"`
Account string `json:"account"`
Depth int `json:"depth"`
Kind string `json:"kind"`
MsgId string `json:"msgId"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Patch []byte `json:"patch"`
ResourceVersion int `json:"resourceVersion"`
}
type PutObjectMessage ¶
type PutObjectMessage struct {
Checksum string `json:"checksum"`
Cluster string `json:"cluster"`
Account string `json:"account"`
Depth int `json:"depth"`
Kind string `json:"kind"`
MsgId string `json:"msgId"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Object []byte `json:"patch"`
ResourceVersion int `json:"resourceVersion"`
}
type ReconciliationRequestMessage ¶ added in v0.0.47
type ReconciliationRequestMessageBatch ¶ added in v0.0.110
type ReconciliationRequestMessageBatch struct {
Depth int `json:"depth"`
MsgId string `json:"msgId"`
Requests []ReconciliationRequestMessage `json:"requests"`
}
type ReconciliationRequestObject ¶ added in v0.0.47
type ServerConnectedMessage ¶
type VerifyObjectMessage ¶
type VerifyObjectMessage struct {
Checksum string `json:"checksum"`
Cluster string `json:"cluster"`
Account string `json:"account"`
Depth int `json:"depth"`
Kind string `json:"kind"`
MsgId string `json:"msgId"`
Name string `json:"name"`
Namespace string `json:"namespace"`
ResourceVersion int `json:"resourceVersion"`
}
Click to show internal directories.
Click to hide internal directories.