fixtures

package
v0.0.0-...-7c6e808 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppStoreRoot       = "/var/sota/reset-apps"
	AppComposeRootRoot = "/var/sota/compose-apps"
)

Variables

This section is empty.

Functions

func Check

func Check(t *testing.T, err error)

func Checkf

func Checkf(t *testing.T, err error, format string, args ...any)

func GenerateLayersMetaFile

func GenerateLayersMetaFile(t *testing.T, appsRootDir string) string

func NewTestConfig

func NewTestConfig(t *testing.T) *compose.Config

func WithAppBundleIndexes

func WithAppBundleIndexes(enableAppBundleIndexes bool) func(opts *PublishOpts)

func WithLayersManifest

func WithLayersManifest(addLayerManifest bool) func(opts *PublishOpts)

func WithRegistry

func WithRegistry(registry string) func(opts *PublishOpts)

Types

type App

type App struct {
	Name         string
	PublishedUri string
	Dir          string
}

func NewApp

func NewApp(t *testing.T, composeDef string, name ...string) *App

func (*App) CheckFetched

func (a *App) CheckFetched(t *testing.T)

func (*App) CheckInstalled

func (a *App) CheckInstalled(t *testing.T)

func (*App) CheckRunning

func (a *App) CheckRunning(t *testing.T)

func (*App) GetAppImageManifest

func (a *App) GetAppImageManifest(t *testing.T, image string) (imageManifest ocischema.Manifest)

func (*App) GetAppImages

func (a *App) GetAppImages(t *testing.T) []string

func (*App) GetAppImagesFromAppStore

func (a *App) GetAppImagesFromAppStore(t *testing.T) []string

func (*App) GetInstallCheckRes

func (a *App) GetInstallCheckRes(t *testing.T) (checkRes *composectl.AppInstallCheckResult)

func (*App) GetRunningStatus

func (a *App) GetRunningStatus(t *testing.T) (appStatus *composectl.App)

func (*App) Install

func (a *App) Install(t *testing.T)

func (*App) Publish

func (a *App) Publish(t *testing.T, publishOpts ...func(*PublishOpts))

func (*App) Pull

func (a *App) Pull(t *testing.T)

func (*App) PullAppImagesWithSkopeo

func (a *App) PullAppImagesWithSkopeo(t *testing.T)

func (*App) Remove

func (a *App) Remove(t *testing.T)

func (*App) Run

func (a *App) Run(t *testing.T)

func (*App) Stop

func (a *App) Stop(t *testing.T)

func (*App) Uninstall

func (a *App) Uninstall(t *testing.T)

func (*App) Up

func (a *App) Up(t *testing.T)

type PublishOpts

type PublishOpts struct {
	PublishLayersManifest   bool
	PublishLayersMetaFile   bool
	Registry                string
	PublishAppBundleIndexes bool
}

Jump to

Keyboard shortcuts

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