store

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlatformClient added in v0.5.0

type PlatformClient interface {
	FetchTopology(ctx context.Context) (topology state.Cluster, version int64, err error)
	PatchTopology(ctx context.Context, patch []byte, lastKnownVersion int64) (int64, error)
}

PlatformClient is capable of interacting with the platform.

type Store

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

Store stores the topology on the platform.

func New

func New(platformClient PlatformClient) *Store

New instantiates a new Store.

func (*Store) Write

func (s *Store) Write(ctx context.Context, st state.Cluster) error

Write writes the topology on the platform.

Jump to

Keyboard shortcuts

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