Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterType

func RegisterType(res model.Resource)

func RegistryListType

func RegistryListType(resList model.ResourceList)

Types

type TypeRegistry

type TypeRegistry interface {
	RegisterType(model.Resource) error
	RegisterListType(model.ResourceList) error

	NewObject(model.ResourceType) (model.Resource, error)
	NewList(model.ResourceType) (model.ResourceList, error)

	ObjectTypes() []model.ResourceType
	ListTypes() []model.ResourceType
}

func Global

func Global() TypeRegistry

func NewTypeRegistry

func NewTypeRegistry() TypeRegistry