Documentation
¶
Index ¶
- type DiffCollector
- func (o *DiffCollector) CheckDiff(prevCfg v1alpha2.ImageSetConfiguration) (bool, error)
- func (o *DiffCollector) DeleteImages(ctx context.Context) error
- func (o *DiffCollector) GetAllMetadata(dir string) (SequenceSchema, v1alpha2.ImageSetConfiguration, error)
- func (o *DiffCollector) WriteMetadata(dir, dest string, sch SequenceSchema, cfg v1alpha2.ImageSetConfiguration) error
- type DiffInterface
- type DiffSchema
- type Item
- type Sequence
- type SequenceSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffCollector ¶
type DiffCollector struct { Log clog.PluggableLoggerInterface Mirror mirror.MirrorInterface Config v1alpha2.ImageSetConfiguration Opts mirror.CopyOptions }
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 (o *DiffCollector) GetAllMetadata(dir string) (SequenceSchema, v1alpha2.ImageSetConfiguration, error)
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 }
func New ¶
func New(log clog.PluggableLoggerInterface, config v1alpha2.ImageSetConfiguration, opts mirror.CopyOptions, mirror mirror.MirrorInterface, ) DiffInterface
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 SequenceSchema ¶
Click to show internal directories.
Click to hide internal directories.