Documentation
¶
Index ¶
- type KContext
- func (c *KContext) Close()
- func (c *KContext) Deadline() (time.Time, bool)
- func (c *KContext) Done() <-chan struct{}
- func (c *KContext) Err() error
- func (c *KContext) Events() *events.EventsBUS
- func (c *KContext) GetCache() *caching.Manager
- func (c *KContext) GetLogger() *logging.Logger
- func (c *KContext) SetCache(cacheManager *caching.Manager)
- func (c *KContext) SetLogger(logger *logging.Logger)
- func (c *KContext) Value(key any) any
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 ¶
Click to show internal directories.
Click to hide internal directories.