store

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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.8.0

type PlatformClient interface {
	FetchTopology(ctx context.Context) (reference topology.Reference, 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 topology.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