Documentation
¶
Index ¶
- Variables
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (m *Action) GetAction() isAction_Action
- func (x *Action) GetFile() *ActionTypeWriteToFile
- func (x *Action) GetHttp() *ActionTypeHttp
- func (x *Action) GetKillTimeout() *duration.Duration
- func (x *Action) GetOnError() []*Action
- func (x *Action) GetRestart() *ActionTypeRestart
- func (x *Action) GetSignal() *ActionTypeSignal
- func (x *Action) GetSplay() *duration.Duration
- func (x *Action) GetThen() []*Action
- func (x *Action) GetTimeout() *duration.Duration
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- type ActionTypeHttp
- func (*ActionTypeHttp) Descriptor() ([]byte, []int)deprecated
- func (x *ActionTypeHttp) GetHeaders() map[string]string
- func (x *ActionTypeHttp) GetMethod() string
- func (x *ActionTypeHttp) GetSerializer() Config_Serializer
- func (x *ActionTypeHttp) GetUri() string
- func (*ActionTypeHttp) ProtoMessage()
- func (x *ActionTypeHttp) ProtoReflect() protoreflect.Message
- func (x *ActionTypeHttp) Reset()
- func (x *ActionTypeHttp) String() string
- type ActionTypeRestart
- type ActionTypeSignal
- func (*ActionTypeSignal) Descriptor() ([]byte, []int)deprecated
- func (x *ActionTypeSignal) GetPidFile() string
- func (x *ActionTypeSignal) GetSignal() ActionTypeSignal_Signal
- func (*ActionTypeSignal) ProtoMessage()
- func (x *ActionTypeSignal) ProtoReflect() protoreflect.Message
- func (x *ActionTypeSignal) Reset()
- func (x *ActionTypeSignal) String() string
- type ActionTypeSignal_Signal
- func (ActionTypeSignal_Signal) Descriptor() protoreflect.EnumDescriptor
- func (x ActionTypeSignal_Signal) Enum() *ActionTypeSignal_Signal
- func (ActionTypeSignal_Signal) EnumDescriptor() ([]byte, []int)deprecated
- func (x ActionTypeSignal_Signal) Number() protoreflect.EnumNumber
- func (x ActionTypeSignal_Signal) String() string
- func (ActionTypeSignal_Signal) Type() protoreflect.EnumType
- type ActionTypeWriteToFile
- func (*ActionTypeWriteToFile) Descriptor() ([]byte, []int)deprecated
- func (x *ActionTypeWriteToFile) GetFooter() string
- func (x *ActionTypeWriteToFile) GetGroup() string
- func (x *ActionTypeWriteToFile) GetHeader() string
- func (x *ActionTypeWriteToFile) GetMode() string
- func (m *ActionTypeWriteToFile) GetOutput() isActionTypeWriteToFile_Output
- func (x *ActionTypeWriteToFile) GetOwner() string
- func (x *ActionTypeWriteToFile) GetPath() string
- func (x *ActionTypeWriteToFile) GetSerializer() Config_Serializer
- func (x *ActionTypeWriteToFile) GetTemplate() string
- func (*ActionTypeWriteToFile) ProtoMessage()
- func (x *ActionTypeWriteToFile) ProtoReflect() protoreflect.Message
- func (x *ActionTypeWriteToFile) Reset()
- func (x *ActionTypeWriteToFile) String() string
- type ActionTypeWriteToFile_Serializer
- type ActionTypeWriteToFile_Template
- type Action_File
- type Action_Http
- type Action_Restart
- type Action_Signal
- type Config
- type Config_Serializer
- func (Config_Serializer) Descriptor() protoreflect.EnumDescriptor
- func (x Config_Serializer) Enum() *Config_Serializer
- func (Config_Serializer) EnumDescriptor() ([]byte, []int)deprecated
- func (x Config_Serializer) Number() protoreflect.EnumNumber
- func (x Config_Serializer) String() string
- func (Config_Serializer) Type() protoreflect.EnumType
- type WatcherConfig
- func (*WatcherConfig) Descriptor() ([]byte, []int)deprecated
- func (x *WatcherConfig) GetActions() []*Action
- func (x *WatcherConfig) GetKillTimeout() *duration.Duration
- func (x *WatcherConfig) GetMainProcessCmdline() string
- func (x *WatcherConfig) GetPath() string
- func (x *WatcherConfig) GetPidFile() string
- func (x *WatcherConfig) GetProtoFile() string
- func (x *WatcherConfig) GetSplay() *duration.Duration
- func (x *WatcherConfig) GetTimeout() *duration.Duration
- func (*WatcherConfig) ProtoMessage()
- func (x *WatcherConfig) ProtoReflect() protoreflect.Message
- func (x *WatcherConfig) Reset()
- func (x *WatcherConfig) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Config_Serializer_name = map[int32]string{ 0: "JSON", 1: "PB", 2: "YAML", 3: "INI", 4: "TOML", } Config_Serializer_value = map[string]int32{ "JSON": 0, "PB": 1, "YAML": 2, "INI": 3, "TOML": 4, } )
Enum value maps for Config_Serializer.
View Source
var ( ActionTypeSignal_Signal_name = map[int32]string{ 0: "NONE", 1: "SIGHUP", 2: "SIGINT", 3: "SIGQUIT", 4: "SIGILL", 5: "SIGTRAP", 6: "SIGABRT", 7: "SIGBUS", 8: "SIGFPE", 9: "SIGKILL", 10: "SIGUSR1", 11: "SIGSEGV", 12: "SIGUSR2", 13: "SIGPIPE", 14: "SIGALRM", 15: "SIGTERM", 16: "SIGSTKFLT", 17: "SIGCHLD", 18: "SIGCONT", 19: "SIGSTOP", 20: "SIGTSTP", 21: "SIGTTIN", 22: "SIGTTOU", 23: "SIGURG", 24: "SIGXCPU", 25: "SIGXFSZ", 26: "SIGVTALRM", 27: "SIGPROF", 28: "SIGWINCH", 29: "SIGIO", 30: "SIGPWR", 31: "SIGSYS", } ActionTypeSignal_Signal_value = map[string]int32{ "NONE": 0, "SIGHUP": 1, "SIGINT": 2, "SIGQUIT": 3, "SIGILL": 4, "SIGTRAP": 5, "SIGABRT": 6, "SIGBUS": 7, "SIGFPE": 8, "SIGKILL": 9, "SIGUSR1": 10, "SIGSEGV": 11, "SIGUSR2": 12, "SIGPIPE": 13, "SIGALRM": 14, "SIGTERM": 15, "SIGSTKFLT": 16, "SIGCHLD": 17, "SIGCONT": 18, "SIGSTOP": 19, "SIGTSTP": 20, "SIGTTIN": 21, "SIGTTOU": 22, "SIGURG": 23, "SIGXCPU": 24, "SIGXFSZ": 25, "SIGVTALRM": 26, "SIGPROF": 27, "SIGWINCH": 28, "SIGIO": 29, "SIGPWR": 30, "SIGSYS": 31, } )
Enum value maps for ActionTypeSignal_Signal.
View Source
var File_exec_config_exec_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { // Types that are assignable to Action: // *Action_File // *Action_Http // *Action_Restart // *Action_Signal Action isAction_Action `protobuf_oneof:"action"` Then []*Action `protobuf:"bytes,5,rep,name=then,proto3" json:"then,omitempty"` OnError []*Action `protobuf:"bytes,6,rep,name=on_error,json=onError,proto3" json:"on_error,omitempty"` KillTimeout *duration.Duration `protobuf:"bytes,17,opt,name=kill_timeout,json=killTimeout,proto3" json:"kill_timeout,omitempty"` Splay *duration.Duration `protobuf:"bytes,18,opt,name=splay,proto3" json:"splay,omitempty"` Timeout *duration.Duration `protobuf:"bytes,19,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
func (*Action) GetFile ¶
func (x *Action) GetFile() *ActionTypeWriteToFile
func (*Action) GetHttp ¶
func (x *Action) GetHttp() *ActionTypeHttp
func (*Action) GetKillTimeout ¶
func (*Action) GetOnError ¶
func (*Action) GetRestart ¶
func (x *Action) GetRestart() *ActionTypeRestart
func (*Action) GetSignal ¶
func (x *Action) GetSignal() *ActionTypeSignal
func (*Action) GetTimeout ¶
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
type ActionTypeHttp ¶
type ActionTypeHttp struct { Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Headers map[string]string `` /* 155-byte string literal not displayed */ Serializer Config_Serializer `protobuf:"varint,16,opt,name=serializer,proto3,enum=exec_config.Config_Serializer" json:"serializer,omitempty"` // contains filtered or unexported fields }
func (*ActionTypeHttp) Descriptor
deprecated
func (*ActionTypeHttp) Descriptor() ([]byte, []int)
Deprecated: Use ActionTypeHttp.ProtoReflect.Descriptor instead.
func (*ActionTypeHttp) GetHeaders ¶
func (x *ActionTypeHttp) GetHeaders() map[string]string
func (*ActionTypeHttp) GetMethod ¶
func (x *ActionTypeHttp) GetMethod() string
func (*ActionTypeHttp) GetSerializer ¶
func (x *ActionTypeHttp) GetSerializer() Config_Serializer
func (*ActionTypeHttp) GetUri ¶
func (x *ActionTypeHttp) GetUri() string
func (*ActionTypeHttp) ProtoMessage ¶
func (*ActionTypeHttp) ProtoMessage()
func (*ActionTypeHttp) ProtoReflect ¶
func (x *ActionTypeHttp) ProtoReflect() protoreflect.Message
func (*ActionTypeHttp) Reset ¶
func (x *ActionTypeHttp) Reset()
func (*ActionTypeHttp) String ¶
func (x *ActionTypeHttp) String() string
type ActionTypeRestart ¶
type ActionTypeRestart struct {
// contains filtered or unexported fields
}
func (*ActionTypeRestart) Descriptor
deprecated
func (*ActionTypeRestart) Descriptor() ([]byte, []int)
Deprecated: Use ActionTypeRestart.ProtoReflect.Descriptor instead.
func (*ActionTypeRestart) ProtoMessage ¶
func (*ActionTypeRestart) ProtoMessage()
func (*ActionTypeRestart) ProtoReflect ¶
func (x *ActionTypeRestart) ProtoReflect() protoreflect.Message
func (*ActionTypeRestart) Reset ¶
func (x *ActionTypeRestart) Reset()
func (*ActionTypeRestart) String ¶
func (x *ActionTypeRestart) String() string
type ActionTypeSignal ¶
type ActionTypeSignal struct { Signal ActionTypeSignal_Signal `protobuf:"varint,1,opt,name=signal,proto3,enum=exec_config.ActionTypeSignal_Signal" json:"signal,omitempty"` PidFile string `protobuf:"bytes,2,opt,name=pid_file,json=pidFile,proto3" json:"pid_file,omitempty"` // contains filtered or unexported fields }
func (*ActionTypeSignal) Descriptor
deprecated
func (*ActionTypeSignal) Descriptor() ([]byte, []int)
Deprecated: Use ActionTypeSignal.ProtoReflect.Descriptor instead.
func (*ActionTypeSignal) GetPidFile ¶
func (x *ActionTypeSignal) GetPidFile() string
func (*ActionTypeSignal) GetSignal ¶
func (x *ActionTypeSignal) GetSignal() ActionTypeSignal_Signal
func (*ActionTypeSignal) ProtoMessage ¶
func (*ActionTypeSignal) ProtoMessage()
func (*ActionTypeSignal) ProtoReflect ¶
func (x *ActionTypeSignal) ProtoReflect() protoreflect.Message
func (*ActionTypeSignal) Reset ¶
func (x *ActionTypeSignal) Reset()
func (*ActionTypeSignal) String ¶
func (x *ActionTypeSignal) String() string
type ActionTypeSignal_Signal ¶
type ActionTypeSignal_Signal int32
const ( ActionTypeSignal_NONE ActionTypeSignal_Signal = 0 ActionTypeSignal_SIGHUP ActionTypeSignal_Signal = 1 ActionTypeSignal_SIGINT ActionTypeSignal_Signal = 2 ActionTypeSignal_SIGQUIT ActionTypeSignal_Signal = 3 ActionTypeSignal_SIGILL ActionTypeSignal_Signal = 4 ActionTypeSignal_SIGTRAP ActionTypeSignal_Signal = 5 ActionTypeSignal_SIGABRT ActionTypeSignal_Signal = 6 ActionTypeSignal_SIGBUS ActionTypeSignal_Signal = 7 ActionTypeSignal_SIGFPE ActionTypeSignal_Signal = 8 ActionTypeSignal_SIGKILL ActionTypeSignal_Signal = 9 ActionTypeSignal_SIGUSR1 ActionTypeSignal_Signal = 10 ActionTypeSignal_SIGSEGV ActionTypeSignal_Signal = 11 ActionTypeSignal_SIGUSR2 ActionTypeSignal_Signal = 12 ActionTypeSignal_SIGPIPE ActionTypeSignal_Signal = 13 ActionTypeSignal_SIGALRM ActionTypeSignal_Signal = 14 ActionTypeSignal_SIGTERM ActionTypeSignal_Signal = 15 ActionTypeSignal_SIGSTKFLT ActionTypeSignal_Signal = 16 ActionTypeSignal_SIGCHLD ActionTypeSignal_Signal = 17 ActionTypeSignal_SIGCONT ActionTypeSignal_Signal = 18 ActionTypeSignal_SIGSTOP ActionTypeSignal_Signal = 19 ActionTypeSignal_SIGTSTP ActionTypeSignal_Signal = 20 ActionTypeSignal_SIGTTIN ActionTypeSignal_Signal = 21 ActionTypeSignal_SIGTTOU ActionTypeSignal_Signal = 22 ActionTypeSignal_SIGURG ActionTypeSignal_Signal = 23 ActionTypeSignal_SIGXCPU ActionTypeSignal_Signal = 24 ActionTypeSignal_SIGXFSZ ActionTypeSignal_Signal = 25 ActionTypeSignal_SIGVTALRM ActionTypeSignal_Signal = 26 ActionTypeSignal_SIGPROF ActionTypeSignal_Signal = 27 ActionTypeSignal_SIGWINCH ActionTypeSignal_Signal = 28 ActionTypeSignal_SIGIO ActionTypeSignal_Signal = 29 ActionTypeSignal_SIGPWR ActionTypeSignal_Signal = 30 ActionTypeSignal_SIGSYS ActionTypeSignal_Signal = 31 )
func (ActionTypeSignal_Signal) Descriptor ¶
func (ActionTypeSignal_Signal) Descriptor() protoreflect.EnumDescriptor
func (ActionTypeSignal_Signal) Enum ¶
func (x ActionTypeSignal_Signal) Enum() *ActionTypeSignal_Signal
func (ActionTypeSignal_Signal) EnumDescriptor
deprecated
func (ActionTypeSignal_Signal) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActionTypeSignal_Signal.Descriptor instead.
func (ActionTypeSignal_Signal) Number ¶
func (x ActionTypeSignal_Signal) Number() protoreflect.EnumNumber
func (ActionTypeSignal_Signal) String ¶
func (x ActionTypeSignal_Signal) String() string
func (ActionTypeSignal_Signal) Type ¶
func (ActionTypeSignal_Signal) Type() protoreflect.EnumType
type ActionTypeWriteToFile ¶
type ActionTypeWriteToFile struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` Header string `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` // Types that are assignable to Output: // *ActionTypeWriteToFile_Template // *ActionTypeWriteToFile_Serializer Output isActionTypeWriteToFile_Output `protobuf_oneof:"output"` // contains filtered or unexported fields }
func (*ActionTypeWriteToFile) Descriptor
deprecated
func (*ActionTypeWriteToFile) Descriptor() ([]byte, []int)
Deprecated: Use ActionTypeWriteToFile.ProtoReflect.Descriptor instead.
func (*ActionTypeWriteToFile) GetFooter ¶
func (x *ActionTypeWriteToFile) GetFooter() string
func (*ActionTypeWriteToFile) GetGroup ¶
func (x *ActionTypeWriteToFile) GetGroup() string
func (*ActionTypeWriteToFile) GetHeader ¶
func (x *ActionTypeWriteToFile) GetHeader() string
func (*ActionTypeWriteToFile) GetMode ¶
func (x *ActionTypeWriteToFile) GetMode() string
func (*ActionTypeWriteToFile) GetOutput ¶
func (m *ActionTypeWriteToFile) GetOutput() isActionTypeWriteToFile_Output
func (*ActionTypeWriteToFile) GetOwner ¶
func (x *ActionTypeWriteToFile) GetOwner() string
func (*ActionTypeWriteToFile) GetPath ¶
func (x *ActionTypeWriteToFile) GetPath() string
func (*ActionTypeWriteToFile) GetSerializer ¶
func (x *ActionTypeWriteToFile) GetSerializer() Config_Serializer
func (*ActionTypeWriteToFile) GetTemplate ¶
func (x *ActionTypeWriteToFile) GetTemplate() string
func (*ActionTypeWriteToFile) ProtoMessage ¶
func (*ActionTypeWriteToFile) ProtoMessage()
func (*ActionTypeWriteToFile) ProtoReflect ¶
func (x *ActionTypeWriteToFile) ProtoReflect() protoreflect.Message
func (*ActionTypeWriteToFile) Reset ¶
func (x *ActionTypeWriteToFile) Reset()
func (*ActionTypeWriteToFile) String ¶
func (x *ActionTypeWriteToFile) String() string
type ActionTypeWriteToFile_Serializer ¶
type ActionTypeWriteToFile_Serializer struct {
Serializer Config_Serializer `protobuf:"varint,17,opt,name=serializer,proto3,enum=exec_config.Config_Serializer,oneof"`
}
type ActionTypeWriteToFile_Template ¶
type ActionTypeWriteToFile_Template struct {
Template string `protobuf:"bytes,16,opt,name=template,proto3,oneof"`
}
type Action_File ¶
type Action_File struct {
File *ActionTypeWriteToFile `protobuf:"bytes,1,opt,name=file,proto3,oneof"`
}
type Action_Http ¶
type Action_Http struct {
Http *ActionTypeHttp `protobuf:"bytes,2,opt,name=http,proto3,oneof"`
}
type Action_Restart ¶
type Action_Restart struct {
Restart *ActionTypeRestart `protobuf:"bytes,3,opt,name=restart,proto3,oneof"`
}
type Action_Signal ¶
type Action_Signal struct {
Signal *ActionTypeSignal `protobuf:"bytes,4,opt,name=signal,proto3,oneof"`
}
type Config ¶
type Config struct { Items []*WatcherConfig `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetItems ¶
func (x *Config) GetItems() []*WatcherConfig
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Config_Serializer ¶
type Config_Serializer int32
const ( Config_JSON Config_Serializer = 0 Config_PB Config_Serializer = 1 Config_YAML Config_Serializer = 2 Config_INI Config_Serializer = 3 Config_TOML Config_Serializer = 4 )
func (Config_Serializer) Descriptor ¶
func (Config_Serializer) Descriptor() protoreflect.EnumDescriptor
func (Config_Serializer) Enum ¶
func (x Config_Serializer) Enum() *Config_Serializer
func (Config_Serializer) EnumDescriptor
deprecated
func (Config_Serializer) EnumDescriptor() ([]byte, []int)
Deprecated: Use Config_Serializer.Descriptor instead.
func (Config_Serializer) Number ¶
func (x Config_Serializer) Number() protoreflect.EnumNumber
func (Config_Serializer) String ¶
func (x Config_Serializer) String() string
func (Config_Serializer) Type ¶
func (Config_Serializer) Type() protoreflect.EnumType
type WatcherConfig ¶
type WatcherConfig struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` ProtoFile string `protobuf:"bytes,2,opt,name=proto_file,json=protoFile,proto3" json:"proto_file,omitempty"` Actions []*Action `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"` MainProcessCmdline string `protobuf:"bytes,4,opt,name=main_process_cmdline,json=mainProcessCmdline,proto3" json:"main_process_cmdline,omitempty"` PidFile string `protobuf:"bytes,5,opt,name=pid_file,json=pidFile,proto3" json:"pid_file,omitempty"` KillTimeout *duration.Duration `protobuf:"bytes,17,opt,name=kill_timeout,json=killTimeout,proto3" json:"kill_timeout,omitempty"` Splay *duration.Duration `protobuf:"bytes,18,opt,name=splay,proto3" json:"splay,omitempty"` Timeout *duration.Duration `protobuf:"bytes,19,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*WatcherConfig) Descriptor
deprecated
func (*WatcherConfig) Descriptor() ([]byte, []int)
Deprecated: Use WatcherConfig.ProtoReflect.Descriptor instead.
func (*WatcherConfig) GetActions ¶
func (x *WatcherConfig) GetActions() []*Action
func (*WatcherConfig) GetKillTimeout ¶
func (x *WatcherConfig) GetKillTimeout() *duration.Duration
func (*WatcherConfig) GetMainProcessCmdline ¶
func (x *WatcherConfig) GetMainProcessCmdline() string
func (*WatcherConfig) GetPath ¶
func (x *WatcherConfig) GetPath() string
func (*WatcherConfig) GetPidFile ¶
func (x *WatcherConfig) GetPidFile() string
func (*WatcherConfig) GetProtoFile ¶
func (x *WatcherConfig) GetProtoFile() string
func (*WatcherConfig) GetSplay ¶
func (x *WatcherConfig) GetSplay() *duration.Duration
func (*WatcherConfig) GetTimeout ¶
func (x *WatcherConfig) GetTimeout() *duration.Duration
func (*WatcherConfig) ProtoMessage ¶
func (*WatcherConfig) ProtoMessage()
func (*WatcherConfig) ProtoReflect ¶
func (x *WatcherConfig) ProtoReflect() protoreflect.Message
func (*WatcherConfig) Reset ¶
func (x *WatcherConfig) Reset()
func (*WatcherConfig) String ¶
func (x *WatcherConfig) String() string
Click to show internal directories.
Click to hide internal directories.