configurationManager

package
v0.0.0-...-333422c Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DockerPrefix = "nickthetramp/"

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ID        string
	Name      string
	IsRunning bool
	Path      string
	Ports     []int `yaml:"ports"`
	Volumes   []struct {
		Target string `yaml:"target"`
		Source string `yaml:"source"`
	} `yaml:"volumes"`
}

func (*Configuration) BuildContainer

func (c *Configuration) BuildContainer(cm ConfigurationManager)

func (*Configuration) CreateContainer

func (c *Configuration) CreateContainer(cm ConfigurationManager)

func (*Configuration) Populate

func (c *Configuration) Populate(cm ConfigurationManager)

func (*Configuration) StopContainer

func (c *Configuration) StopContainer(cm ConfigurationManager)

type ConfigurationManager

type ConfigurationManager struct {
	Box    *packr.Box
	Client *client.Client
}

func (*ConfigurationManager) FindConfiguration

func (cm *ConfigurationManager) FindConfiguration(name string) (Configuration, error)

func (*ConfigurationManager) GetConfigurations

func (cm *ConfigurationManager) GetConfigurations() []Configuration

Jump to

Keyboard shortcuts

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