api

package
v0.0.0-...-d2f00f9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 20 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(router chi.Router, 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