statesync

package
v0.0.0-...-102eb4e Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection int
const (
	Datasets Collection = iota
	CheckoutDatasetPolicies
)

type StateSyncUnit

type StateSyncUnit struct {
	// contains filtered or unexported fields
}

Describes the synchronization of the types defined in this package. It uses protobuf types and syncs

func NewStateSyncUnit

func NewStateSyncUnit() (*StateSyncUnit, error)

func (*StateSyncUnit) RegisterIfritClient

func (d *StateSyncUnit) RegisterIfritClient(c *ifrit.Client)

func (*StateSyncUnit) SyncState

func (d *StateSyncUnit) SyncState() string

func (*StateSyncUnit) SynchronizeDatasets

func (d *StateSyncUnit) SynchronizeDatasets(ctx context.Context, datasets map[string]*pb.Dataset, targetAddr string) (map[string]*pb.Dataset, error)

Jump to

Keyboard shortcuts

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