Documentation ¶
Overview ¶
Package registry provides a registry for configuration documents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotRegistered indicates that the manifest kind is not registered. ErrNotRegistered = errors.New("not registered") // ErrExists indicates that the manifest is already registered. ErrExists = errors.New("exists") )
Functions ¶
func Register ¶
func Register(kind string, f NewDocumentFunc)
Register registers a manifests with the registry.
Types ¶
type NewDocumentFunc ¶
NewDocumentFunc represents a function that creates a new document by version.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry represents the document kind/version registry.
Global registry is available via top-level functions Register and New.
func (*Registry) Register ¶ added in v1.7.0
func (r *Registry) Register(kind string, f NewDocumentFunc)
Register registers a document kind with the registry.
Click to show internal directories.
Click to hide internal directories.