notification

package
v0.0.0-...-e5246a7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	WithName(name string) Builder
	WithTemplate(template string) Builder
	WithSubjectAndContent(subject, content string) Builder
	WithNotificationType(notificationType string) Builder
	WithControllerReference(owner v1.Object, scheme *runtime.Scheme) Builder
	WithKeysAndValues(keysAndValues map[string]string) Builder
	WithUserContext(userSignup *toolchainv1alpha1.UserSignup) Builder
	Create(ctx context.Context, recipient string) (*toolchainv1alpha1.Notification, error)
}

func NewNotificationBuilder

func NewNotificationBuilder(client client.Client, namespace string) Builder

type Option

type Option = func(notification *toolchainv1alpha1.Notification) error

Jump to

Keyboard shortcuts

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