Documentation
¶
Index ¶
- Variables
- type Template
- func (*Template) Descriptor() ([]byte, []int)deprecated
- func (x *Template) GetCmd() string
- func (x *Template) GetName() string
- func (x *Template) GetPOptions() *TemplatePOptions
- func (*Template) ProtoMessage()
- func (x *Template) ProtoReflect() protoreflect.Message
- func (x *Template) Reset()
- func (x *Template) String() string
- type TemplatePOptions
- func (*TemplatePOptions) Descriptor() ([]byte, []int)deprecated
- func (x *TemplatePOptions) GetArgs() []string
- func (x *TemplatePOptions) GetAutoTerminate() bool
- func (x *TemplatePOptions) GetCpuAffinityDelay() string
- func (x *TemplatePOptions) GetCpuAffinityList() string
- func (x *TemplatePOptions) GetCpuAffinityMask() string
- func (x *TemplatePOptions) GetDetach() bool
- func (x *TemplatePOptions) GetErrWriter() bool
- func (x *TemplatePOptions) GetNotify() bool
- func (x *TemplatePOptions) GetOutWriter() bool
- func (x *TemplatePOptions) GetRestart() int32
- func (x *TemplatePOptions) GetRunOnStartup() bool
- func (*TemplatePOptions) ProtoMessage()
- func (x *TemplatePOptions) ProtoReflect() protoreflect.Message
- func (x *TemplatePOptions) Reset()
- func (x *TemplatePOptions) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_model_process_process_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Serves as a filename for given template
Cmd string `protobuf:"bytes,2,opt,name=cmd,proto3" json:"cmd,omitempty"` // Process command
POptions *TemplatePOptions `protobuf:"bytes,3,opt,name=p_options,json=pOptions,proto3" json:"p_options,omitempty"`
// contains filtered or unexported fields
}
func (*Template) Descriptor
deprecated
func (*Template) GetPOptions ¶
func (x *Template) GetPOptions() *TemplatePOptions
func (*Template) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) ProtoReflect ¶
func (x *Template) ProtoReflect() protoreflect.Message
type TemplatePOptions ¶
type TemplatePOptions struct {
Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` // Arguments process will be started with
OutWriter bool `protobuf:"varint,2,opt,name=out_writer,json=outWriter,proto3" json:"out_writer,omitempty"` // Use output writer. Note: only os.StdOut can be used this way
ErrWriter bool `protobuf:"varint,3,opt,name=err_writer,json=errWriter,proto3" json:"err_writer,omitempty"` // Use error writer. Note: only os.StdErr can be used this way
Restart int32 `protobuf:"varint,4,opt,name=restart,proto3" json:"restart,omitempty"` // Number of automatic restarts, <0> means no restart, <-1> always restart
Detach bool `protobuf:"varint,5,opt,name=detach,proto3" json:"detach,omitempty"` // Set to true if process should be detached from parent application on startup
RunOnStartup bool `protobuf:"varint,6,opt,name=run_on_startup,json=runOnStartup,proto3" json:"run_on_startup,omitempty"` // Set to true if process is expected to start right after plugin initialization
Notify bool `protobuf:"varint,7,opt,name=notify,proto3" json:"notify,omitempty"`
AutoTerminate bool `protobuf:"varint,8,opt,name=auto_terminate,json=autoTerminate,proto3" json:"auto_terminate,omitempty"`
CpuAffinityMask string `protobuf:"bytes,9,opt,name=cpu_affinity_mask,json=cpuAffinityMask,proto3" json:"cpu_affinity_mask,omitempty"`
CpuAffinityList string `protobuf:"bytes,10,opt,name=cpu_affinity_list,json=cpuAffinityList,proto3" json:"cpu_affinity_list,omitempty"`
CpuAffinityDelay string `protobuf:"bytes,11,opt,name=cpu_affinity_delay,json=cpuAffinityDelay,proto3" json:"cpu_affinity_delay,omitempty"` // Postpone CPU affinity setup if needed
// contains filtered or unexported fields
}
func (*TemplatePOptions) Descriptor
deprecated
func (*TemplatePOptions) Descriptor() ([]byte, []int)
Deprecated: Use TemplatePOptions.ProtoReflect.Descriptor instead.
func (*TemplatePOptions) GetArgs ¶
func (x *TemplatePOptions) GetArgs() []string
func (*TemplatePOptions) GetAutoTerminate ¶
func (x *TemplatePOptions) GetAutoTerminate() bool
func (*TemplatePOptions) GetCpuAffinityDelay ¶
func (x *TemplatePOptions) GetCpuAffinityDelay() string
func (*TemplatePOptions) GetCpuAffinityList ¶
func (x *TemplatePOptions) GetCpuAffinityList() string
func (*TemplatePOptions) GetCpuAffinityMask ¶
func (x *TemplatePOptions) GetCpuAffinityMask() string
func (*TemplatePOptions) GetDetach ¶
func (x *TemplatePOptions) GetDetach() bool
func (*TemplatePOptions) GetErrWriter ¶
func (x *TemplatePOptions) GetErrWriter() bool
func (*TemplatePOptions) GetNotify ¶
func (x *TemplatePOptions) GetNotify() bool
func (*TemplatePOptions) GetOutWriter ¶
func (x *TemplatePOptions) GetOutWriter() bool
func (*TemplatePOptions) GetRestart ¶
func (x *TemplatePOptions) GetRestart() int32
func (*TemplatePOptions) GetRunOnStartup ¶
func (x *TemplatePOptions) GetRunOnStartup() bool
func (*TemplatePOptions) ProtoMessage ¶
func (*TemplatePOptions) ProtoMessage()
func (*TemplatePOptions) ProtoReflect ¶
func (x *TemplatePOptions) ProtoReflect() protoreflect.Message
func (*TemplatePOptions) Reset ¶
func (x *TemplatePOptions) Reset()
func (*TemplatePOptions) String ¶
func (x *TemplatePOptions) String() string
Click to show internal directories.
Click to hide internal directories.