sync

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventReason

type EventReason string

EventReason is a type for storing kubernetes event reasons

const (
	// EventReasonWPCronFailed is the event reason for a failed wp-cron CronJob reconcile
	EventReasonWPCronFailed EventReason = "WPCronFailed"
	// EventReasonWPCronUpdated is the event reason for a successful wp-cron CronJob reconcile
	EventReasonWPCronUpdated EventReason = "WPCronUpdated"
)
const (
	// EventReasonDeploymentFailed is the event reason for a failed Deployment reconcile
	EventReasonDeploymentFailed EventReason = "DeploymentFailed"
	// EventReasonDeploymentUpdated is the event reason for a successful Deployment reconcile
	EventReasonDeploymentUpdated EventReason = "DeploymentUpdated"
)
const (
	// EventReasonIngressFailed is the event reason for a failed Ingress reconcile
	EventReasonIngressFailed EventReason = "IngressFailed"
	// EventReasonIngressUpdated is the event reason for a successful Ingress reconcile
	EventReasonIngressUpdated EventReason = "IngressUpdated"
)
const (
	// EventReasonMediaPVCFailed is the event reason for a failed media PVC reconcile
	EventReasonMediaPVCFailed EventReason = "MediaPVCFailed"
	// EventReasonMediaPVCUpdated is the event reason for a successful media PVC reconcile
	EventReasonMediaPVCUpdated EventReason = "MediaPVCUpdated"
)
const (
	// EventReasonServiceFailed is the event reason for a failed Service reconcile
	EventReasonServiceFailed EventReason = "ServiceFailed"
	// EventReasonServiceUpdated is the event reason for a successful Service reconcile
	EventReasonServiceUpdated EventReason = "ServiceUpdated"
)
const (
	// EventReasonDBUpgradeJobFailed is the event reason for a failed database upgrade Job reconcile
	EventReasonDBUpgradeJobFailed EventReason = "DBUpgradeJobFailed"
	// EventReasonDBUpgradeJobUpdated is the event reason for a successful database upgrade Job reconcile
	EventReasonDBUpgradeJobUpdated EventReason = "DBUpgradeJobUpdated"
)
const (
	// EventReasonWebrootPVCFailed is the event reason for a failed webroot PVC reconcile
	EventReasonWebrootPVCFailed EventReason = "WebrootPVCFailed"
	// EventReasonWebrootPVCUpdated is the event reason for a successful webroot PVC reconcile
	EventReasonWebrootPVCUpdated EventReason = "WebrootPVCUpdated"
)

type Interface

type Interface interface {
	// GetKey returns the client.ObjectKey for looking up the dependant object
	GetKey() types.NamespacedName
	// GetExistingObjectPlaceholder returns a placeholder for existing object
	GetExistingObjectPlaceholder() runtime.Object
	// T transforms an objects to it's desired state
	T(in runtime.Object) (runtime.Object, error)
	// ErrorToEventReason returns an event reason for a T error
	GetErrorEventReason(err error) EventReason
}

Interface is the Wordpress syncer interface

func NewDBUpgradeJobSyncer

NewDBUpgradeJobSyncer returns a new sync.Interface for reconciling database upgrade Job

func NewDeploymentSyncer

NewDeploymentSyncer returns a new sync.Interface for reconciling web Deployment

func NewIngressSyncer

NewIngressSyncer returns a new sync.Interface for reconciling web Ingress

func NewMediaPVCSyncer

NewMediaPVCSyncer returns a new sync.Interface for reconciling media PVC

func NewServiceSyncer

NewServiceSyncer returns a new sync.Interface for reconciling web Service

func NewWPCronSyncer

NewWPCronSyncer returns a new sync.Interface for reconciling wp-cron CronJob

func NewWebrootPVCSyncer

NewWebrootPVCSyncer returns a new sync.Interface for reconciling webroot PVC

Jump to

Keyboard shortcuts

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