scm

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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

type GitHubConfig struct {
	Orginaztion  string
	Repository   string
	TargetBinary string
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL