test

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AsSupportedReleases = 3
	AsRepo              = "blocky/attestation-service-cli"
	APIPageSize         = 50
)

Variables

This section is empty.

Functions

func ContainerRuntimeAvailable

func ContainerRuntimeAvailable() bool

func DownloadAsset

func DownloadAsset(asset *ReleaseAsset, dstDir string) (string, error)

func GetAccessToken

func GetAccessToken() string

func PlatformDescription

func PlatformDescription() string

func RemoveContainersByPrefix

func RemoveContainersByPrefix(prefix string) *exec.Cmd

Types

type ProjectTest

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

func NewProjectTest

func NewProjectTest(t *testing.T, projectDir string) *ProjectTest

func (*ProjectTest) BuildIfMissing

func (e *ProjectTest) BuildIfMissing(path string, name string) *ProjectTest

func (*ProjectTest) CopyDir

func (e *ProjectTest) CopyDir(relPath string) *ProjectTest

func (*ProjectTest) CopyDirToAppStateDir

func (e *ProjectTest) CopyDirToAppStateDir(srcRelPath string) *ProjectTest

func (*ProjectTest) DownloadSupportedASReleases

func (e *ProjectTest) DownloadSupportedASReleases() *ProjectTest

func (*ProjectTest) ImportEnvVars

func (e *ProjectTest) ImportEnvVars(envKeys []string) *ProjectTest

func (*ProjectTest) MakeDir

func (e *ProjectTest) MakeDir(relPath string) *ProjectTest

func (*ProjectTest) RunScript

func (e *ProjectTest) RunScript(scriptFile string)

func (*ProjectTest) SetEnvVar

func (e *ProjectTest) SetEnvVar(key, value string) *ProjectTest

func (*ProjectTest) SetXdgStateHomeDir

func (e *ProjectTest) SetXdgStateHomeDir(path string) *ProjectTest

type Release

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

func DownloadReleases

func DownloadReleases(infos []ReleaseInfo, dstPath string) ([]Release, error)

type ReleaseAsset

type ReleaseAsset struct {
	Name string `json:"name"`
	URL  string `json:"browser_download_url"`
}

type ReleaseInfo

type ReleaseInfo struct {
	Tag         string         `json:"tag_name"`
	Assets      []ReleaseAsset `json:"assets"`
	PublishedAt time.Time      `json:"published_at"`
}

func GetReleaseInfo

func GetReleaseInfo(repo string, count int) ([]ReleaseInfo, error)

func (*ReleaseInfo) Binary

func (r *ReleaseInfo) Binary() *ReleaseAsset

func (*ReleaseInfo) Config

func (r *ReleaseInfo) Config() *ReleaseAsset

Jump to

Keyboard shortcuts

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