Documentation ¶
Index ¶
- func ComponentDescriptorFromFile(componentDescriptorPath string) (*cdv2.ComponentDescriptor, error)
- func ComponentDescriptorToFile(componentDescriptor *cdv2.ComponentDescriptorList, path string) error
- func ExportsFromFile(path string) (*api.Exports, error)
- func ExportsToFile(exports *api.Exports, path string) error
- func ImportsFromFile(path string) (*api.Imports, error)
- func ResourcesFromFile(resourcesFilePath string) ([]cdresources.ResourceOptions, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentDescriptorFromFile ¶
func ComponentDescriptorFromFile(componentDescriptorPath string) (*cdv2.ComponentDescriptor, error)
ComponentDescriptorFromFile reads a component descriptor from a file.
func ComponentDescriptorToFile ¶
func ComponentDescriptorToFile(componentDescriptor *cdv2.ComponentDescriptorList, path string) error
ComponentDescriptorToFile writes a component descriptor to a file.
func ExportsFromFile ¶
ExportsFromFile reads export data from a file.
func ExportsToFile ¶
ExportsToFile writes export data to a file.
func ImportsFromFile ¶
ImportsFromFile will read the file from the given path and try to unmarshal it into an api.Imports structure.
func ResourcesFromFile ¶
func ResourcesFromFile(resourcesFilePath string) ([]cdresources.ResourceOptions, error)
ResourcesFromFile reads resources from a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.