topo

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Create creates a topology object
	Create(ctx context.Context, object *topoapi.Object) error

	// Update updates an existing topology object
	Update(ctx context.Context, object *topoapi.Object) error

	// Get gets a topology object
	Get(ctx context.Context, id topoapi.ID) (*topoapi.Object, error)

	// List lists topology objects
	List(ctx context.Context, filters *topoapi.Filters) ([]topoapi.Object, error)

	// Delete deletes a topology object using the given ID
	Delete(ctx context.Context, object *topoapi.Object) error

	// Watch watches topology events
	Watch(ctx context.Context, ch chan<- topoapi.Event, filters *topoapi.Filters) error
}

Store is a topology store client interface

func NewStore

func NewStore(topoEndpoint string, opts ...grpc.DialOption) (Store, error)

NewStore creates a new topology store

Jump to

Keyboard shortcuts

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