Documentation ¶
Overview ¶
Package create contains functions for to create Resource objects. This will typically non-files.
Index ¶
- type Client
- func (c *Client) FromRemote(uri string, optionsm map[string]interface{}) (resource.Resource, error)
- func (c *Client) FromString(targetPath, content string) (resource.Resource, error)
- func (c *Client) Get(filename string) (resource.Resource, error)
- func (c *Client) GetMatch(pattern string) (resource.Resource, error)
- func (c *Client) Match(pattern string) (resource.Resources, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains methods to create Resource objects. tasks to Resource objects.
func (*Client) FromRemote ¶ added in v0.90.0
FromRemote expects one or n-parts of a URL to a resource If you provide multiple parts they will be joined together to the final URL.
func (*Client) FromString ¶
FromString creates a new Resource from a string with the given relative target path.
func (*Client) Get ¶
Get creates a new Resource by opening the given filename in the assets filesystem.
Click to show internal directories.
Click to hide internal directories.