upgrade_assets

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RepoName = "service-mesh-hub"
	OrgName  = "solo-io"
)

Variables

View Source
var (
	DefaultRequestTimeout = 15 * time.Second

	NoReleaseContainingAssetError = eris.New("couldn't find any release with the desired asset")
)

Functions

func MeshctlBinaryName

func MeshctlBinaryName() string

func TryGetAssetWithName

func TryGetAssetWithName(release *github.RepositoryRelease, expectedAssetName string) *github.ReleaseAsset

Types

type AssetHelper

type AssetHelper interface {
	GetReleaseWithAsset(ctx context.Context, tag string, expectedAssetName string) (*github.RepositoryRelease, error)
	DownloadAsset(downloadUrl string, destFile string) error
}

func NewAssetHelper

func NewAssetHelper(client GithubAssetClient) AssetHelper

type GithubAssetClient

type GithubAssetClient interface {
	ListReleases(ctx context.Context, opt *github.ListOptions) ([]*github.RepositoryRelease, error)
	GetReleaseByTag(ctx context.Context, tag string) (*github.RepositoryRelease, error)
}

func DefaultGithubAssetClient

func DefaultGithubAssetClient() GithubAssetClient

func NewGithubAssetClient

func NewGithubAssetClient(client *github.Client, org, repo string) GithubAssetClient

Directories

Path Synopsis
Package mock_upgrade_assets is a generated GoMock package.
Package mock_upgrade_assets is a generated GoMock package.

Jump to

Keyboard shortcuts

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