store

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	platform.TopologyConfig

	Token string
}

Config represents the topology store config.

type Store

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

Store stores a state in a Git repository.

func New

func New(ctx context.Context, cfg Config) (*Store, error)

New instantiates a new Store.

func (*Store) Write

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

Write writes the given cluster state in the current git repository.

Jump to

Keyboard shortcuts

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