parser

package
v0.0.0-...-f8ab10a Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Debug  bool
	Driver driver.Driver
}

Parser is a struct that can parse and visualize a docker-compose efile

func (Parser) Log

func (p Parser) Log(msg string, args ...interface{})

Log prints a message to stdout if the debug option is set to true

func (Parser) Parse

func (p Parser) Parse(path string) (string, error)

Parse parses the given docker-compose file

type Service

type Service struct {
	Links []string `yaml:"links"`
}

Service represents single service in a docker-compose file

type Services

type Services struct {
	Service map[string]Service `yaml:"services"`
}

Services represents all services listed in a docker-compose file

Jump to

Keyboard shortcuts

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