seed

package
v9.4.47+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GitRevision = "revision"

Variables

View Source
var (
	// ErrUnsupported is returned for an unsupported seed source.
	ErrUnsupported = errors.New("Not supported")
)

Functions

This section is empty.

Types

type Git

type Git struct {
	// contains filtered or unexported fields
}

func (*Git) Load

func (g *Git) Load(dest string) error

Load from URI into dest.

func (*Git) MetadataRead

func (g *Git) MetadataRead(mdDir string) (string, error)

Metadata for this source.

func (*Git) MetadataWrite

func (g *Git) MetadataWrite(mdDir string) error

MetadataWrite for this source.

func (*Git) String

func (g *Git) String() string

String representation of this source

type Source

type Source interface {
	// String representation of this source
	String() string
	// Load from URI into dest.
	Load(dest string) error
	// Metadata for this source.
	MetadataRead(mdDir string) (string, error)
	// MetadataWrite for this source.
	MetadataWrite(mdDir string) error
}

Source defines the interface for keep track of volume driver mounts.

func New

func New(uri string, options map[string]string) (Source, error)

New returns a new instance of Source

func NewGitSource

func NewGitSource(uri string, options map[string]string) (Source, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL