dockerfile

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

type Stage struct {
	Name     string
	Commands []Command
}

func (Stage) ToRego

func (s Stage) ToRego() interface{}

Jump to

Keyboard shortcuts

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