package create
import "github.com/gohugoio/hugo/resources/resource_factories/create"
Package create contains functions for to create Resource objects. This will typically non-files.
Index ¶
- type Client
- func New(rs *resources.Spec) *Client
- 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)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains methods to create Resource objects. tasks to Resource objects.
func New ¶
New creates a new Client with the given specification.
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.
func (*Client) GetMatch ¶
GetMatch gets first resource matching the given pattern from the assets filesystem.
func (*Client) Match ¶
Match gets the resources matching the given pattern from the assets filesystem.
Source Files ¶
- Version
- v0.69.0
- Published
- Apr 10, 2020
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 4 hours ago –
Tools for package owners.