graph

package
v0.0.0-...-0a5b8f6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph map[string]asset.Asset

func (Graph) Get

func (g Graph) Get(a asset.Asset) asset.Asset

func (Graph) Resolve

func (g Graph) Resolve(a asset.Asset) error

func (Graph) Set

func (g Graph) Set(as ...asset.Asset)

type Manager

type Manager interface {
	Exists(ctx context.Context, resourceGroup, account string) (bool, error)
	Save(ctx context.Context, resourceGroup, account string, g Graph) error
	LoadPersisted(ctx context.Context, resourceGroup, account string) (PersistedGraph, error)
}

func NewManager

func NewManager(log *logrus.Entry, aead encryption.AEAD, storage storage.Manager) Manager

type PersistedGraph

type PersistedGraph map[string]json.RawMessage

func (PersistedGraph) Get

func (pg PersistedGraph) Get(is ...interface{}) error

func (PersistedGraph) Set

func (pg PersistedGraph) Set(is ...interface{}) (err error)

Set is currently only used in unit test context. If you want to use this in production, you will want to be very sure that you are not losing state that you may need later

Jump to

Keyboard shortcuts

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