harbor

package
v0.0.0-...-4181570 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Push = "PUSH_ARTIFACT"
)

Variables

This section is empty.

Functions

func NewImageEventWebHook

func NewImageEventWebHook(collect eventservice.ImageEventCollect) http.Handler

Types

type EventData

type EventData struct {
	Resources  []EventResource `json:"resources"`
	Repository Repository      `json:"repository"`
}

type EventResource

type EventResource struct {
	Digest      string `json:"digest,omitempty"`
	Tag         string `json:"tag"`
	ResourceURL string `json:"resource_url"`
}

type Repository

type Repository struct {
	DateCreated  int32  `json:"date_created,omitempty"`
	Name         string `json:"name"`
	Namespace    string `json:"namespace"`
	RepoFullName string `json:"repo_full_name"`
	RepoType     string `json:"repo_type"`
}

type WebHook

type WebHook struct {
	Type      string    `json:"type"`
	OccurAt   int32     `json:"occur_at,omitempty"`
	Operator  string    `json:"operator,omitempty"`
	EventData EventData `json:"event_data"`
}

Jump to

Keyboard shortcuts

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