app

package
v0.6.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: AGPL-3.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallFlags

func InstallFlags(flags *pflag.FlagSet, opt *VolumeWatcherOpts)

func NewConfigManagerCommand

func NewConfigManagerCommand(ctx context.Context, name string) *cobra.Command

NewConfigManagerCommand This command is used to reload configuration

Types

type NotifyEventType

type NotifyEventType int
const (
	UnixSignal NotifyEventType = iota // "signal"
	WebHook                           // "http"
	ShellTool                         // "exec"
	SQL                               // "sql"
	TPLScript                         // "tpl"
)

func (*NotifyEventType) Set

func (f *NotifyEventType) Set(val string) error

func (*NotifyEventType) String

func (f *NotifyEventType) String() string

func (*NotifyEventType) Type

func (f *NotifyEventType) Type() string

type ReconfigureServiceOptions

type ReconfigureServiceOptions struct {
	GrpcPort int
	PodIP    string

	// EnableRemoteOnlineUpdate enable remote online update
	RemoteOnlineUpdateEnable bool
	// EnableContainerRuntime enable container runtime
	ContainerRuntimeEnable bool

	DebugMode        bool
	ContainerRuntime cfgutil.CRIType
	RuntimeEndpoint  string
}

type TplScriptConfig

type TplScriptConfig struct {
	Scripts         string                       `json:"scripts"`
	FileRegex       string                       `json:"fileRegex"`
	DataType        string                       `json:"dataType"`
	DSN             string                       `json:"dsn"`
	FormatterConfig appsv1alpha1.FormatterConfig `json:"formatterConfig"`
}

type VolumeWatcherOpts

type VolumeWatcherOpts struct {
	VolumeDirs []string

	// fileRegex watch file regex
	FileRegex string

	// ProcessName: program name
	ProcessName string

	// Signal is valid for UnixSignal
	Signal appsv1alpha1.SignalType

	// Exec command for reload
	Command string

	// Exec command for reload
	TPLConfig       string
	BackupPath      string
	FormatterConfig *appsv1alpha1.FormatterConfig
	TPLScriptPath   string
	DataType        string
	DSN             string

	LogLevel       string
	NotifyHandType NotifyEventType

	ServiceOpt ReconfigureServiceOptions
}

func NewVolumeWatcherOpts

func NewVolumeWatcherOpts() *VolumeWatcherOpts

Jump to

Keyboard shortcuts

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