loader

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteResource

func DeleteResource(ctx context.Context, path string) error

func LoadGenericResource

func LoadGenericResource(data []byte) (*podops.GenericResource, error)

LoadGenericResource reads only the metadata of a resource

func ReadEnclosure

func ReadEnclosure(ctx context.Context, path string) (*podops.AssetRef, error)

func ReadResource

func ReadResource(ctx context.Context, path string) (interface{}, string, string, error)

func UnmarshalResource

func UnmarshalResource(data []byte) (interface{}, string, string, error)

UnmarshalResource takes a byte array and determines its kind before unmarshalling it into its struct form

func WriteResource

func WriteResource(ctx context.Context, path string, rsrc interface{}) error

Types

type ResourceLoaderFunc

type ResourceLoaderFunc func(data []byte) (interface{}, string, error)

ResourceLoaderFunc implements loading of resources

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL