kcontext

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: ISC Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KContext

type KContext struct {
	Config *config.Config `msgpack:"-"`

	Context context.Context         `msgpack:"-"`
	Cancel  context.CancelCauseFunc `msgpack:"-"`

	Stdin  io.Reader `msgpack:"-"`
	Stdout io.Writer `msgpack:"-"`
	Stderr io.Writer `msgpack:"-"`

	Username    string
	Hostname    string
	CommandLine string
	MachineID   string
	KeyFromFile string
	CacheDir    string

	OperatingSystem string
	Architecture    string
	ProcessID       int

	Client string

	CWD            string
	MaxConcurrency int

	Identity uuid.UUID
	Keypair  *keypair.KeyPair
	// contains filtered or unexported fields
}

func NewKContext

func NewKContext() *KContext

func NewKContextFrom

func NewKContextFrom(template *KContext) *KContext

func (*KContext) Close

func (c *KContext) Close()

func (*KContext) Deadline

func (c *KContext) Deadline() (time.Time, bool)

func (*KContext) Done

func (c *KContext) Done() <-chan struct{}

func (*KContext) Err

func (c *KContext) Err() error

func (*KContext) Events

func (c *KContext) Events() *events.EventsBUS

func (*KContext) GetCache

func (c *KContext) GetCache() *caching.Manager

func (*KContext) GetLogger

func (c *KContext) GetLogger() *logging.Logger

func (*KContext) SetCache

func (c *KContext) SetCache(cacheManager *caching.Manager)

func (*KContext) SetLogger

func (c *KContext) SetLogger(logger *logging.Logger)

func (*KContext) Value

func (c *KContext) Value(key any) any

Jump to

Keyboard shortcuts

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