Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSnapshots ¶
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 (*CleanCmd) GetUsername ¶
Click to show internal directories.
Click to hide internal directories.