fleetspeak_daemonservice

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_fleetspeak_src_client_daemonservice_proto_fleetspeak_daemonservice_config_proto protoreflect.FileDescriptor
View Source
var File_fleetspeak_src_client_daemonservice_proto_fleetspeak_daemonservice_messages_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {
	Argv []string `protobuf:"bytes,1,rep,name=argv,proto3" json:"argv,omitempty"`
	// If set, process will be killed after this much inactivity. Any message to
	// or from the process, and any stdin/stderr output counts as inactivity.
	InactivityTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=inactivity_timeout,json=inactivityTimeout,proto3" json:"inactivity_timeout,omitempty"`
	// If set, start the process only when there is a message for it to work on.
	// Forced to true when inactivity timeout is set.
	LazyStart bool `protobuf:"varint,3,opt,name=lazy_start,json=lazyStart,proto3" json:"lazy_start,omitempty"`
	// By default, daemon services report resource usage every 10 minutes. This
	// flag disables this if set.
	DisableResourceMonitoring bool `` /* 139-byte string literal not displayed */
	// How many samples to aggregate into a report when monitoring resource usage.
	// If unset, defaults to 20.
	ResourceMonitoringSampleSize int32 `` /* 150-byte string literal not displayed */
	// How long to wait between resource monitoring samples. If unset, defaults to
	// 30.
	//
	// Deprecated: Do not use.
	ResourceMonitoringSamplePeriodSeconds int32                `` /* 179-byte string literal not displayed */
	ResourceMonitoringSamplePeriod        *durationpb.Duration `` /* 156-byte string literal not displayed */
	// If set, Fleetspeak will kill and restart the child if it exceeds this
	// memory limit, in bytes.
	MemoryLimit int64 `protobuf:"varint,7,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"`
	// If set, Fleetspeak will monitor child's heartbeat messages and kill
	// unresponsive processes. The values below should be set to configure the
	// heartbeat monitoring.
	MonitorHeartbeats bool `protobuf:"varint,8,opt,name=monitor_heartbeats,json=monitorHeartbeats,proto3" json:"monitor_heartbeats,omitempty"`
	// How long to wait for initial heartbeat.
	//
	// Deprecated: Do not use.
	HeartbeatUnresponsiveGracePeriodSeconds int32                `` /* 185-byte string literal not displayed */
	HeartbeatUnresponsiveGracePeriod        *durationpb.Duration `` /* 162-byte string literal not displayed */
	// How long to wait for subsequent heartbeats.
	//
	// Deprecated: Do not use.
	HeartbeatUnresponsiveKillPeriodSeconds int32                `` /* 183-byte string literal not displayed */
	HeartbeatUnresponsiveKillPeriod        *durationpb.Duration `` /* 159-byte string literal not displayed */
	StdParams                              *Config_StdParams    `protobuf:"bytes,11,opt,name=std_params,json=stdParams,proto3" json:"std_params,omitempty"`
	// contains filtered or unexported fields
}

The configuration information expected by daemonservice.Factory in ClientServiceConfig.config.

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetArgv

func (x *Config) GetArgv() []string

func (*Config) GetDisableResourceMonitoring

func (x *Config) GetDisableResourceMonitoring() bool

func (*Config) GetHeartbeatUnresponsiveGracePeriod

func (x *Config) GetHeartbeatUnresponsiveGracePeriod() *durationpb.Duration

func (*Config) GetHeartbeatUnresponsiveGracePeriodSeconds deprecated

func (x *Config) GetHeartbeatUnresponsiveGracePeriodSeconds() int32

Deprecated: Do not use.

func (*Config) GetHeartbeatUnresponsiveKillPeriod

func (x *Config) GetHeartbeatUnresponsiveKillPeriod() *durationpb.Duration

func (*Config) GetHeartbeatUnresponsiveKillPeriodSeconds deprecated

func (x *Config) GetHeartbeatUnresponsiveKillPeriodSeconds() int32

Deprecated: Do not use.

func (*Config) GetInactivityTimeout

func (x *Config) GetInactivityTimeout() *durationpb.Duration

func (*Config) GetLazyStart

func (x *Config) GetLazyStart() bool

func (*Config) GetMemoryLimit

func (x *Config) GetMemoryLimit() int64

func (*Config) GetMonitorHeartbeats

func (x *Config) GetMonitorHeartbeats() bool

func (*Config) GetResourceMonitoringSamplePeriod

func (x *Config) GetResourceMonitoringSamplePeriod() *durationpb.Duration

func (*Config) GetResourceMonitoringSamplePeriodSeconds deprecated

func (x *Config) GetResourceMonitoringSamplePeriodSeconds() int32

Deprecated: Do not use.

func (*Config) GetResourceMonitoringSampleSize

func (x *Config) GetResourceMonitoringSampleSize() int32

func (*Config) GetStdParams

func (x *Config) GetStdParams() *Config_StdParams

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Config_StdParams

type Config_StdParams struct {
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // Service on the server to forward to. Required.
	// A message will be sent when we have flush_bytes queued, or when we
	// have bytes flush_time_seconds old.
	FlushBytes       int32 `protobuf:"varint,2,opt,name=flush_bytes,json=flushBytes,proto3" json:"flush_bytes,omitempty"`                     // Default and maximum value is 1MB.
	FlushTimeSeconds int32 `protobuf:"varint,3,opt,name=flush_time_seconds,json=flushTimeSeconds,proto3" json:"flush_time_seconds,omitempty"` // Default is 60.
	// contains filtered or unexported fields
}

If set, we forward stderr and stdout data to the server as messages with:

message_type="StdOutput" data=<fleetspeak.daemonservice.StdOutputData>

func (*Config_StdParams) Descriptor deprecated

func (*Config_StdParams) Descriptor() ([]byte, []int)

Deprecated: Use Config_StdParams.ProtoReflect.Descriptor instead.

func (*Config_StdParams) GetFlushBytes

func (x *Config_StdParams) GetFlushBytes() int32

func (*Config_StdParams) GetFlushTimeSeconds

func (x *Config_StdParams) GetFlushTimeSeconds() int32

func (*Config_StdParams) GetServiceName

func (x *Config_StdParams) GetServiceName() string

func (*Config_StdParams) ProtoMessage

func (*Config_StdParams) ProtoMessage()

func (*Config_StdParams) ProtoReflect

func (x *Config_StdParams) ProtoReflect() protoreflect.Message

func (*Config_StdParams) Reset

func (x *Config_StdParams) Reset()

func (*Config_StdParams) String

func (x *Config_StdParams) String() string

type StdOutputData

type StdOutputData struct {

	// The pid of the daemon process.
	Pid int64 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
	// The index of this message within the set of messages returned for
	// this pid.
	MessageIndex int64  `protobuf:"varint,2,opt,name=message_index,json=messageIndex,proto3" json:"message_index,omitempty"`
	Stdout       []byte `protobuf:"bytes,3,opt,name=stdout,proto3" json:"stdout,omitempty"`
	Stderr       []byte `protobuf:"bytes,4,opt,name=stderr,proto3" json:"stderr,omitempty"`
	// contains filtered or unexported fields
}

A fleetspeak.Message with message type "StdOutput" and data type StdOutputData is sent by a daemon service to the server when the daemon subprocess produces output on stdout or stderr.

func (*StdOutputData) Descriptor deprecated

func (*StdOutputData) Descriptor() ([]byte, []int)

Deprecated: Use StdOutputData.ProtoReflect.Descriptor instead.

func (*StdOutputData) GetMessageIndex

func (x *StdOutputData) GetMessageIndex() int64

func (*StdOutputData) GetPid

func (x *StdOutputData) GetPid() int64

func (*StdOutputData) GetStderr

func (x *StdOutputData) GetStderr() []byte

func (*StdOutputData) GetStdout

func (x *StdOutputData) GetStdout() []byte

func (*StdOutputData) ProtoMessage

func (*StdOutputData) ProtoMessage()

func (*StdOutputData) ProtoReflect

func (x *StdOutputData) ProtoReflect() protoreflect.Message

func (*StdOutputData) Reset

func (x *StdOutputData) Reset()

func (*StdOutputData) String

func (x *StdOutputData) String() string

Jump to

Keyboard shortcuts

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