mem

package
v0.0.0-...-5f7f3f3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("service not found")
)

Functions

func Infrastructure

func Infrastructure(clusters map[string]string) datamodel.Infrastructure

Types

type DataModel

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

DataModel is an implementation of datamodel.DataModel which stores the set of services in memory.

func NewDataModel

func NewDataModel() *DataModel

func (*DataModel) CreateGlobalService

func (d *DataModel) CreateGlobalService(g *datamodel.GlobalService) error

func (*DataModel) DeleteGlobalService

func (d *DataModel) DeleteGlobalService(name string) (*datamodel.GlobalService, error)

func (*DataModel) GetGlobalService

func (d *DataModel) GetGlobalService(name string) (*datamodel.GlobalService, error)

func (*DataModel) Handler

func (d *DataModel) Handler(cluster string) sdk.Handler

func (*DataModel) ListGlobalServices

func (d *DataModel) ListGlobalServices() map[string]*datamodel.GlobalService

func (*DataModel) UpdateGlobalService

func (d *DataModel) UpdateGlobalService(g *datamodel.GlobalService) error

Jump to

Keyboard shortcuts

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