session

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveSessionPath

func ActiveSessionPath() (string, error)

func ClearActiveSession added in v0.2.0

func ClearActiveSession() error

func ClearShutdownRequest added in v0.2.5

func ClearShutdownRequest(name string) error

func ClearTarget added in v0.3.0

func ClearTarget(name string) error

func LoadActiveSession

func LoadActiveSession() (string, error)

func LoadTarget added in v0.3.0

func LoadTarget(name string) (workload.TargetRef, error)

func RepoRoot

func RepoRoot() (string, error)

func RequestShutdown added in v0.2.5

func RequestShutdown(name string) error

func Resolve

func Resolve(explicit string, template string) (string, error)

func ResolveDefault added in v0.7.1

func ResolveDefault(template string) (string, error)

func SaveActiveSession

func SaveActiveSession(name string) error

func SaveInfo added in v0.6.0

func SaveInfo(info Info) error

func SaveTarget added in v0.3.0

func SaveTarget(name string, target workload.TargetRef) error

func SessionDir added in v0.6.0

func SessionDir(name string) (string, error)

func SessionInfoPath added in v0.6.0

func SessionInfoPath(name string) (string, error)

func ShutdownRequestPath added in v0.2.5

func ShutdownRequestPath(name string) (string, error)

func ShutdownRequested added in v0.2.5

func ShutdownRequested(name string) (bool, error)

func SyncthingDir added in v0.6.0

func SyncthingDir(name string) (string, error)

func TargetStatePath added in v0.3.0

func TargetStatePath(name string) (string, error)

func ValidateNonEmpty

func ValidateNonEmpty(name string) error

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"`
}

func ListInfos added in v0.7.3

func ListInfos() ([]Info, error)

func LoadInfo added in v0.6.0

func LoadInfo(name string) (Info, error)

Jump to

Keyboard shortcuts

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