app

package
v0.9.1-beta.31 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: AGPL-3.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

View Source
const (
	InaddrAny   = "0.0.0.0"
	Inaddr6Any  = "::"
	InaddrLoop  = "localhost"
	Inaddr6Loop = "::1"
)

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