Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var From = &from{}
View Source
var JSON = &unmarshaler{unmarshalFn: json.Unmarshal}
View Source
var To = &to{}
View Source
var YAML = &unmarshaler{unmarshalFn: func(bytes []byte, i interface{}) error { return yaml.Unmarshal(bytes, i) }}
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 InvalidResourceError ¶
type InvalidResourceError struct {
Reason string
}
func (*InvalidResourceError) Error ¶
func (e *InvalidResourceError) Error() string
func (*InvalidResourceError) Is ¶
func (e *InvalidResourceError) Is(target error) bool
type Resource ¶
type Resource interface { GetMeta() v1alpha1.ResourceMeta GetSpec() core_model.ResourceSpec }
type ResourceApi ¶
func NewResourceApi ¶
func NewResourceApi(scope model.ResourceScope, path string) ResourceApi
type ResourceList ¶
type ResourceListReceiver ¶
type ResourceListReceiver struct { ResourceList NewResource func() core_model.Resource }
func (*ResourceListReceiver) UnmarshalJSON ¶
func (rec *ResourceListReceiver) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.