clean

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSnapshots

func DeleteSnapshots(tbl *table.Table, cat catalog.Catalog, snapshotIDs []string) error

DeleteSnapshots removes the given snapshots from Iceberg table metadata and rolls the main branch back when the current snapshot is being removed.

func SquashSnapshots

func SquashSnapshots(tbl *table.Table, cat catalog.Catalog, localOnlySnapshotIDs []string, remoteSnapshotIDs []string) error

SquashSnapshots replaces local-only snapshots with one new metadata snapshot that points at the latest local table state and uses the remote head as parent.

Types

type CleanCmd

type CleanCmd struct {
	Wipe     bool   `arg:"--wipe,-w" help:"Wipe the entire data product. Useful for debugging and testing purposes"`
	Squash   bool   `arg:"--squash" help:"Condense local snapshots ahead of the remote artifact into one new snapshot"`
	Username string `arg:"--username,env:OCI_USERNAME" help:"Username for the OCI registry"`
	Password string `arg:"--password,env:OCI_PASSWORD" help:"Password for the OCI registry"`
	Artifact string `arg:"positional" help:"Full URL of the OCI artifact to diff against. Example: ghcr.io/my-username/my-repository:latest"`
}

func (*CleanCmd) GetArtifactReference

func (cmd *CleanCmd) GetArtifactReference() (pkg.ArtifactReference, error)

func (*CleanCmd) GetPassword

func (cmd *CleanCmd) GetPassword() string

func (*CleanCmd) GetUsername

func (cmd *CleanCmd) GetUsername() string

func (*CleanCmd) Run

func (cmd *CleanCmd) Run() error

Jump to

Keyboard shortcuts

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