Documentation ¶
Overview ¶
Package create contains functions for to create Resource objects. This will typically non-files.
Index ¶
- type Client
- func (c *Client) ByType(tp string) resource.Resources
- func (c *Client) Copy(r resource.Resource, targetPath string) (resource.Resource, error)
- func (c *Client) FromRemote(uri string, optionsm map[string]any) (resource.Resource, error)
- func (c *Client) FromString(targetPath, content string) (resource.Resource, error)
- func (c *Client) Get(pathname string) (resource.Resource, error)
- func (c *Client) GetMatch(pattern string) (resource.Resource, error)
- func (c *Client) Match(pattern string) (resource.Resources, error)
- type HTTPError
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. TODO(bep) see #10912; we currently emit a warning for this config scenario.
func (*Client) Get ¶
Get creates a new Resource by opening the given pathname in the assets filesystem.
Click to show internal directories.
Click to hide internal directories.