registry

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRegistryType

func AddRegistryType(name string, r Registry)

AddRegistryType adds a new registry type

Types

type Registry

type Registry interface {
	Config() RegistryConfig
}

func GetRegistryType

func GetRegistryType(name string) Registry

GetRegistryType gets the added registry type

type RegistryConfig

type RegistryConfig interface {
	// The configuration is defined as a protobuf message
	ProtoReflect() protoreflect.Message
	// This method is generated by protoc-gen-validate. We can override it to provide custom validation
	Validate() error
}

RegistryConfig represents the configuration used by the registry

func ParseConfig

func ParseConfig(reg Registry, data []byte) (RegistryConfig, error)

ParseConfig parses the given data and returns the configuration according to the registry

Jump to

Keyboard shortcuts

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