ww

package
v0.0.2-0...-807a31a Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Global = "global"

Variables

This section is empty.

Functions

func AbsoluteWorkWorkYamlFilePath

func AbsoluteWorkWorkYamlFilePath(rootDir string) (string, error)

func WriteWorkWorkYaml

func WriteWorkWorkYaml(rootDir string, ww *WorkWorkYaml) error

Types

type Environment

type Environment struct {
	Name            string `yaml:"name"`
	EnvironmentUrls Urls   `yaml:"urls"`
}

func NewEnvironment

func NewEnvironment(name string, urls map[string]string) Environment

type Urls

type Urls map[string]string

type WorkWorkYaml

type WorkWorkYaml struct {
	GlobalUrls   Urls          `yaml:"urls"`
	Environments []Environment `yaml:"environments"`
}

func ReadWorkWorkYaml

func ReadWorkWorkYaml(rootDir string) (*WorkWorkYaml, error)

func (WorkWorkYaml) GetEnvironment

func (f WorkWorkYaml) GetEnvironment(env string) (*Environment, error)

func (WorkWorkYaml) GetUrls

func (f WorkWorkYaml) GetUrls(environmentName string) (map[string]string, error)

Jump to

Keyboard shortcuts

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