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 ¶
func (r *Resources) FindResourceByType(t aipreflect.ResourceTypeName) (*aipreflect.ResourceDescriptor, bool)
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.
Click to show internal directories.
Click to hide internal directories.