job

package
v1.18.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanConfigFileHistoryJobConfig added in v1.17.3

type CleanConfigFileHistoryJobConfig struct {
	RetentionDays time.Duration `mapstructure:"retentionDays"`
	BatchSize     uint64        `mapstructure:"batchSize"`
}

type CleanDeletedClientsJobConfig

type CleanDeletedClientsJobConfig struct {
	ClientCleanTimeout time.Duration `mapstructure:"clientCleanTimeout"`
}

type CleanDeletedInstancesJobConfig

type CleanDeletedInstancesJobConfig struct {
	InstanceCleanTimeout time.Duration `mapstructure:"instanceCleanTimeout"`
}

type DeleteEmptyServiceJobConfig added in v1.17.2

type DeleteEmptyServiceJobConfig struct {
	ServiceDeleteTimeout time.Duration `mapstructure:"serviceDeleteTimeout"`
}

type DeleteUnHealthyInstanceJobConfig

type DeleteUnHealthyInstanceJobConfig struct {
	InstanceDeleteTimeout time.Duration `mapstructure:"instanceDeleteTimeout"`
}

type JobConfig

type JobConfig struct {
	Name   string                 `yaml:"name"`
	Enable bool                   `yaml:"enable"`
	Option map[string]interface{} `yaml:"option"`
}

JobcConfig maintain job configuration

type MaintainJobs

type MaintainJobs struct {
	// contains filtered or unexported fields
}

MaintainJobs

func NewMaintainJobs

func NewMaintainJobs(namingServer service.DiscoverServer, cacheMgn *cache.CacheManager,
	storage store.Store) *MaintainJobs

NewMaintainJobs

func (*MaintainJobs) StartMaintianJobs

func (mj *MaintainJobs) StartMaintianJobs(configs []JobConfig) error

StartMaintainJobs

func (*MaintainJobs) StopMaintainJobs

func (mj *MaintainJobs) StopMaintainJobs()

StopMaintainJobs

Jump to

Keyboard shortcuts

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