Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Registry = New()
Functions ¶
This section is empty.
Types ¶
type ResourceHandler ¶
type ResourceHandler interface {
GetResourceContent(ctx context.Context, r model.Resource, access ocm.ResourceAccess) (*model.TypedResourceContent, error)
}
type ResourceHandlerRegistry ¶
type ResourceHandlerRegistry struct {
// contains filtered or unexported fields
}
func New ¶
func New() *ResourceHandlerRegistry
func (*ResourceHandlerRegistry) Get ¶
func (r *ResourceHandlerRegistry) Get(typ string) ResourceHandler
func (*ResourceHandlerRegistry) Register ¶
func (r *ResourceHandlerRegistry) Register(typ string, handler ResourceHandler)
Click to show internal directories.
Click to hide internal directories.