Help us shape the future of Go! Take the 2026 Go Developer Survey

seed

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 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