dockerfile

package
v0.30.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Cmd       string
	SubCmd    string
	Flags     []string
	Value     []string
	Original  string
	JSON      bool
	Stage     int
	Path      string
	StartLine int
	EndLine   int
}

Command is the struct for each dockerfile command

func (Command) ToRego

func (c Command) ToRego() map[string]interface{}

type Dockerfile

type Dockerfile struct {
	Stages map[string][]Command
}

Dockerfile represents a parsed Dockerfile

func (Dockerfile) ToRego

func (d Dockerfile) ToRego() map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL