p2p

package
v0.41.8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseDomain = "BASE_DOMAIN"
	Registry   = "REGISTRY"
	Version    = "VERSION"
	RepoPath   = "REPO_PATH"
	Region     = "REGION"
	TenantName = "TENANT_NAME"
)

Variables

This section is empty.

Functions

func CleanUpRepoEnvs

func CleanUpRepoEnvs(
	repoId p2p.GitHubRepoFullId,
	fastFeedbackEnvs []environment.Environment,
	extendedTestEnvs []environment.Environment,
	prodEnvs []environment.Environment,
	githubClient *github.Client,
) error

func IsValidShell added in v0.38.2

func IsValidShell(shell string) bool

IsValidShell checks if the given shell type is supported

Types

type EnvVarContext added in v0.23.0

type EnvVarContext struct {
	Tenant      *coretnt.Tenant
	Environment *environment.Environment
	AppRepo     *git.LocalRepository
}

type EnvVars added in v0.23.0

type EnvVars map[string]string

func NewP2pEnvVariables added in v0.23.0

func NewP2pEnvVariables(context *EnvVarContext) (*EnvVars, error)

func (*EnvVars) AsExportCmd added in v0.23.0

func (p2pEnv *EnvVars) AsExportCmd(shell ShellType) (string, error)

AsExportCmd converts environment variables to shell-specific export statements

type ShellType added in v0.38.2

type ShellType string

ShellType represents the type of shell for environment variable export

const (
	ShellBash       ShellType = "bash"
	ShellZsh        ShellType = "zsh"
	ShellFish       ShellType = "fish"
	ShellPowershell ShellType = "powershell"
	ShellCmd        ShellType = "cmd"
)

func SupportedShells added in v0.38.2

func SupportedShells() []ShellType

SupportedShells returns a list of all supported shell types

Jump to

Keyboard shortcuts

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