Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBinaryNotFound = errors.New("binary not found")
Functions ¶
This section is empty.
Types ¶
type GitHubClient ¶
type GitHubClient struct {
// contains filtered or unexported fields
}
func NewGitHubClient ¶
func NewGitHubClient(opts ...GitHubOption) *GitHubClient
func (*GitHubClient) GetLatestPluginBinary ¶
func (c *GitHubClient) GetLatestPluginBinary(ctx context.Context) ([]byte, error)
func (*GitHubClient) GetLatestVersion ¶
func (c *GitHubClient) GetLatestVersion(ctx context.Context) (string, error)
type GitHubConfig ¶
func (*GitHubConfig) Option ¶
func (c *GitHubConfig) Option(opts ...GitHubOption)
type GitHubOption ¶
type GitHubOption interface {
ConfigureGitHub(*GitHubConfig)
}
type WithOrganization ¶
type WithOrganization string
func (WithOrganization) ConfigureGitHub ¶
func (o WithOrganization) ConfigureGitHub(c *GitHubConfig)
type WithRepository ¶
type WithRepository string
func (WithRepository) ConfigureGitHub ¶
func (r WithRepository) ConfigureGitHub(c *GitHubConfig)
type WithTargetBinary ¶
type WithTargetBinary string
func (WithTargetBinary) ConfigureGitHub ¶
func (b WithTargetBinary) ConfigureGitHub(c *GitHubConfig)
Click to show internal directories.
Click to hide internal directories.