parser

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProfileFromDocker

func NewProfileFromDocker(opts *docker.Options) (*types.Profile, error)

NewProfileFromDocker creates a new profile from docker info

func NewProfileFromDockerCompose

func NewProfileFromDockerCompose(opts *docker.Options) (*types.Profile, error)

NewProfileFromDockerCompose creates a new profile from docker info

func Parse

func Parse(r io.Reader) (*types.Content, error)

Parse reads content from reader into Data struct.

func ParseProfile

func ParseProfile(r io.Reader, uniq bool) (*types.Profile, error)

ParseProfile creates a new profile reading lines from a reader

Types

type Parser

type Parser interface {
	Parse(reader io.Reader) types.Content
}

Parser is the interface for content parsers

Jump to

Keyboard shortcuts

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