platform

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContinousGrapher

type ContinousGrapher interface {
	// GraphContinously returns a channel which will receive a graph of all
	// images found on the platform whenever the graph changes.
	// The graph's roots are [ImageNode]s.
	GraphContinously(context.Context) (<-chan Graph, error)
}

type Graph

type Graph = *graph.Graph[Node]

func NewGraph

func NewGraph() Graph

type Grapher

type Grapher interface {
	// Graph returns a graph of all images found on the platform.
	// The graph's roots are [ImageNode]s.
	Graph(context.Context) (Graph, error)
}

type ImageNode

type ImageNode struct {
	Reference oci.Reference
}

func (ImageNode) ID

func (n ImageNode) ID() string

func (ImageNode) String

func (n ImageNode) String() string

func (ImageNode) Type

func (n ImageNode) Type() string

type Node

type Node interface {
	ID() string
	Type() string
}

type PollGrapher

type PollGrapher struct {
	Grapher  Grapher
	Interval time.Duration
}

func (*PollGrapher) GraphContinously

func (g *PollGrapher) GraphContinously(ctx context.Context) (<-chan Graph, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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