notification

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const Path = "/registry/notification"

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(loopbackConfig *restclient.Config) (http.Handler, error)

func ParseRepository

func ParseRepository(repository string) (tenantID, namespace, repo string)

ParseRepository splits a repository into three parts: tenantID, namespace and rest

Types

type Actor

type Actor struct {
	Name string
}

Actor holds information about actor.

type Event

type Event struct {
	ID        string `json:"Id"`
	TimeStamp time.Time
	Action    string
	Target    *Target
	Request   *Request
	Actor     *Actor
}

Event holds the details of a event.

type Notification

type Notification struct {
	Events []Event
}

Notification holds all events.

type Request

type Request struct {
	ID        string `json:"Id"`
	Method    string
	UserAgent string
}

Request holds information about a request.

type Target

type Target struct {
	MediaType  string
	Digest     string
	Repository string
	URL        string `json:"Url"`
	Tag        string
}

Target holds information about the target of a event.

Jump to

Keyboard shortcuts

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