Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoReleases = errors.New("no neco packages are released") ErrNoMembers = errors.New("no boot servers are joined") )
Retriable errors in neco-updater
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int
Action is the type for NextAction.
const ( ActionError Action = iota ActionWaitInfo ActionReconfigure ActionNewVersion ActionWaitWorkers ActionStop ActionWaitClear )
Actions.
func NextAction ¶
NextAction decides the next action to do for neco-updater.
type ReleaseChecker ¶
type ReleaseChecker struct {
// contains filtered or unexported fields
}
ReleaseChecker checks newer GitHub releases by polling
func NewReleaseChecker ¶
NewReleaseChecker returns a new ReleaseChecker
type ReleaseClient ¶
type ReleaseClient struct {
// contains filtered or unexported fields
}
ReleaseClient gets GitHub Releases
func NewReleaseClient ¶
func NewReleaseClient(owner, repo string, http *http.Client) *ReleaseClient
NewReleaseClient returns ReleaseClient
func (ReleaseClient) GetLatestPublishedTag ¶
func (c ReleaseClient) GetLatestPublishedTag(ctx context.Context) (string, error)
GetLatestPublishedTag returns latest published release/pre-release tag in GitHub Releases of neco repository
func (ReleaseClient) GetLatestReleaseTag ¶
func (c ReleaseClient) GetLatestReleaseTag(ctx context.Context) (string, error)
GetLatestReleaseTag returns latest published release tag in GitHub Releases of neco repository
Click to show internal directories.
Click to hide internal directories.