api

package
v1.1.1-0...-dc3e50a Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 7 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 GetEnvironmentMerge

func GetEnvironmentMerge(env []string, overwrite []string) map[string]string

GetEnvironmentMerge returns a map with all environment variables contained in env

func GetHostFromURL

func GetHostFromURL(addr string) (string, error)

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 GetProjectUID

func GetProjectUID(repository v1.Repository, project v1.Project) string

func GetWorkingDirectory

func GetWorkingDirectory() string

GetWorkingDirectory returns the current working directory

func ProcessIgnoreFiles

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

func ToEnvName

func ToEnvName(input string) string

Types

type Normalizer

type Normalizer interface {
	GetName() string
	GetSlug() string
	Check(env map[string]string) bool
	Normalize(env map[string]string) (v1.Spec, error)
	Denormalize(spec v1.Spec) (map[string]string, error)
}

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