Documentation ¶
Overview ¶
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
Package trails offer a two party master/slave relationship enabling the master to asynchronously deploy configuration changes to its slave in a stepwise manner.
## Trail API Overview
A trail represents a RESTful device state management endpoint optimized for high latency, asynchronous configuration management as found in the problem space of management of edge compute device world.
XXX: add proper API high level doc here (deleted outdated content) handler func inline doc should stay up to date though...
Detailed documentation for the various operations on the API endpoints can be at the handler functions below.
TODOs:
- properly document trails API once finalized
- abstract access control in a better managable manner and less mistake/oversight likely manner (probably descriptive/configuration style)
- ensure step and progres time can be effectively read from trail meta info probably async/delayed update to ensure scalability (e.g. once every 5 minute if there has been any step touch we update last progress etc
- ensure that devices can query steps that need enqueing efficiently
- enusre that in-sync time and status is timely updated based on step and progress
- find smart way to figure when device is in sync based on reported state
- consider enforcing sequential processing of steps to have a clean tail?
Index ¶
- func GetStateObjects(pctx context.Context, owner string, state map[string]interface{}, ...) ([]string, error)
- func IsObjectGarbage(pctx context.Context, ObjectID string, a *App) (bool, error)
- func ProcessObjectsInState(pctx context.Context, owner string, state map[string]interface{}, ...) (objects []string, err error)
- func RestoreObjects(pctx context.Context, objectList []string, a *App) error
- func UnMarkObjectAsGarbage(pctx context.Context, ObjectID string, a *App) error
- type App
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStateObjects ¶
func GetStateObjects( pctx context.Context, owner string, state map[string]interface{}, autoLink bool, a *App, ) ( []string, error, )
GetStateObjects : Get State Objects
func IsObjectGarbage ¶
IsObjectGarbage : to check if an object is garbage or not
func ProcessObjectsInState ¶
func ProcessObjectsInState( pctx context.Context, owner string, state map[string]interface{}, autoLink bool, a *App, ) ( objects []string, err error, )
ProcessObjectsInState :
1.Get Object List from the State field 2.UnMark All Objects As Garbages if they are marked as garbage
func RestoreObjects ¶
RestoreObjects : Takes the list of objects and unmarks them garbage.
Types ¶
Source Files ¶
- get-trail-pvr.go
- get-trail-steps.go
- get-trail-summary.go
- get-trail.go
- get-trails-rev-meta.go
- get-trails-rev-objects.go
- get-trails-rev-pvr.go
- get-trails-rev-state.go
- get-trails-rev.go
- get-trails-summary.go
- get-trails.go
- post-trail-steps.go
- post-trails-rev-objects.go
- post-trails.go
- put-trail-rev-cancel.go
- put-trails-rev-meta.go
- put-trails-rev-progress.go
- put-trails-rev-state.go
- service.go
- trails-api.go
- trails-utils.go