runtime

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Client     *httpclient.Client
	History    history.Store
	SSHManager *ssh.Manager
	K8sManager *k8s.Manager
}

type Cookies added in v0.27.2

type Cookies struct {
	// contains filtered or unexported fields
}

Cookies keeps in-memory cookie jars scoped by effective environment. Persistence across process restarts is intentionally out of scope here.

func NewCookies added in v0.27.2

func NewCookies() *Cookies

func (*Cookies) Clear added in v0.27.2

func (s *Cookies) Clear(env string)

func (*Cookies) Jar added in v0.27.2

func (s *Cookies) Jar(env string) http.CookieJar

func (*Cookies) Reset added in v0.49.1

func (s *Cookies) Reset()

type FileValue

type FileValue struct {
	Name      string
	Value     string
	Secret    bool
	UpdatedAt time.Time
}

type Files

type Files struct {
	// contains filtered or unexported fields
}

func NewFiles

func NewFiles() *Files

func (*Files) ClearEnv

func (s *Files) ClearEnv(env string)

func (*Files) Entries

func (s *Files) Entries() []engine.RuntimeFile

func (*Files) Reset added in v0.49.1

func (s *Files) Reset()

func (*Files) Restore

func (s *Files) Restore(xs []engine.RuntimeFile)

func (*Files) Set

func (s *Files) Set(env, path, name, value string, secret bool)

func (*Files) Snapshot

func (s *Files) Snapshot(env, path string) map[string]FileValue

type GlobalValue

type GlobalValue struct {
	Name      string
	Value     string
	Secret    bool
	UpdatedAt time.Time
}

type Globals

type Globals struct {
	// contains filtered or unexported fields
}

func NewGlobals

func NewGlobals() *Globals

func (*Globals) Clear

func (s *Globals) Clear(env string)

func (*Globals) Delete

func (s *Globals) Delete(env, name string)

func (*Globals) Entries

func (s *Globals) Entries() []engine.RuntimeGlobal

func (*Globals) Reset added in v0.49.1

func (s *Globals) Reset()

func (*Globals) Restore

func (s *Globals) Restore(xs []engine.RuntimeGlobal)

func (*Globals) Set

func (s *Globals) Set(env, name, value string, secret bool)

func (*Globals) Snapshot

func (s *Globals) Snapshot(env string) map[string]GlobalValue

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *Runtime

func (*Runtime) AuthCmd

func (r *Runtime) AuthCmd() *authcmd.Manager

func (*Runtime) AuthState

func (r *Runtime) AuthState() engine.AuthState

func (*Runtime) Close

func (r *Runtime) Close() error

func (*Runtime) Cookies added in v0.27.2

func (r *Runtime) Cookies() *Cookies

func (*Runtime) Files

func (r *Runtime) Files() *Files

func (*Runtime) Globals

func (r *Runtime) Globals() *Globals

func (*Runtime) History

func (r *Runtime) History() history.Store

func (*Runtime) K8s

func (r *Runtime) K8s() *k8s.Manager

func (*Runtime) LoadAuthState

func (r *Runtime) LoadAuthState(st engine.AuthState)

func (*Runtime) LoadRuntimeState

func (r *Runtime) LoadRuntimeState(st engine.RuntimeState)

func (*Runtime) OAuth

func (r *Runtime) OAuth() *oauth.Manager

func (*Runtime) ResetSecrets added in v0.49.1

func (r *Runtime) ResetSecrets()

ResetSecrets forgets every credential and runtime value held in memory. Scopes are named after the environment, so two workspaces that both call one "dev" would otherwise read each other's globals, cookies and tokens.

func (*Runtime) RuntimeState

func (r *Runtime) RuntimeState() engine.RuntimeState

func (*Runtime) SSH

func (r *Runtime) SSH() *ssh.Manager

Jump to

Keyboard shortcuts

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