formatter

package
v0.2.1-0...-8d3d086 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error) *slack.Message

Error returns a message for the error.

func Event

func Event(e events.Message, filter EventFilter) *slack.Message

Event returns a message for the event. It returns a message only for some events and may return nil.

func Version

func Version(v types.Version) *slack.Message

Version returns a message for the Docker version.

Types

type EventFilter

type EventFilter struct {
	ImageRegexp *regexp.Regexp
}

EventFilter represents a filter for events.

func (*EventFilter) Match

func (filter *EventFilter) Match(e events.Message) bool

Match returns true if the event satisfies the filter.

Jump to

Keyboard shortcuts

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