Documentation
¶
Overview ¶
Package state manages deployment state for quad-ops, tracking current and previous commit hashes per repository to enable rollback.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoState ¶
type RepoState struct {
Current string `json:"current"`
Previous string `json:"previous,omitempty"`
}
RepoState tracks the deployed commit hashes for a single repository.
type State ¶
State holds the deployment state for all repositories.
func (*State) GetPrevious ¶
GetPrevious returns the previous commit hash for the named repository. Returns empty string if no previous state exists.
Click to show internal directories.
Click to hide internal directories.