Documentation
¶
Index ¶
- func TokenFromEnv() string
- type ActionSelector
- type Client
- func (c *Client) Resolve(ctx context.Context, selector ActionSelector) (ResolvedRef, error)
- func (c *Client) ResolveBranch(ctx context.Context, owner, repo, branch string) (ResolvedRef, error)
- func (c *Client) ResolveDefaultBranch(ctx context.Context, owner, repo string) (ResolvedRef, error)
- func (c *Client) ResolveLatestRelease(ctx context.Context, owner, repo string) (ResolvedRef, error)
- func (c *Client) ResolveTag(ctx context.Context, owner, repo, tag string) (ResolvedRef, error)
- func (c *Client) VerifyCommit(ctx context.Context, owner, repo, sha string) error
- type ErrorKind
- type Option
- type RefKind
- type ResolvedRef
- type ResolverError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TokenFromEnv ¶
func TokenFromEnv() string
Types ¶
type ActionSelector ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientFromEnv ¶
func (*Client) Resolve ¶
func (c *Client) Resolve(ctx context.Context, selector ActionSelector) (ResolvedRef, error)
func (*Client) ResolveBranch ¶
func (*Client) ResolveDefaultBranch ¶ added in v0.1.1
func (*Client) ResolveLatestRelease ¶ added in v0.1.1
func (*Client) ResolveTag ¶
type ResolvedRef ¶
type ResolvedRef struct {
Owner string `json:"owner"`
Repo string `json:"repo"`
Ref string `json:"ref"`
SHA string `json:"sha"`
Kind RefKind `json:"kind"`
CommitTime time.Time `json:"commit_time"`
TagTime *time.Time `json:"tag_time,omitempty"`
ReleaseTime *time.Time `json:"release_time,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.