diff

package
v2.0.0-...-443e6bf Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffCollector

func (*DiffCollector) CheckDiff

func (o *DiffCollector) CheckDiff(prevCfg v1alpha2.ImageSetConfiguration) (bool, error)

func (*DiffCollector) DeleteImages

func (o *DiffCollector) DeleteImages(ctx context.Context) error

func (*DiffCollector) GetAllMetadata

func (*DiffCollector) WriteMetadata

func (o *DiffCollector) WriteMetadata(dir, dest string, sch SequenceSchema, cfg v1alpha2.ImageSetConfiguration) error

writeMetadata

type DiffInterface

type DiffInterface interface {
	DeleteImages(ctx context.Context) error
	CheckDiff(prevCfg v1alpha2.ImageSetConfiguration) (bool, error)
	GetAllMetadata(dir string) (SequenceSchema, v1alpha2.ImageSetConfiguration, error)
	WriteMetadata(dir, dest string, sch SequenceSchema, cfg v1alpha2.ImageSetConfiguration) error
}

type DiffSchema

type DiffSchema struct {
	// contains filtered or unexported fields
}

type Item

type Item struct {
	Value          int    `toml:"value"`
	Timestamp      int64  `toml:"timestamp"`
	Imagesetconfig string `toml:"imagesetconfig"`
	// this looks weird current used for previous
	// imagesetconfigs - its a simple way to track the most recent
	Current     bool   `toml:"current"`
	Destination string `toml:"destination"`
}

type Sequence

type Sequence struct {
	Item []Item `toml:"item"`
}

type SequenceSchema

type SequenceSchema struct {
	Title    string   `toml:"title"`
	Owner    string   `toml:"owner"`
	Sequence Sequence `toml:"sequence"`
}

Jump to

Keyboard shortcuts

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