docker

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Instruction added in v0.3.2

func Instruction(node *parser.Node) (commands.DockerCommand, string)

Instruction extracts the commands.DockerCommand and instruction text from a Docker instruction

Types

type Location

type Location struct {
	Start Position `json:"start"`
	End   Position `json:"end"`
}

Location is the start and end Position of a docker instruction.

func FromParserRanges

func FromParserRanges(p []parser.Range) []Location

FromParserRanges converts Docker sdk parser.Range into a tool specific Location

func (Location) String

func (r Location) String() string

type Position

type Position struct {
	Line      int `json:"line,omitempty"`
	Character int `json:"character,omitempty"`
}

Position is the line number and starting character in some block of text (a Dockerfile).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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