common

package
v0.0.0-...-4400c5e Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceKey              = "service"
	AerospikeClustersKey    = "aerospike-clusters"
	AerospikeClusterKey     = "aerospike-cluster"
	StorageKey              = "storage"
	BackupRoutinesKey       = "backup-routines"
	BackupPoliciesKey       = "backup-policies"
	SecretAgentsKey         = "secret-agent"
	SourceClusterKey        = "source-cluster"
	BackupServiceConfigYAML = "aerospike-backup-service.yml"
)

Backup Config relate keys

View Source
const (
	RoutineKey = "routine"
	TimeKey    = "time"
	SourceKey  = "source"
)

Restore config fields

View Source
const (
	HTTPKey                = "http"
	AerospikeBackupService = "aerospike-backup-service"
)

Variables

View Source
var (
	UpdateOption = &client.UpdateOptions{
		FieldManager: "aerospike-operator",
	}
	CreateOption = &client.CreateOptions{
		FieldManager: "aerospike-operator",
	}
)
View Source
var MaxConcurrentReconciles = runtime.NumCPU() * 2

MaxConcurrentReconciles is the Number of Reconcile threads to run Reconcile operations

Functions

func GetConfigSection

func GetConfigSection(config map[string]interface{}, section string) (map[string]interface{}, error)

GetConfigSection returns the section of the config with the given name.

Types

type ReconcileResult

type ReconcileResult struct {
	Err       error
	Result    reconcile.Result
	IsSuccess bool
}

func ReconcileError

func ReconcileError(e error) ReconcileResult

func ReconcileRequeueAfter

func ReconcileRequeueAfter(secs int) ReconcileResult

func ReconcileSuccess

func ReconcileSuccess() ReconcileResult

func (ReconcileResult) GetResult

func (r ReconcileResult) GetResult() (reconcile.Result, error)

Jump to

Keyboard shortcuts

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