Documentation ¶
Overview ¶
Package seal implements the 'seal' and 'sealed-copy' functionality.
Index ¶
- Constants
- type Command
- func (s *Command) Aggregate(results <-chan api.Result) <-chan api.Result
- func (s *Command) Gather(rctrl *io.ReadChannelController, files <-chan api.FileInfo, ...)
- func (s *Command) Generate() <-chan api.Result
- func (s *Command) Init(numReaders, numWriters int, items []string, maxLogLevel api.Importance, ...) (err error)
- type SealResult
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 ¶
NewCommand returns an initialized seal command
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
Click to show internal directories.
Click to hide internal directories.