reason

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0, CC-BY-4.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 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 GroovyScriptExecutionFailed

type GroovyScriptExecutionFailed struct {
	Undefined
}

GroovyScriptExecutionFailed defines the reason why the groovy script execution failed.

func NewGroovyScriptExecutionFailed

func NewGroovyScriptExecutionFailed(source Source, short []string, verbose ...string) *GroovyScriptExecutionFailed

NewGroovyScriptExecutionFailed returns new instance of GroovyScriptExecutionFailed.

type PodCreation

type PodCreation struct {
	Undefined
}

PodCreation informs that pod is being created.

func NewPodCreation

func NewPodCreation(source Source, short []string, verbose ...string) *PodCreation

NewPodCreation returns new instance of PodCreation.

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 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