schemaClient

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	PATHSEP = "/"
)

Variables

This section is empty.

Functions

func NewSchemaIndexEntry added in v0.0.54

func NewSchemaIndexEntry(schemaRsp *sdcpb.GetSchemaResponse, err error) *schemaIndexEntry

Types

type SchemaClientBound

type SchemaClientBound interface {
	// GetSchema retrieves the schema for the given path
	GetSchemaSdcpbPath(ctx context.Context, path *sdcpb.Path) (*sdcpb.GetSchemaResponse, error)
	GetSchemaSlicePath(ctx context.Context, path []string) (*sdcpb.GetSchemaResponse, error)
	// GetSchemaElements retrieves the Schema Elements for all levels of the given path
	GetSchemaElements(ctx context.Context, p *sdcpb.Path, done chan struct{}) (chan *sdcpb.GetSchemaResponse, error)
	ToPath(ctx context.Context, path []string) (*sdcpb.Path, error)
}

SchemaClientBound provides access to a certain vendor + model + version based schema

type SchemaClientBoundImpl added in v0.0.39

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

func (*SchemaClientBoundImpl) GetSchemaElements added in v0.0.39

func (scb *SchemaClientBoundImpl) GetSchemaElements(ctx context.Context, p *sdcpb.Path, done chan struct{}) (chan *sdcpb.GetSchemaResponse, error)

func (*SchemaClientBoundImpl) GetSchemaSdcpbPath added in v0.0.54

func (scb *SchemaClientBoundImpl) GetSchemaSdcpbPath(ctx context.Context, path *sdcpb.Path) (*sdcpb.GetSchemaResponse, error)

GetSchema retrieves the schema for the given path

func (*SchemaClientBoundImpl) GetSchemaSlicePath added in v0.0.54

func (scb *SchemaClientBoundImpl) GetSchemaSlicePath(ctx context.Context, path []string) (*sdcpb.GetSchemaResponse, error)

GetSchema retrieves the given schema element from the schema-server. relies on TreeSchemaCacheClientImpl.retrieveSchema(...) to source the internal lookup index (cache) of schemas

func (*SchemaClientBoundImpl) Retrieve added in v0.0.54

func (*SchemaClientBoundImpl) ToPath added in v0.0.39

func (scb *SchemaClientBoundImpl) ToPath(ctx context.Context, path []string) (*sdcpb.Path, error)

ToPath local implementation of the ToPath functinality. It takes a string slice that contains schema elements as well as key values. Via the help of the schema, the key elemens are being identified and an sdcpb.Path is returned.

Jump to

Keyboard shortcuts

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