Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: added types, bumped version
  • Loading branch information
nimish-ks committed Aug 26, 2024
commit 6cbeb1d22426b9fc184025c40619186ef04c6cf9
16 changes: 14 additions & 2 deletions phase/misc/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

const (
Version = "1.0"
Version = "1.1"
PhVersion = "v1"
PhaseCloudAPIHost = "https://console.phase.dev"
)
Expand All @@ -21,7 +21,7 @@ var (
PssUserPattern = regexp.MustCompile(`^pss_user:v(\d+):([a-fA-F0-9]{64}):([a-fA-F0-9]{64}):([a-fA-F0-9]{64}):([a-fA-F0-9]{64})$`)
PssServicePattern = regexp.MustCompile(`^pss_service:v(\d+):([a-fA-F0-9]{64}):([a-fA-F0-9]{64}):([a-fA-F0-9]{64}):([a-fA-F0-9]{64})$`)

//CrossEnvPattern = regexp.MustCompile(`\$\{(.+?)\.(.+?)\}`)
// CrossEnvPattern = regexp.MustCompile(`\$\{(.+?)\.(.+?)\}`)
// LocalRefPattern = regexp.MustCompile(`\$\{([^.]+?)\}`)

// Regex to identify secret references
Expand Down Expand Up @@ -58,3 +58,15 @@ type AppKeyResponse struct {
WrappedKeyShare string `json:"wrapped_key_share"`
Apps []App `json:"apps"`
}

type GetContextOptions struct {
AppName string
AppID string
EnvName string
}

type FindEnvironmentKeyOptions struct {
EnvName string
AppName string
AppID string
}