config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandsFileName = "commands.json"
View Source
var HostsBeginMarker = fmt.Sprintf("### BEGIN_%s_HOSTS", strings.ToUpper(ProgramName))
View Source
var HostsEndMarker = fmt.Sprintf("\n### END_%s_HOSTS", strings.ToUpper(ProgramName))
View Source
var ProgramName = "spinup"
View Source
var ProjectsFileName = "projects.json"
View Source
var Version string

Functions

func GetConfigDirPath added in v0.4.0

func GetConfigDirPath() string

Types

type Config added in v0.4.0

type Config struct {
	// contains filtered or unexported fields
}

func New added in v0.4.0

func New() *Config

func NewTesting added in v0.4.0

func NewTesting(testingConfigDir string) *Config

func (*Config) AddHost added in v0.4.0

func (c *Config) AddHost(domain string) error

func (*Config) AddNginxConfig added in v0.4.0

func (c *Config) AddNginxConfig(name string, domain string, port int) error

func (*Config) GetConfigDir added in v0.4.0

func (c *Config) GetConfigDir() string

*

  • Getters

func (*Config) GetHostsBackupDir added in v0.4.0

func (c *Config) GetHostsBackupDir() string

func (*Config) GetHostsFile added in v0.4.0

func (c *Config) GetHostsFile() string

func (*Config) GetNginxConfigDir added in v0.4.0

func (c *Config) GetNginxConfigDir() string

func (*Config) InitHosts added in v0.4.0

func (c *Config) InitHosts() error

func (*Config) InitNginx added in v0.4.0

func (c *Config) InitNginx() error

func (*Config) IsTesting added in v0.4.0

func (c *Config) IsTesting() bool

func (*Config) RemoveHost added in v0.4.0

func (c *Config) RemoveHost(domain string) error

func (*Config) RemoveNginxConfig added in v0.4.0

func (c *Config) RemoveNginxConfig(name string) error

Jump to

Keyboard shortcuts

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