config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: MIT Imports: 7 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDockerfile

func CreateDockerfile(dock Dockerfile, appPath string) error

CreateDockerfile creates dockerfile

func New

func New(FilePath string, FileName string)

New creates a new store

func ReadConfig

func ReadConfig(filePath string, defaults map[string]interface{}) (*viper.Viper, error)

ReadConfig reads a config file `filename` from `filePath` and uses the `defaults`

func Save

func Save() error

Save saves the configuration file

Types

type Dockerfile

type Dockerfile struct {
	BuildName string
	Command   []string
	Port      string
	Type      string
	Length    int
}

Dockerfile stores the template value

type Store

type Store struct {
	Config   *viper.Viper
	FilePath string
	FileName string
}

Store contains the current configuration

var Cfg *Store

Cfg points to the current config

Jump to

Keyboard shortcuts

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