lib

package
v0.0.0-...-864198a Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventReasonInvalidRestic                 = "InvalidRestic"
	EventReasonInvalidRecovery               = "InvalidRecovery"
	EventReasonInvalidCronExpression         = "InvalidCronExpression"
	EventReasonSuccessfulCronExpressionReset = "SuccessfulCronExpressionReset"
	EventReasonSuccessfulBackup              = "SuccessfulBackup"
	EventReasonFailedToBackup                = "FailedBackup"
	EventReasonFailedToRetention             = "FailedRetention"
	EventReasonFailedToUpdate                = "FailedUpdateBackup"
	EventReasonFailedCronJob                 = "FailedCronJob"
)

Variables

This section is empty.

Functions

func NewEventRecorder

func NewEventRecorder(client kubernetes.Interface, component string) record.EventRecorder

Types

type Controller

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

func New

func New(client kubernetes.Interface, opts Options) *Controller

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh chan struct{})

func (*Controller) Setup

func (c *Controller) Setup() error

type Options

type Options struct {
	NodeName             string
	PreferredAddressType string
	QPS                  float32
	Burst                int
	ResyncPeriod         time.Duration
	MaxNumRequeues       int
}

type TemplateData

type TemplateData struct {
	HostIP  string
	NodeIPs []string
}

Jump to

Keyboard shortcuts

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