Documentation
¶
Index ¶
- Constants
- func TLS12HTTPClient(client *http.Client) (*http.Client, error)
- type Candidate
- type Client
- func (c *Client) ResolveLatestMajor(ctx context.Context, repo string, currentMajor int, cooldown time.Duration) (Resolution, error)
- func (c *Client) ResolveLatestStable(ctx context.Context, repo string, current actionspec.StableVersion, ...) (Resolution, error)
- func (c *Client) ResolvePinned(ctx context.Context, repo string, current actionspec.StableVersion, ...) (Resolution, error)
- func (c *Client) WithCacheDir(dir string) *Client
- type Decision
- type Eligibility
- type NoUpdateReason
- type Precision
- type Resolution
- type Version
Constants ¶
View Source
const DefaultBaseURL = "https://api.github.com"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Candidate ¶
type Candidate struct {
Version Version
Eligibility Eligibility
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ResolveLatestMajor ¶
func (*Client) ResolveLatestStable ¶
func (c *Client) ResolveLatestStable(ctx context.Context, repo string, current actionspec.StableVersion, cooldown time.Duration) (Resolution, error)
func (*Client) ResolvePinned ¶
func (c *Client) ResolvePinned(ctx context.Context, repo string, current actionspec.StableVersion, alreadyPinned bool, cooldown time.Duration) (Resolution, error)
ResolvePinned selects an eligible exact release without downgrading current. Existing exact pins only advance to newer versions, never repointed tags.
func (*Client) WithCacheDir ¶
WithCacheDir sets a custom cache directory for testing.
type Decision ¶
type Decision struct {
Target Version
HasUpgrade bool
NoUpdateReason NoUpdateReason
}
type Eligibility ¶
type Eligibility int
const ( EligibilityUnknown Eligibility = iota EligibilityEligible EligibilityBlocked )
type NoUpdateReason ¶
type NoUpdateReason string
type Resolution ¶
Click to show internal directories.
Click to hide internal directories.