Documentation
¶
Overview ¶
Package rename moves a package to the name its repository has now.
A package's name is part of everything: the branch its generated versions live on, the path aqua fetches them from, the entry the catalogue lists it under. A repository that is renamed or transferred leaves all of it under a name nobody uses, and the versions are not something to generate again -- each one was downloaded, hashed and opened on six machines to get there.
So the branch is carried over and the old name becomes an alias, which is how a configuration still asking for it resolves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalogue ¶
type Catalogue interface {
Rename(ctx context.Context, logger *slog.Logger, from, to string, cfg *aquag2.Config) error
}
Catalogue is the index a renamed package has to be listed in under its new name.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller renames a package.
func (*Controller) Rename ¶
Rename moves the package from one name to the other.
The branch first, then the catalogue. A branch under the new name that the catalogue doesn't list yet is what the reconciliation exists to find; a catalogue naming a branch that isn't there is a registry that answers nothing for a package it says it has.