dockercompose

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerCompose

type DockerCompose struct {
	Org      string
	Name     string
	Database bool
}

DockerCompose is a struct representation of a docker compose template

func New

func New(org, name string) *DockerCompose

New takes a name and returns a viable dockercompose struct

func (*DockerCompose) EnableDB

func (d *DockerCompose) EnableDB()

EnableDB turns on the inclusion of database usage in the output template

func (*DockerCompose) WriteFile

func (d *DockerCompose) WriteFile() error

WriteFile writes the current dockercompose file struct to an actualized docker-compose file. It returns any errors it encounters with the template and writing the file to disk.

Jump to

Keyboard shortcuts

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