link

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Layers

func Layers(layers []Layer)

Types

type Info

type Info struct {
	Name  string
	Share *Share
	Links []packfile.Link
	App   bool
}

type Layer

type Layer interface {
	sync.Node
	Streamer
	Info() Info
	Locks(target Layer) bool
	Forward(targets []Layer)
	Backward(targets []Layer)
}

type Require

type Require struct {
	Name     string                 `toml:"name"`
	Metadata map[string]interface{} `toml:"metadata"`
}

func Requires

func Requires(layers []Layer) ([]Require, error)

type Share

type Share struct {
	LayerDir string
	Metadata metadata.Metadata
}

type Streamer

type Streamer interface {
	Stdout() io.Writer
	Stderr() io.Writer
	Stream(out, err io.Writer) error
	Close() error
}

Jump to

Keyboard shortcuts

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