session

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

func NewSession

func NewSession(id string, path string, duration time.Duration, config *api.Config, context string, shell interfaces.ShellAdapter) (*Session, error)

func (*Session) Destroy

func (s *Session) Destroy() error

func (*Session) Extend

func (s *Session) Extend(duration time.Duration) error

func (*Session) GetExpiresAt added in v1.1.0

func (s *Session) GetExpiresAt() time.Time

func (*Session) GetId

func (s *Session) GetId() string

func (*Session) GetKubeconfigPath

func (s *Session) GetKubeconfigPath() string

func (*Session) GetRcFilePath

func (s *Session) GetRcFilePath() string

func (*Session) GetSessionPath

func (s *Session) GetSessionPath() string

func (*Session) GetSessionPropertiesPath

func (s *Session) GetSessionPropertiesPath() string

func (*Session) SetContext added in v1.1.0

func (s *Session) SetContext(context string)

func (*Session) Start

func (s *Session) Start() (*os.ProcessState, error)

type SessionProperties

type SessionProperties struct {
	ExpiresAt time.Time `yaml:"expires_at"`
	PID       int       `yaml:"pid"`
}

func GetSessionProperties

func GetSessionProperties(sessionPath string) (*SessionProperties, error)

Jump to

Keyboard shortcuts

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