Documentation
¶
Index ¶
- func ActiveSessionPath() (string, error)
- func ClearActiveSession() error
- func ClearShutdownRequest(name string) error
- func ClearTarget(name string) error
- func LoadActiveSession() (string, error)
- func LoadTarget(name string) (workload.TargetRef, error)
- func RepoRoot() (string, error)
- func RequestShutdown(name string) error
- func Resolve(explicit string, template string) (string, error)
- func ResolveDefault(template string) (string, error)
- func SaveActiveSession(name string) error
- func SaveInfo(info Info) error
- func SaveTarget(name string, target workload.TargetRef) error
- func SessionDir(name string) (string, error)
- func SessionInfoPath(name string) (string, error)
- func ShutdownRequestPath(name string) (string, error)
- func ShutdownRequested(name string) (bool, error)
- func SyncthingDir(name string) (string, error)
- func TargetStatePath(name string) (string, error)
- func ValidateNonEmpty(name string) error
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActiveSessionPath ¶
func ClearActiveSession ¶ added in v0.2.0
func ClearActiveSession() error
func ClearShutdownRequest ¶ added in v0.2.5
func ClearTarget ¶ added in v0.3.0
func LoadActiveSession ¶
func RequestShutdown ¶ added in v0.2.5
func ResolveDefault ¶ added in v0.7.1
func SaveActiveSession ¶
func SessionDir ¶ added in v0.6.0
func SessionInfoPath ¶ added in v0.6.0
func ShutdownRequestPath ¶ added in v0.2.5
func ShutdownRequested ¶ added in v0.2.5
func SyncthingDir ¶ added in v0.6.0
func TargetStatePath ¶ added in v0.3.0
func ValidateNonEmpty ¶
Types ¶
type Info ¶ added in v0.6.0
type Info struct {
Name string `json:"name"`
RepoRoot string `json:"repoRoot,omitempty"`
ConfigPath string `json:"configPath,omitempty"`
Namespace string `json:"namespace,omitempty"`
KubeContext string `json:"kubeContext,omitempty"`
Owner string `json:"owner,omitempty"`
WorkloadType string `json:"workloadType,omitempty"`
RunID string `json:"runID,omitempty"`
WorkloadAPIVersion string `json:"workloadAPIVersion,omitempty"`
WorkloadKind string `json:"workloadKind,omitempty"`
WorkloadName string `json:"workloadName,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
LastUsedAt time.Time `json:"lastUsedAt,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.