update

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociatedUpdate

type AssociatedUpdate struct {
	Update
	Storage storage.Storage
}

AssociatedUpdate bundles together an Update and a Storage implementation. This is used by SyncStorage to query the correct Storage for the updated Object.

type ObjectEvent

type ObjectEvent byte

ObjectEvent is an enum describing a change in an Object's state.

const (
	ObjectEventNone   ObjectEvent = iota // 0
	ObjectEventCreate                    // 1
	ObjectEventModify                    // 2
	ObjectEventDelete                    // 3
)

func (ObjectEvent) String

func (o ObjectEvent) String() string

type Update

type Update struct {
	Event   ObjectEvent
	APIType runtime.Object
}

Update bundles an FileEvent with an APIType for Storage retrieval.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL