descriptor

package
v0.0.0-...-ae01f8c Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Mock1DescrName = "mockcnf1"
	PuntLabel      = "singleton" // only single punt per config item

)
View Source
const (
	Mock2DescrName = "mockcnf2"
)

Variables

This section is empty.

Functions

func MockCnf1ItemDeps

func MockCnf1ItemDeps(configItem proto.Message) []*cnfreg_proto.ConfigItemDependency

func MockCnf1PuntReqs

func MockCnf1PuntReqs(configItem proto.Message) *puntmgr.PuntRequests

func MockCnf2PuntReqs

func MockCnf2PuntReqs(configItem proto.Message) *puntmgr.PuntRequests

func NewMockCnf1Descriptor

func NewMockCnf1Descriptor(cnfReg cnfreg.CnfAPI, puntMgr puntmgr_plugin.PuntManagerAPI,
	log logging.PluginLogger) *kvs.KVDescriptor

func NewMockCnf2Descriptor

func NewMockCnf2Descriptor(cnfReg cnfreg.CnfAPI, puntMgr puntmgr_plugin.PuntManagerAPI,
	log logging.PluginLogger) *kvs.KVDescriptor

Types

type MockCnf1Descriptor

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

func (*MockCnf1Descriptor) Create

func (d *MockCnf1Descriptor) Create(key string, config *mockcnf.MockCnf1) (metadata interface{}, err error)

func (*MockCnf1Descriptor) Delete

func (d *MockCnf1Descriptor) Delete(key string, config *mockcnf.MockCnf1, metadata interface{}) (err error)

func (*MockCnf1Descriptor) Dependencies

func (d *MockCnf1Descriptor) Dependencies(key string, config *mockcnf.MockCnf1) (deps []kvs.Dependency)

func (*MockCnf1Descriptor) Retrieve

func (d *MockCnf1Descriptor) Retrieve(correlate []adapter.MockCnf1KVWithMetadata) (retrieved []adapter.MockCnf1KVWithMetadata, err error)

type MockCnf2Descriptor

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

func (*MockCnf2Descriptor) Create

func (d *MockCnf2Descriptor) Create(key string, config *mockcnf.MockCnf2) (metadata interface{}, err error)

func (*MockCnf2Descriptor) Delete

func (d *MockCnf2Descriptor) Delete(key string, config *mockcnf.MockCnf2, metadata interface{}) (err error)

func (*MockCnf2Descriptor) Dependencies

func (d *MockCnf2Descriptor) Dependencies(key string, config *mockcnf.MockCnf2) (deps []kvs.Dependency)

func (*MockCnf2Descriptor) Retrieve

func (d *MockCnf2Descriptor) Retrieve(correlate []adapter.MockCnf2KVWithMetadata) (retrieved []adapter.MockCnf2KVWithMetadata, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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