Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateResourcesFromFile ¶
func CreateResourcesFromFile(f string) ([]unversioned.Resource, error)
Create the Resource from the specified file f.
- The file format may be JSON or YAML encoding of either a single resource or list of resources as defined by the API objects in /api.
- A filename of "-" means "Read from stdin".
The returned Resource will either be a single Resource or a List containing zero or more Resources. If the file does not contain any valid Resources this function returns an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.