event

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "gitlab"

Variables

This section is empty.

Functions

func Event

func Event(ctx context.Context, b *framework.Backend, eventType EventType, metadata map[string]string) error

func EventWithPrefix added in v0.11.0

func EventWithPrefix(ctx context.Context, b *framework.Backend, eventType EventType, prefix string, metadata map[string]string) error

Types

type EventType added in v0.11.0

type EventType string

EventType represents an event type name like "config-write" or "static-creds-create-fail".

func MustEventType added in v0.11.0

func MustEventType(name string) EventType

MustEventType is like NewEventType but panics on invalid input.

func NewEventType added in v0.11.0

func NewEventType(name string) (EventType, error)

NewEventType creates a validated EventType. The name must contain only lowercase letters (a-z) and hyphens.

func (EventType) String added in v0.11.0

func (e EventType) String() string

Jump to

Keyboard shortcuts

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