Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archivist ¶
type Archivist struct {
// contains filtered or unexported fields
}
Archivist is responsible for managing the archival of migration keys in a Go source file. It provides functionality to locate the migration file, parse its abstract syntax tree (AST), and remove specified migration keys and their associated registry.Add calls. The Archivist ensures that the migration keys are properly archived and removed from the migration file, maintaining the integrity of the migration process.
func NewArchivist ¶
NewArchivist creates a new Archivist instance with the provided EnvDir.
type GitSHAGetter ¶
GitSHAGetter is an interface for getting a Git SHA.
type MainBranchSHAGetter ¶
type MainBranchSHAGetter struct{}
MainBranchSHAGetter is a GitSHAGetter implementation that gets the SHA of the main branch.
func (MainBranchSHAGetter) Get ¶
func (m MainBranchSHAGetter) Get() (string, error)
Get returns the SHA of the main branch