api

package
v3.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package api is the REST API for telemetry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

API implements the REST API.

func (*API) Initialize

func (a *API) Initialize(serveMux *http.ServeMux, scheme *runtime.Scheme)

Initialize setup the API handlers.

type EventDto

type EventDto struct {
	ManifestDigest digest.Digest             `json:"manifestDigest,omitempty"`
	Action         string                    `json:"action,omitempty"`
	Repository     string                    `json:"repository,omitempty"`
	Tag            string                    `json:"tag,omitempty"`
	AuthRequired   bool                      `json:"authRequired,omitempty"`
	Durations      map[digest.Digest]float32 `json:"durations,omitempty"`
	Timestamp      time.Time                 `json:"timestamp,omitempty"`
	Username       string                    `json:"username,omitempty"`
}

EventDto is the /event request body.

Jump to

Keyboard shortcuts

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