Documentation ¶
Index ¶
- Constants
- type Command
- type CommandLine
- func (r *CommandLine) Command() Command
- func (r *CommandLine) FlagFollowSymlinks() bool
- func (r *CommandLine) FlagHash() hashes.Algo
- func (r *CommandLine) FlagLogLevel() logger.Level
- func (r *CommandLine) FlagMultiThread() bool
- func (r *CommandLine) FlagPrint0() bool
- func (r *CommandLine) FlagPrintRecords() bool
- func (r *CommandLine) FlagQuitOnSoftError() bool
- func (r *CommandLine) FlagQuotaContinue() bool
- func (r *CommandLine) ForbidRecursion() bool
- func (r *CommandLine) Names() []string
- func (r *CommandLine) Paths() []string
- func (r *CommandLine) PrintConstraint() PrintConstraint
- func (r *CommandLine) SizeQuota() int64
- func (r *CommandLine) TagConstraint() TagConstraint
- func (r *CommandLine) UntagConstraint() UntagConstraint
- type PrintConstraint
- type TagConstraint
- type UntagConstraint
Constants ¶
View Source
const ( CommandInvalid Command = "" CommandPrint = "print" CommandTag = "tag" CommandUntag = "untag" CommandInvalidate = "invalidate" CommandRevalidate = "revalidate" CommandLicenses = "licenses" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandLine ¶
type CommandLine struct {
// contains filtered or unexported fields
}
Represents a parsed command line argument set.
func ParseCommandLine ¶
func ParseCommandLine() (*CommandLine, error)
Parses and validates command line arguments.
func (*CommandLine) Command ¶
func (r *CommandLine) Command() Command
func (*CommandLine) FlagFollowSymlinks ¶
func (r *CommandLine) FlagFollowSymlinks() bool
func (*CommandLine) FlagHash ¶
func (r *CommandLine) FlagHash() hashes.Algo
func (*CommandLine) FlagLogLevel ¶
func (r *CommandLine) FlagLogLevel() logger.Level
func (*CommandLine) FlagMultiThread ¶
func (r *CommandLine) FlagMultiThread() bool
func (*CommandLine) FlagPrint0 ¶
func (r *CommandLine) FlagPrint0() bool
func (*CommandLine) FlagPrintRecords ¶
func (r *CommandLine) FlagPrintRecords() bool
func (*CommandLine) FlagQuitOnSoftError ¶
func (r *CommandLine) FlagQuitOnSoftError() bool
func (*CommandLine) FlagQuotaContinue ¶
func (r *CommandLine) FlagQuotaContinue() bool
func (*CommandLine) ForbidRecursion ¶
func (r *CommandLine) ForbidRecursion() bool
func (*CommandLine) Names ¶
func (r *CommandLine) Names() []string
func (*CommandLine) Paths ¶
func (r *CommandLine) Paths() []string
func (*CommandLine) PrintConstraint ¶
func (r *CommandLine) PrintConstraint() PrintConstraint
func (*CommandLine) SizeQuota ¶
func (r *CommandLine) SizeQuota() int64
func (*CommandLine) TagConstraint ¶
func (r *CommandLine) TagConstraint() TagConstraint
func (*CommandLine) UntagConstraint ¶
func (r *CommandLine) UntagConstraint() UntagConstraint
type PrintConstraint ¶
type PrintConstraint int
const ( PrintConstraintNone PrintConstraint = iota PrintConstraintValid PrintConstraintInvalid PrintConstraintUntagged )
type TagConstraint ¶
type TagConstraint int
const ( TagConstraintNone TagConstraint = iota TagConstraintUntagged TagConstraintInvalid )
type UntagConstraint ¶
type UntagConstraint int
const ( UntagConstraintNone UntagConstraint = iota UntagConstraintAll UntagConstraintInvalid )
Click to show internal directories.
Click to hide internal directories.