dockerfile

package
v0.84.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 2 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() interface{}

type Dockerfile

type Dockerfile struct {
	Stages []Stage
}

Dockerfile represents a parsed Dockerfile

func (Dockerfile) ToRego

func (d Dockerfile) ToRego() interface{}

type Stage added in v0.60.0

type Stage struct {
	Name     string
	Commands []Command
}

func (Stage) ToRego added in v0.60.0

func (s Stage) ToRego() interface{}

Jump to

Keyboard shortcuts

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