lxd: github.com/lxc/lxd/lxd/template Index | Files

package template

import "github.com/lxc/lxd/lxd/template"


Package Files


type ChrootLoader Uses

type ChrootLoader struct {
    Path string

ChrootLoader is a pong2 compatible file loader which restricts all accesses to a directory

func (ChrootLoader) Abs Uses

func (l ChrootLoader) Abs(base string, name string) string

Abs resolves a filename relative to the base directory. Absolute paths are allowed. When there's no base dir set, the absolute path to the filename will be calculated based on either the provided base directory (which might be a path of a template which includes another template) or the current working directory.

func (ChrootLoader) Get Uses

func (l ChrootLoader) Get(path string) (io.Reader, error)

Get reads the path's content from your local filesystem.

Package template imports 6 packages (graph) and is imported by 9 packages. Updated 2020-03-30. Refresh now. Tools for package owners.