Documentation ¶
Index ¶
- Variables
- func FixSuspiciousHostname(hostname string) string
- func RegisterRemovalReason(rr *rem.RemovalReason, f *flag.FlagSet)
- func SetLogging(ctx context.Context, level logging.Level) context.Context
- func SetupContext(ctx context.Context, namespace string) context.Context
- type CommonFlags
- type EnvFlags
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTaskPriority = 140
DefaultTaskPriority is the default priority for a swarming task.
Functions ¶
func FixSuspiciousHostname ¶
FixSuspiciousHostname checks whether a hostname is suspicious and potentially indicates a bug of some kind. The prefix "crossk-" is suspicious and should be removed. The suffix ".cros" is also suspicious and should be removed.
func RegisterRemovalReason ¶
func RegisterRemovalReason(rr *rem.RemovalReason, f *flag.FlagSet)
RegisterRemovalReason sets up the command line arguments for specifying a removal reason.
func SetLogging ¶
SetLogging is used to sets the level for the logger when needed
Types ¶
type CommonFlags ¶
type CommonFlags struct {
// contains filtered or unexported fields
}
CommonFlags controls some commonly-used CLI flags.
func (*CommonFlags) Register ¶
func (f *CommonFlags) Register(fl *flag.FlagSet)
Register sets up the common flags.
func (*CommonFlags) Verbose ¶
func (f *CommonFlags) Verbose() bool
Verbose returns if the command is set to verbose mode.
Click to show internal directories.
Click to hide internal directories.