app

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 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 is used to reload configuration

Types

type NotifyEventType

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

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 enables remote online update
	RemoteOnlineUpdateEnable bool
	// EnableContainerRuntime enables container runtime
	ContainerRuntimeEnable bool

	DebugMode        bool
	ContainerRuntime cfgutil.CRIType
	RuntimeEndpoint  string
}

type VolumeWatcherOpts

type VolumeWatcherOpts struct {
	VolumeDirs []string

	// Exec command for reload
	BackupPath string

	LogLevel   string
	CombConfig string

	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