common

package
v0.0.0-...-a10d2b9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDirectoryNameFromPath

func GetDirectoryNameFromPath(path string) string

GetDirectoryNameFromPath gets the directory name from a path

func GetEnvironmentFrom

func GetEnvironmentFrom(env []string) map[string]string

GetEnvironmentFrom returns a map with all environment variables contained in env

func GetHostFromURL

func GetHostFromURL(addr string) string

GetHostFromURL gets the host from a url

func GetMachineEnvironment

func GetMachineEnvironment() map[string]string

GetMachineEnvironment returns a map with all environment variables set on the machine

func GetWorkingDirectory

func GetWorkingDirectory() string

GetWorkingDirectory returns the current working directory

func ProcessIgnoreFiles

func ProcessIgnoreFiles(files []string) *ignore.GitIgnore

Types

type Normalizer

type Normalizer interface {
	GetName() string
	GetSlug() string
	Check(env map[string]string) bool
	Normalize(env map[string]string) map[string]string
	Denormalize(env map[string]string) map[string]string
}

Normalizer is a common interface to work with all normalizers

Jump to

Keyboard shortcuts

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