dockerfile

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package dockerfile provides utilities for finding and parsing Dockerfiles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dockerfile

type Dockerfile interface {
	GetDirective(name string) ([]string, bool)
}

Dockerfile represents a parsed Dockerfile

type Finder

type Finder interface {
	Find(dir string) ([]string, error)
}

Finder allows searching for Dockerfiles in a given directory

func NewFinder

func NewFinder() Finder

NewFinder creates a new Dockerfile Finder

type Parser

type Parser interface {
	Parse(input io.Reader) (Dockerfile, error)
}

Parser is a Dockerfile parser

func NewParser

func NewParser() Parser

NewParser creates a new Dockerfile parser

type StatFunc

type StatFunc func(path string) (os.FileInfo, error)

func (StatFunc) Has

func (t StatFunc) Has(dir string) (string, bool, error)

type Tester

type Tester interface {
	Has(dir string) (string, bool, error)
}

func NewTester

func NewTester() Tester

Jump to

Keyboard shortcuts

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