notification

package
v2.11.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

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

this implements the "when" part of given/when/then

none of the func implement error checks, and that is complete intended, you should check for errors using the Then()

func (*Actions) SetParamInNotificationConfigMap

func (a *Actions) SetParamInNotificationConfigMap(key, value string) *Actions

func (*Actions) Then

func (a *Actions) Then() *Consequences

type Consequences

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

this implements the "then" part of given/when/then

func (*Consequences) Given

func (c *Consequences) Given() *Context

func (*Consequences) Services

func (c *Consequences) Services(block func(services *notification.ServiceList, err error)) *Consequences

func (*Consequences) Templates

func (c *Consequences) Templates(block func(services *notification.TemplateList, err error)) *Consequences

func (*Consequences) Triggers

func (c *Consequences) Triggers(block func(services *notification.TriggerList, err error)) *Consequences

func (*Consequences) When

func (c *Consequences) When() *Actions

type Context

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

this implements the "given" part of given/when/then

func Given

func Given(t *testing.T) *Context

func (*Context) And

func (c *Context) And(block func()) *Context

func (*Context) When

func (c *Context) When() *Actions

Jump to

Keyboard shortcuts

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