fixtures

package
v0.0.0-...-3d1052a Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FiotoolsCommitHash = "67858916658de6bfc3283ba550554bc7ef87d623"
)
View Source
const (
	FiotoolsRepo = "https://github.com/foundriesio/ostreeuploader.git"
)

Variables

This section is empty.

Functions

func RunE2ETest

func RunE2ETest(t *testing.T, test Test)

Types

type E2ETestCtx

type E2ETestCtx struct {
	Rootfs   Rootfs
	Repo     Repo
	Storage  Storage
	Hub      OSTreeHub
	Uploader OSTreeUploader
	Commit   string
}

type OSTreeHub

type OSTreeHub interface {
	Server
}

func NewOSTreeHub

func NewOSTreeHub(repoDir string, gcsEndpointURL string) (OSTreeHub, error)

type OSTreeUploader

type OSTreeUploader interface {
	Push(repo string, factory string, server string, summary bool) error
	Check(repo string, factory string, server string) error
}

func NewOSTreeUploader

func NewOSTreeUploader(dir string, commitHash string) (OSTreeUploader, error)

type ObjectMeta

type ObjectMeta struct {
	Name string `json:"name"`
	CRC  string `json:"crc32c"`
}

type Repo

type Repo interface {
	Dir() string
	Commit(folder string) (string, error)
	GenDelta(from string, to string) error
}

func NewRepo

func NewRepo(dir string, mode string) (Repo, error)

type RepoCtx

type RepoCtx struct {
	Root string
}

func (*RepoCtx) Commit

func (r *RepoCtx) Commit(folder string) (string, error)

func (*RepoCtx) Dir

func (r *RepoCtx) Dir() string

func (*RepoCtx) GenDelta

func (r *RepoCtx) GenDelta(from string, to string) error

type Rootfs

type Rootfs interface {
	Dir() string
	AddFile(path string, content string) error
}

func NewRootfs

func NewRootfs(dir string) (Rootfs, error)

type Server

type Server interface {
	URL() string
	Run()
	Stop()
}

type Storage

type Storage interface {
	Server
	Dir() string
}

func NewStorage

func NewStorage(rootDir string) (Storage, error)

type Test

type Test func(t *testing.T, ctx *E2ETestCtx)

Jump to

Keyboard shortcuts

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