Documentation
¶
Index ¶
- Constants
- func ContainerRuntimeAvailable() bool
- func DownloadAsset(asset *ReleaseAsset, dstDir string) (string, error)
- func GetAccessToken() string
- func PlatformDescription() string
- func RemoveContainersByPrefix(prefix string) *exec.Cmd
- type ProjectTest
- func (e *ProjectTest) BuildIfMissing(path string, name string) *ProjectTest
- func (e *ProjectTest) CopyDir(relPath string) *ProjectTest
- func (e *ProjectTest) CopyDirToAppStateDir(srcRelPath string) *ProjectTest
- func (e *ProjectTest) DownloadSupportedASReleases() *ProjectTest
- func (e *ProjectTest) ImportEnvVars(envKeys []string) *ProjectTest
- func (e *ProjectTest) MakeDir(relPath string) *ProjectTest
- func (e *ProjectTest) RunScript(scriptFile string)
- func (e *ProjectTest) SetEnvVar(key, value string) *ProjectTest
- func (e *ProjectTest) SetXdgStateHomeDir(path string) *ProjectTest
- type Release
- type ReleaseAsset
- type ReleaseInfo
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
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 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
Click to show internal directories.
Click to hide internal directories.