core

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigFilename = "opendex-docker.conf"
)

Variables

View Source
var (
	ErrNotFound = errors.New("not found")

	ReleaseRef = regexp.MustCompile(`^\d{2}\.\d{2}\.\d{2}.*$`)
)
View Source
var (
	ErrHomeDirEmpty = errors.New("homeDir is empty")
	ErrNetworkEmpty = errors.New("network is empty")
	Debug           = false
)

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Name               string `json:"name"`
	SizeInBytes        uint   `json:"size_in_bytes"`
	ArchiveDownloadUrl string `json:"archive_download_url"`
}

type ArtifactList

type ArtifactList struct {
	TotalCount uint       `json:"total_count"`
	Artifacts  []Artifact `json:"artifacts"`
}

type Config

type Config struct {
	GitHub     GitHub
	SimnetDir  string `toml:"simnet-dir"`
	TestnetDir string `toml:"testnet-dir"`
	MainnetDir string `toml:"mainnet-dir"`
}

type GitHub

type GitHub struct {
	AccessToken string `toml:"access-token"`
}

type GithubClient

type GithubClient struct {
	Client      *http.Client
	Logger      *logrus.Entry
	AccessToken string
}

func NewGithubClient

func NewGithubClient(accessToken string) *GithubClient

func (*GithubClient) DownloadLatestBinary

func (t *GithubClient) DownloadLatestBinary(branch string, commit string, launcherVersionsDir string) error

func (*GithubClient) GetHeadCommit

func (t *GithubClient) GetHeadCommit(branch string) (string, error)

type Launcher

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

func NewLauncher

func NewLauncher() *Launcher

func (*Launcher) Run

func (t *Launcher) Run(name string, args ...string) error

func (*Launcher) Start

func (t *Launcher) Start() error

type WorkflowRun

type WorkflowRun struct {
	Id         uint   `json:"id"`
	CreatedAt  string `json:"created_at"`
	HeadBranch string `json:"head_branch"`
	HeadSha    string `json:"head_sha"`
}

type WorkflowRunList

type WorkflowRunList struct {
	TotalCount   uint          `json:"total_count"`
	WorkflowRuns []WorkflowRun `json:"workflow_runs"`
}

Jump to

Keyboard shortcuts

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