aipregistry

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resources

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

Resources is a registry of resource descriptors and their relationships.

func NewResources

func NewResources(files *protoregistry.Files) (*Resources, error)

NewResources creates a new resource registry from the provided file registry. The file registry is used to resolve parent / child relationships and to find standard methods.

func (*Resources) FindResourceByType

FindDescriptorByName looks up a resource descriptor by the type name.

func (*Resources) RangeResources

func (r *Resources) RangeResources(f func(*aipreflect.ResourceDescriptor) bool)

RangeResources iterates over all registered resources while f returns true. The iteration order is undefined.

Jump to

Keyboard shortcuts

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