model

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

To avoid importing a large number of redundant dependencies, we ported harbor structure definitions to this file.

Ported from github.com/goharbor/harbor/src/controller/event Ported from github.com/goharbor/harbor/src/pkg/notifier/model

Index

Constants

View Source
const TopicPushArtifact = "PUSH_ARTIFACT"

Variables

This section is empty.

Functions

This section is empty.

Types

type EventData

type EventData struct {
	Resources []*Resource `json:"resources,omitempty"`
}

EventData of notification event payload

type Payload

type Payload struct {
	Type      string     `json:"type"`
	EventData *EventData `json:"event_data,omitempty"`
}

Payload of notification event

type Resource

type Resource struct {
	ResourceURL string `json:"resource_url,omitempty"`
}

Resource describe infos of resource triggered notification

Jump to

Keyboard shortcuts

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