topo

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package topo store client

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)

	// Query streams objects to the given channel
	Query(ctx context.Context, ch chan<- *topoapi.Object, filters *topoapi.Filters) 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