Documentation
¶
Overview ¶
Package initcmd implements the logic behind the 'ar2 init' command.
init builds ar2's initial state: it reads the package list from aqua-registry (v1), looks up each package's star count, and pushes the result to the container registry. The star count decides the order in which packages are processed later, because a full backfill can't be done in one run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller runs 'ar2 init'.
type Input ¶
type Input struct {
// RegistryRef is the aqua-registry ref the package list is read from.
RegistryRef string
// TokenSource authenticates the push to the container registry.
TokenSource oauth2.TokenSource
// Registry describes where the state artifact is pushed.
Registry *state.Registry
// Output writes the state to this path instead of pushing it. For debugging.
Output string
}
Input holds the parameters of 'ar2 init'.
Click to show internal directories.
Click to hide internal directories.