Documentation ¶
Index ¶
- Variables
- func Assert(cond bool, format string, a ...interface{})
- func Atoi(x string) int
- func Chunk(xs []string, chunkSize int) [][]string
- func Contains(parts []string, part string) bool
- func DataDir() string
- func Dockerfile(ctx context.Context, name string, tarball string) ([]string, error)
- func DropLinesWithAny(s string, tokens ...string) string
- func Exists(path string) bool
- func FilesHandleLine(cwds, cgroups map[string]string, line string)
- func Max(i, j int) int
- func Panic1(err error)
- func Panic2(x interface{}, e error) interface{}
- func Pformat(i interface{}) string
- func Retry(ctx context.Context, fn func() error) error
- func SignalHandler(cancel func())
- func StringOr(s *string, d string) string
- type ArgsStruct
- type DockerfileConfig
- type DockerfileHistory
- type File
- type Manifest
- type ScanFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Red = color(31) Green = color(32) Yellow = color(33) Blue = color(34) Magenta = color(35) Cyan = color(36) White = color(37) )
View Source
var Args = make(map[string]ArgsStruct)
View Source
var Commands = make(map[string]func())
View Source
var Logger = &logger{ disabled: strings.ToLower(os.Getenv("LOGGING") + " ")[:1] == "n", }
Functions ¶
func Dockerfile ¶
func DropLinesWithAny ¶
func FilesHandleLine ¶
func SignalHandler ¶
func SignalHandler(cancel func())
Types ¶
type ArgsStruct ¶
type ArgsStruct interface {
Description() string
}
type DockerfileConfig ¶
type DockerfileConfig struct {
History []DockerfileHistory `json:"history"`
}
type DockerfileHistory ¶
type DockerfileHistory struct {
CreatedBy string `json:"created_by"`
}
type File ¶
type File struct { Syscall string Cgroup string Pid string Ppid string Comm string Errno string File string }
func FilesParseLine ¶
Click to show internal directories.
Click to hide internal directories.