Documentation
¶
Index ¶
- func NewGitHubClientWrapper(client *github.Client) release.GitHubClientInterface
- type UpdateCacheItem
- type Updater
- func (self *Updater) CheckDeploymentsReady(ctx context.Context, version string) (bool, error)
- func (self *Updater) CheckForUpdates(ctx context.Context) ([]string, error)
- func (self *Updater) GetLatestVersion(ctx context.Context) (string, error)
- func (self *Updater) GetNextAvailableVersion(ctx context.Context, currentVersion string) (string, error)
- func (self *Updater) GetUpdatePath(ctx context.Context, targetVersion string) ([]string, error)
- func (self *Updater) UpdateToVersion(ctx context.Context, targetVersion string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitHubClientWrapper ¶
func NewGitHubClientWrapper(client *github.Client) release.GitHubClientInterface
NewGitHubClientWrapper creates a new wrapper around the GitHub client
Types ¶
type UpdateCacheItem ¶
type Updater ¶
type Updater struct { CurrentVersion string // contains filtered or unexported fields }
Updater handles the update process for the application
func New ¶
func New(cfg *config.Config, currentVersion string, k8sClient *k8s.KubeClient, redisClient *redis.Client) *Updater
New creates a new updater instance
func (*Updater) CheckDeploymentsReady ¶
CheckDeploymentsReady checks if all deployments are running with the specified version
func (*Updater) CheckForUpdates ¶
CheckForUpdates checks if there are any available updates
func (*Updater) GetLatestVersion ¶
GetLatestVersion returns the latest available version
func (*Updater) GetNextAvailableVersion ¶
func (self *Updater) GetNextAvailableVersion(ctx context.Context, currentVersion string) (string, error)
GetNextAvailableVersion returns the next version that can be updated to from the current version
func (*Updater) GetUpdatePath ¶
GetUpdatePath returns the ordered list of versions needed to update from current to target
Click to show internal directories.
Click to hide internal directories.