Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CtlCommand = &cli.Command{ Name: "ctl", Usage: "control build records", Action: commandAction(ctl), Flags: []cli.Flag{ &cli.BoolFlag{ Name: "pin", Usage: "Pin build so it will not be garbage collected", }, &cli.BoolFlag{ Name: "unpin", Usage: "Unpin build so it will be garbage collected", }, &cli.BoolFlag{ Name: "delete", Usage: "Delete build record", }, }, }
View Source
var DumpLLBCommand = &cli.Command{ Name: "dump-llb", Usage: "dump LLB in human-readable format. LLB can be also passed via stdin. This command does not require the daemon to be running.", ArgsUsage: "<llbfile>", Action: commandAction(dumpLLB), Flags: []cli.Flag{ &cli.BoolFlag{ Name: "dot", Usage: "Output dot format", }, }, }
View Source
var DumpMetadataCommand = &cli.Command{ Name: "dump-metadata", Usage: "dump the meta in human-readable format. This command requires the daemon NOT to be running.", Flags: []cli.Flag{ &cli.StringFlag{ Name: "root", Usage: "path to state directory", Value: appdefaults.Root, }, }, Action: commandAction(func(clicontext *cli.Command) error { dbFiles, err := findMetadataDBFiles(clicontext.String("root")) if err != nil { return err } for _, dbFile := range dbFiles { fmt.Printf("===== %s =====\n", dbFile) if err := dumpBolt(dbFile, func(k, v []byte) string { return fmt.Sprintf("%q: %s", string(k), string(v)) }); err != nil { return err } } return nil }), }
View Source
var GetCommand = &cli.Command{
Name: "get",
Usage: "retrieve a blob from contentstore",
Action: commandAction(get),
}
View Source
var HistoriesCommand = &cli.Command{ Name: "histories", Usage: "list build records", Action: commandAction(histories), Flags: []cli.Flag{ &cli.StringFlag{ Name: "format", Usage: "Format the output using the given Go template, e.g, '{{json .}}'", }, }, }
View Source
var InfoCommand = &cli.Command{ Name: "info", Usage: "display internal information", Action: commandAction(info), Flags: []cli.Flag{ &cli.StringFlag{ Name: "format", Usage: "Format the output using the given Go template, e.g, '{{json .}}'", }, }, }
View Source
var LogsCommand = &cli.Command{ Name: "logs", Usage: "display build logs", Action: commandAction(logs), Flags: []cli.Flag{ &cli.StringFlag{ Name: "progress", Usage: "progress output type", Value: "auto", }, &cli.BoolFlag{ Name: "trace", Usage: "show opentelemetry trace", }, }, }
View Source
var MonitorCommand = &cli.Command{ Name: "monitor", Usage: "display build events", Action: commandAction(monitor), Flags: []cli.Flag{ &cli.BoolFlag{ Name: "completed", Usage: "show completed builds", }, &cli.StringFlag{ Name: "ref", Usage: "show events for a specific build", }, }, }
View Source
var WorkersCommand = &cli.Command{ Name: "workers", Usage: "list workers", Action: commandAction(listWorkers), Flags: []cli.Flag{ &cli.StringSliceFlag{ Name: "filter", Aliases: []string{"f"}, Usage: "containerd-style filter string slice", }, &cli.BoolFlag{ Name: "verbose", Aliases: []string{"v"}, Usage: "Verbose output", }, &cli.StringFlag{ Name: "format", Usage: "Format the output using the given Go template, e.g, '{{json .}}'", }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.