acceptance

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubAssetFetcher

type GithubAssetFetcher struct {
	// contains filtered or unexported fields
}

func NewGithubAssetFetcher

func NewGithubAssetFetcher(githubToken string, logger logging.Logger) (*GithubAssetFetcher, error)

func (*GithubAssetFetcher) FetchReleaseAsset

func (f *GithubAssetFetcher) FetchReleaseAsset(owner, repo, version string, expr *regexp.Regexp, extract bool) (string, error)

Fetch a GitHub release asset for the given repo that matches the regular expression. The expression is something like 'pack-v\d+.\d+.\d+-macos'. The asset may be found in the local cache or downloaded from GitHub. The return value is the location of the asset on disk, or any error encountered.

func (*GithubAssetFetcher) FetchReleaseSource

func (f *GithubAssetFetcher) FetchReleaseSource(owner, repo, version string) (string, error)

func (*GithubAssetFetcher) FetchReleaseVersion

func (f *GithubAssetFetcher) FetchReleaseVersion(owner, repo string, n int) (string, error)

Fetch a GitHub release version that is n minor versions older than the latest. Ex: when n is 0, the latest release version is returned. Ex: when n is -1, the latest patch of the previous minor version is returned.

type InputPathsManager

type InputPathsManager struct {
	// contains filtered or unexported fields
}

func NewInputPathsManager

func NewInputPathsManager(logger logging.Logger) (*InputPathsManager, error)

func (*InputPathsManager) FillInRequiredPaths

func (m *InputPathsManager) FillInRequiredPaths(c runCombo) error

type SuiteManager

type SuiteManager struct {
	// contains filtered or unexported fields
}

func (*SuiteManager) CleanUp

func (s *SuiteManager) CleanUp() error

func (*SuiteManager) RegisterCleanUp

func (s *SuiteManager) RegisterCleanUp(key string, cleanUp func() error)

func (*SuiteManager) RunTaskOnceString

func (s *SuiteManager) RunTaskOnceString(key string, run func() (string, error)) (string, error)

Jump to

Keyboard shortcuts

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