Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PushedEventType is the cloudevents event type for registry pushes
PushedEventType = "dev.chainguard.apk.push.v1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PushEvent ¶
type PushEvent struct { // Repository identifies the repository being pushed Repository string `json:"repository"` // RepoID identifies the UIDP of the APK repository (group) being pushed RepoID string `json:"repo_id"` // Package holds the name of the package being pushed. Package string `json:"package"` // Version holds the version of the package being pushed. Version string `json:"version"` // Architecture holds the architecture of the package being pushed. Architecture string `json:"architecture"` // Checksum holds the checksum of the package's control section as // it would appear in an APKINDEX entry for the package. Checksum string `json:"checksum"` // When holds when the push occurred. When civil.DateTime `json:"when"` // Location holds the detected approximate location of the client who pushed. // For example, "ColumbusOHUS" or "Minato City13JP". Location string `json:"location"` // RemoteAddress holds the address of the client who pushed. RemoteAddress string `json:"remote_address"` // UserAgent holds the user-agent of the client who pushed. UserAgent string `json:"user_agent"` Error *Error `json:"error,omitempty"` }
PushEvent describes an APK being pushed to the registry.
func (PushEvent) APKBasePath ¶ added in v0.1.26
APKPath is a convenience method for constructing the base path to the APK.
Click to show internal directories.
Click to hide internal directories.