Documentation ¶
Index ¶
- type ScenarioReader
- type ScenarioResourcesReader
- func (r *ScenarioResourcesReader) Asset(name string) ([]byte, error)
- func (r *ScenarioResourcesReader) AssetNames(excluded []string) ([]string, error)
- func (r *ScenarioResourcesReader) ExtractAssets(prefix, dir string, exclusded []string) error
- func (r *ScenarioResourcesReader) ToJSON(b []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScenarioReader ¶
type ScenarioReader interface { //Retreive an asset from the data source Asset(templatePath string) ([]byte, error) //List all available assets in the data source AssetNames(excluded []string) ([]string, error) ExtractAssets(prefix, dir string, excluded []string) error ToJSON(b []byte) ([]byte, error) }
type ScenarioResourcesReader ¶
type ScenarioResourcesReader struct {
// contains filtered or unexported fields
}
func NewScenarioResourcesReader ¶
func NewScenarioResourcesReader(files *embed.FS) *ScenarioResourcesReader
func (*ScenarioResourcesReader) Asset ¶
func (r *ScenarioResourcesReader) Asset(name string) ([]byte, error)
func (*ScenarioResourcesReader) AssetNames ¶
func (r *ScenarioResourcesReader) AssetNames(excluded []string) ([]string, error)
func (*ScenarioResourcesReader) ExtractAssets ¶
func (r *ScenarioResourcesReader) ExtractAssets(prefix, dir string, exclusded []string) error
Click to show internal directories.
Click to hide internal directories.