events

package
v0.0.0-...-c7c3a81 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventListener

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

EventListener event listener

func NewEventListener

func NewEventListener() *EventListener

NewEventListener initialize EventListener.

func (*EventListener) GetEvents

func (e *EventListener) GetEvents(repository string) []EventRow

GetEvents retrieve events from sqlite db

func (*EventListener) ProcessEvents

func (e *EventListener) ProcessEvents(request *http.Request)

ProcessEvents parse and store registry events

type EventRow

type EventRow struct {
	ID         int
	Action     string
	Repository string
	Tag        string
	IP         string
	User       string
	Created    string
}

EventRow event row from sqlite

Jump to

Keyboard shortcuts

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