Documentation ¶
Index ¶
- func DeleteResource(ctx context.Context, path string) error
- func LoadGenericResource(data []byte) (*podops.GenericResource, error)
- func ReadEnclosure(ctx context.Context, path string) (*podops.AssetRef, error)
- func ReadResource(ctx context.Context, path string) (interface{}, string, string, error)
- func UnmarshalResource(data []byte) (interface{}, string, string, error)
- func WriteResource(ctx context.Context, path string, rsrc interface{}) error
- type ResourceLoaderFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadGenericResource ¶
func LoadGenericResource(data []byte) (*podops.GenericResource, error)
LoadGenericResource reads only the metadata of a resource
func ReadResource ¶
func UnmarshalResource ¶
UnmarshalResource takes a byte array and determines its kind before unmarshalling it into its struct form
Types ¶
type ResourceLoaderFunc ¶
ResourceLoaderFunc implements loading of resources
Click to show internal directories.
Click to hide internal directories.