seal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2014 License: LGPL-3.0 Imports: 10 Imported by: 1

Documentation

Overview

Package seal implements the 'seal' and 'sealed-copy' functionality.

Index

Constants

View Source
const (
	SymbolSuccess = "SUCCESS"
	SymbolFail    = "FAILED"
)
View Source
const (
	Name = "seal"
	Sep  = "--"

	ModeSeal = Name
	ModeCopy = "sealed-copy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command added in v1.1.0

type Command struct {
	api.BasicRunner

	// The type of seal operation we are supposed to perform
	Mode string

	// If set, we are supposed to run in verify mode
	Verify bool

	// The name of the seal format to use
	Format string
	// contains filtered or unexported fields
}

A type representing all arguments required to drive a Seal operation

func NewCommand

func NewCommand(trees []string, nReaders, nWriters int) (*Command, error)

NewCommand returns an initialized seal command

func (*Command) Aggregate added in v1.1.0

func (s *Command) Aggregate(results <-chan api.Result) <-chan api.Result

func (*Command) Gather added in v1.1.0

func (s *Command) Gather(rctrl *io.ReadChannelController, files <-chan api.FileInfo, results chan<- api.Result)

func (*Command) Generate added in v1.1.0

func (s *Command) Generate() <-chan api.Result

func (*Command) Init added in v1.1.0

func (s *Command) Init(numReaders, numWriters int, items []string, maxLogLevel api.Importance, filters []api.FileFilter) (err error)

type SealResult added in v1.1.0

type SealResult struct {
	api.BasicResult
	// contains filtered or unexported fields
}

A result which is also able to hold information about the source of a file

func (*SealResult) FromGenerator added in v1.1.0

func (s *SealResult) FromGenerator() bool

Returns true if this result was sent from a generator. The latter sends the root as Path, but doesn't set a RelaPath

Directories

Path Synopsis
Package cli implements the commandline interface for the Command, ready for digestion by the cli.Appf
Package cli implements the commandline interface for the Command, ready for digestion by the cli.Appf

Jump to

Keyboard shortcuts

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