reason

package
v0.0.0-...-6241ad3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupCompleted

type BackupCompleted struct {
	Undefined
}

BackupCompleted marks the completion of a backup

func NewBackupCompleted

func NewBackupCompleted(source Source, short []string, verbose ...string) *BackupCompleted

NewBackupCompleted returns new instance of BackupCompleted.

type BackupInProgress

type BackupInProgress struct {
	Undefined
}

BackupInProgress defines the reason what part of backup is in progress and how it went

func NewBackupInProgress

func NewBackupInProgress(source Source, short []string, verbose ...string) *BackupInProgress

NewBackupInProgress returns new instance of BackupInProgress.

type BaseConfigurationComplete

type BaseConfigurationComplete struct {
	Undefined
}

BaseConfigurationComplete informs that base configuration is valid and complete.

func NewBaseConfigurationComplete

func NewBaseConfigurationComplete(source Source, short []string, verbose ...string) *BaseConfigurationComplete

NewBaseConfigurationComplete returns new instance of BaseConfigurationComplete.

type BaseConfigurationFailed

type BaseConfigurationFailed struct {
	Undefined
}

BaseConfigurationFailed defines the reason why base configuration phase failed.

func NewBaseConfigurationFailed

func NewBaseConfigurationFailed(source Source, short []string, verbose ...string) *BaseConfigurationFailed

NewBaseConfigurationFailed returns new instance of BaseConfigurationFailed.

type DeploymentEvent

type DeploymentEvent struct {
	Undefined
}

DeploymentEvent informs that pod is being created.

func NewDeploymentEvent

func NewDeploymentEvent(source Source, short []string, verbose ...string) *DeploymentEvent

NewDeploymentEvent returns new instance of DeploymentEvent.

type GroovyScriptExecutionFailed

type GroovyScriptExecutionFailed struct {
	Undefined
}

GroovyScriptExecutionFailed defines the reason why the groovy script execution failed.

type ImageBuildCompleted

type ImageBuildCompleted struct {
	Undefined
}

RestoreCompleted marks the completion of a restore

func NewImageBuildCompleted

func NewImageBuildCompleted(source Source, short []string, verbose ...string) *ImageBuildCompleted

NewBackupInProgress returns new instance of BackupInProgress.

type ImageBuildFailed

type ImageBuildFailed struct {
	Undefined
}

RestoreCompleted marks the completion of a restore

func NewImageBuildFailed

func NewImageBuildFailed(source Source, short []string, verbose ...string) *ImageBuildFailed

NewBackupInProgress returns new instance of BackupInProgress.

type JenkinsInstanceCreated

type JenkinsInstanceCreated struct {
	Undefined
}

ReconcileLoopFailed defines the reason why the reconcile loop failed.

func NewJenkinsInstanceCreated

func NewJenkinsInstanceCreated(source Source, short []string, verbose ...string) *JenkinsInstanceCreated

NewJenkinsInstanceCreated returns new instance of JenkinsInstanceCreated.

type PodRestart

type PodRestart struct {
	Undefined
}

PodRestart defines the reason why Jenkins master pod restarted.

func NewPodRestart

func NewPodRestart(source Source, short []string, verbose ...string) *PodRestart

NewPodRestart returns new instance of PodRestart.

type Reason

type Reason interface {
	Short() []string
	Verbose() []string
	HasMessages() bool
}

Reason is interface that let us know why operator sent notification.

type ReconcileLoopFailed

type ReconcileLoopFailed struct {
	Undefined
}

ReconcileLoopFailed defines the reason why the reconcile loop failed.

func NewReconcileLoopFailed

func NewReconcileLoopFailed(source Source, short []string, verbose ...string) *ReconcileLoopFailed

NewReconcileLoopFailed returns new instance of ReconcileLoopFailed.

type RestoreCompleted

type RestoreCompleted struct {
	Undefined
}

RestoreCompleted marks the completion of a restore

func NewRestoreCompleted

func NewRestoreCompleted(source Source, short []string, verbose ...string) *RestoreCompleted

NewBackupCompleted returns new instance of BackupCompleted.

type RestoreInProgress

type RestoreInProgress struct {
	Undefined
}

RestoreInProgress defines the reason what part of restore is in progress and how it went

func NewRestoreInProgress

func NewRestoreInProgress(source Source, short []string, verbose ...string) *RestoreInProgress

NewBackupInProgress returns new instance of BackupInProgress.

type Source

type Source string

Source is enum type that informs us what triggered notification.

const (
	// OperatorSource defines that notification concerns operator
	OperatorSource Source = "operator"
	// KubernetesSource defines that notification concerns kubernetes
	KubernetesSource Source = "kubernetes"
	// HumanSource defines that notification concerns human
	HumanSource Source = "human"
)

type Undefined

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

Undefined is base or untraceable reason.

func NewUndefined

func NewUndefined(source Source, short []string, verbose ...string) *Undefined

NewUndefined returns new instance of Undefined.

func (Undefined) HasMessages

func (p Undefined) HasMessages() bool

HasMessages checks if there is any message.

func (Undefined) Short

func (p Undefined) Short() []string

Short is list of reasons.

func (Undefined) Verbose

func (p Undefined) Verbose() []string

Verbose is list of reasons with details.

type UserConfigurationComplete

type UserConfigurationComplete struct {
	Undefined
}

UserConfigurationComplete informs that user configuration is valid and complete.

func NewUserConfigurationComplete

func NewUserConfigurationComplete(source Source, short []string, verbose ...string) *UserConfigurationComplete

NewUserConfigurationComplete returns new instance of UserConfigurationComplete.

type UserConfigurationFailed

type UserConfigurationFailed struct {
	Undefined
}

UserConfigurationFailed defines the reason why user configuration phase failed.

func NewUserConfigurationFailed

func NewUserConfigurationFailed(source Source, short []string, verbose ...string) *UserConfigurationFailed

NewUserConfigurationFailed returns new instance of UserConfigurationFailed.

Jump to

Keyboard shortcuts

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