Documentation
¶
Index ¶
Constants ¶
View Source
const ( RealtimeSyncEventType = "sync-event" ImportEventType = "import-event" InventoryEventStorageType = "storage.googleapis.com/Bucket" InventoryEventFunctionType = "run.googleapis.com/Service" )
Variables ¶
View Source
var (
ErrMalformedEvent = errors.New("malformed event")
)
Functions ¶
func NewInventoryEventBuilder ¶
func NewInventoryEventBuilder[T IInventoryEvent]() entities.EventBuilder
Types ¶
type IInventoryEvent ¶
type InventoryEvent ¶
type InventoryEvent struct {
Asset InventoryEventAsset `json:"asset"`
PriorAsset InventoryEventAsset `json:"priorAsset"`
PriorAssetState string `json:"priorAssetState"`
Window InventoryEventWindow `json:"window"`
Deleted bool `json:"deleted"`
}
func (InventoryEvent) Ancestors ¶
func (e InventoryEvent) Ancestors() []string
func (InventoryEvent) AssetType ¶
func (e InventoryEvent) AssetType() string
func (InventoryEvent) EventType ¶
func (e InventoryEvent) EventType() string
func (InventoryEvent) Name ¶
func (e InventoryEvent) Name() string
func (InventoryEvent) Operation ¶
func (e InventoryEvent) Operation() entities.Operation
type InventoryEventAsset ¶
type InventoryEventBuilder ¶
type InventoryEventBuilder[T IInventoryEvent] struct{}
func (*InventoryEventBuilder[T]) GetPipelineEvent ¶
func (b *InventoryEventBuilder[T]) GetPipelineEvent(_ context.Context, data []byte) (entities.PipelineEvent, error)
type InventoryEventWindow ¶
type InventoryEventWindow struct {
StartTime string `json:"startTime"`
}
type InventoryImportEvent ¶
func (InventoryImportEvent) Ancestors ¶
func (e InventoryImportEvent) Ancestors() []string
func (InventoryImportEvent) AssetType ¶
func (e InventoryImportEvent) AssetType() string
func (InventoryImportEvent) EventType ¶
func (e InventoryImportEvent) EventType() string
func (InventoryImportEvent) Name ¶
func (e InventoryImportEvent) Name() string
func (InventoryImportEvent) Operation ¶
func (e InventoryImportEvent) Operation() entities.Operation
Click to show internal directories.
Click to hide internal directories.