Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var From = &from{}
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api interface {
GetResourceApi(model.ResourceType) (ResourceApi, error)
}
type ApiDescriptor ¶
type ApiDescriptor struct {
Resources map[model.ResourceType]ResourceApi
}
func (*ApiDescriptor) GetResourceApi ¶
func (m *ApiDescriptor) GetResourceApi(typ model.ResourceType) (ResourceApi, error)
type Resource ¶
type Resource struct { Meta ResourceMeta Spec model.ResourceSpec }
func (*Resource) MarshalJSON ¶
func (*Resource) UnmarshalJSON ¶
type ResourceApi ¶
func NewResourceApi ¶
func NewResourceApi(resType model.ResourceType, path string) ResourceApi
type ResourceList ¶
type ResourceListReceiver ¶
type ResourceListReceiver struct { ResourceList NewResource func() model.Resource }
func (*ResourceListReceiver) UnmarshalJSON ¶
func (rec *ResourceListReceiver) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.