models

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

package models defines models used internally in snapshots

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeType

type ChangeType int
const (
	Unchanged ChangeType = iota
	Added
	Removed
	Changed
)

func (ChangeType) MarshalJSON

func (a ChangeType) MarshalJSON() ([]byte, error)

func (ChangeType) String

func (a ChangeType) String() string

type Snapshot

type Snapshot struct {
	Labels map[string]*Tracker `json:"labels"`
}

type Tracker

type Tracker struct {
	Digest string   `json:"digest"`
	Run    []string `json:"run,omitempty"`
	Tags   []string `json:"tags,omitempty"`
}

type TrackerChange

type TrackerChange struct {
	Tracker
	Label      string     `json:"label"`
	ChangeType ChangeType `json:"change"`
}

Jump to

Keyboard shortcuts

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