Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContextKeyClientIdentifier contextKey = "clientIdentifier" ContextKeyDepth contextKey = "depth" ContextKeyMsgId contextKey = "msgId" )
Variables ¶
View Source
var EventValues = []any{"newChecksum", "objectAdded", "objectDeleted", "objectModified", "getObject", "patchObject", "putObject", "ping"}
View Source
var ValuesToEvent = map[any]Event{ EventValues[EventNewChecksum]: EventNewChecksum, EventValues[EventObjectAdded]: EventObjectAdded, EventValues[EventObjectDeleted]: EventObjectDeleted, EventValues[EventObjectModified]: EventObjectModified, EventValues[EventGetObject]: EventGetObject, EventValues[EventPatchObject]: EventPatchObject, EventValues[EventPutObject]: EventPutObject, EventValues[EventPing]: EventPing, }
Functions ¶
This section is empty.
Types ¶
type Callbacks ¶
type Callbacks struct { DeleteObject func(ctx context.Context, id KindName) error GetObject func(ctx context.Context, id KindName, baseObject []byte) error PatchObject func(ctx context.Context, id KindName, checksum string, patch []byte) error PutObject func(ctx context.Context, id KindName, object []byte) error VerifyObject func(ctx context.Context, id KindName, checksum string) error }
type ClientIdentifier ¶ added in v0.0.5
func (ClientIdentifier) String ¶ added in v0.0.5
func (c ClientIdentifier) String() string
type Generic ¶
type Generic struct { Depth int Event *Event Kind *Kind MsgId string AdditionalProperties map[string]interface{} }
Generic represents a Generic model.
type GetObject ¶
type GetObject struct { BaseObject string Depth int Event *Event Kind *Kind MsgId string Name string Namespace string AdditionalProperties map[string]interface{} }
GetObject represents a GetObject model.
type Kind ¶
type Kind struct { Group string Version string Resource string AdditionalProperties map[string]interface{} }
Kind represents a Kind model.
type NewChecksum ¶
type NewChecksum struct { Checksum string Depth int Event *Event Kind *Kind MsgId string Name string Namespace string AdditionalProperties map[string]interface{} }
NewChecksum represents a NewChecksum model.
type ObjectAdded ¶
type ObjectAdded struct { Checksum string Depth int Event *Event Kind *Kind MsgId string Name string Namespace string Object string AdditionalProperties map[string]interface{} }
ObjectAdded represents a ObjectAdded model.
type ObjectDeleted ¶
type ObjectDeleted struct { Depth int Event *Event Kind *Kind MsgId string Name string Namespace string AdditionalProperties map[string]interface{} }
ObjectDeleted represents a ObjectDeleted model.
type ObjectModified ¶
type ObjectModified struct { Checksum string Depth int Event *Event Kind *Kind MsgId string Name string Namespace string Object string AdditionalProperties map[string]interface{} }
ObjectModified represents a ObjectModified model.
type PatchObject ¶
type PatchObject struct { Checksum string Depth int Event *Event Kind *Kind MsgId string Name string Namespace string Patch string AdditionalProperties map[string]interface{} }
PatchObject represents a PatchObject model.
Click to show internal directories.
Click to hide internal directories.