Documentation
¶
Index ¶
- func AdminProfilesPath(root Root) string
- func AliasesPath(root Root) string
- func AppendHistory(root Root, action, alias, tunnelID, detail string) error
- func EnsureDirs(root Root) error
- func HistoryPath(root Root) string
- func IsSecretReference(value string) bool
- func LoadAliases(root Root) (map[string]AliasRecord, error)
- func LoadProcesses(root Root) (map[string]ProcessRecord, error)
- func NewError(message string) error
- func NormalizeAlias(alias string) (string, error)
- func ProcessesPath(root Root) string
- func RejectInlineSecretMaterial(value string, field string) error
- func SaveAdminProfiles(root Root, file AdminProfilesFile) error
- func SaveAliases(root Root, records map[string]AliasRecord) error
- func SaveProcesses(root Root, records map[string]ProcessRecord) error
- func UTCNow() string
- func ValidateSecretReference(value string, field string) error
- type AdminProfile
- type AdminProfilesFile
- type AliasRecord
- type Error
- type ProcessRecord
- type Root
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminProfilesPath ¶
func AliasesPath ¶
func AppendHistory ¶
func EnsureDirs ¶
func HistoryPath ¶
func IsSecretReference ¶
func LoadAliases ¶
func LoadAliases(root Root) (map[string]AliasRecord, error)
func LoadProcesses ¶
func LoadProcesses(root Root) (map[string]ProcessRecord, error)
func NormalizeAlias ¶
func ProcessesPath ¶
func SaveAdminProfiles ¶
func SaveAdminProfiles(root Root, file AdminProfilesFile) error
func SaveAliases ¶
func SaveAliases(root Root, records map[string]AliasRecord) error
func SaveProcesses ¶
func SaveProcesses(root Root, records map[string]ProcessRecord) error
func ValidateSecretReference ¶
Types ¶
type AdminProfile ¶
type AdminProfilesFile ¶
type AdminProfilesFile struct {
ActiveProfile string `json:"active_profile,omitempty"`
Profiles map[string]AdminProfile `json:"profiles"`
}
func LoadAdminProfiles ¶
func LoadAdminProfiles(root Root) (AdminProfilesFile, error)
type AliasRecord ¶
type AliasRecord struct {
Alias string `json:"alias"`
TunnelID string `json:"tunnel_id"`
Name string `json:"name"`
AdminProfile string `json:"admin_profile,omitempty"`
Description string `json:"description,omitempty"`
OrganizationIDs []string `json:"organization_ids,omitempty"`
WorkspaceIDs []string `json:"workspace_ids,omitempty"`
TenantIDs []string `json:"tenant_ids,omitempty"`
ConfigPath string `json:"config_path,omitempty"`
ProfileName string `json:"profile_name,omitempty"`
ProfileDir string `json:"profile_dir,omitempty"`
ProfilePath string `json:"profile_path,omitempty"`
HealthURLFile string `json:"health_url_file,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
}
func AliasRecordFromTunnel ¶
type ProcessRecord ¶
type ProcessRecord struct {
Alias string `json:"alias"`
TunnelID string `json:"tunnel_id"`
ConfigPath string `json:"config_path"`
HealthURLFile string `json:"health_url_file"`
TargetKind string `json:"target_kind"`
TargetValue string `json:"target_value"`
Command string `json:"command"`
StartedAt string `json:"started_at"`
AdminProfile string `json:"admin_profile,omitempty"`
ProfileName string `json:"profile_name,omitempty"`
ProfileDir string `json:"profile_dir,omitempty"`
ProfilePath string `json:"profile_path,omitempty"`
Mode string `json:"mode,omitempty"`
SessionName string `json:"session_name,omitempty"`
PID int `json:"pid,omitempty"`
LogPath string `json:"log_path,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.