test_distro

package
v0.3.0-r9.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TestDistroName              = "test-distro"
	TestDistro2Name             = "test-distro-2"
	TestDistroReleasever        = "1"
	TestDistro2Releasever       = "2"
	TestDistroModulePlatformID  = "platform:test"
	TestDistro2ModulePlatformID = "platform:test-2"

	TestArchName  = "test_arch"
	TestArch2Name = "test_arch2"
	TestArch3Name = "test_arch3"

	TestImageTypeName   = "test_type"
	TestImageType2Name  = "test_type2"
	TestImageTypeOSTree = "test_ostree_type"

	// added for cloudapi tests
	TestImageTypeAmi            = "ami"
	TestImageTypeGce            = "gce"
	TestImageTypeVhd            = "vhd"
	TestImageTypeEdgeCommit     = "rhel-edge-commit"
	TestImageTypeEdgeInstaller  = "rhel-edge-installer"
	TestImageTypeImageInstaller = "image-installer"
	TestImageTypeQcow2          = "qcow2"
	TestImageTypeVmdk           = "vmdk"
)

Variables

This section is empty.

Functions

func NewRegistry

func NewRegistry() *distroregistry.Registry

func ResolveContent

func ResolveContent(pkgs map[string][]rpmmd.PackageSet, containers map[string][]container.SourceSpec, commits map[string][]ostree.SourceSpec) (map[string][]rpmmd.PackageSpec, map[string][]container.Spec, map[string][]ostree.CommitSpec)

ResolveContent transforms content source specs into resolved specs for serialization. For packages, it uses the dnfjson_mock.BaseDeps() every time, but retains the map keys from the input. For ostree commits it hashes the URL+Ref to create a checksum.

Types

type TestArch

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

func (*TestArch) Distro

func (a *TestArch) Distro() distro.Distro

func (*TestArch) GetImageType

func (a *TestArch) GetImageType(imageType string) (distro.ImageType, error)

func (*TestArch) ListImageTypes

func (a *TestArch) ListImageTypes() []string

func (*TestArch) Name

func (a *TestArch) Name() string

type TestDistro

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

func New

func New() *TestDistro

New returns new instance of TestDistro named "test-distro".

func New2

func New2() *TestDistro

New2 returns new instance of TestDistro named "test-distro-2".

func (*TestDistro) GetArch

func (d *TestDistro) GetArch(arch string) (distro.Arch, error)

func (*TestDistro) ListArches

func (d *TestDistro) ListArches() []string

func (*TestDistro) ModulePlatformID

func (d *TestDistro) ModulePlatformID() string

func (*TestDistro) Name

func (d *TestDistro) Name() string

func (*TestDistro) OSTreeRef

func (d *TestDistro) OSTreeRef() string

func (*TestDistro) Releasever

func (d *TestDistro) Releasever() string

type TestImageType

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

func (*TestImageType) Arch

func (t *TestImageType) Arch() distro.Arch

func (*TestImageType) BootMode

func (t *TestImageType) BootMode() distro.BootMode

func (*TestImageType) BuildPipelines

func (t *TestImageType) BuildPipelines() []string

func (*TestImageType) Exports

func (t *TestImageType) Exports() []string

func (*TestImageType) Filename

func (t *TestImageType) Filename() string

func (*TestImageType) MIMEType

func (t *TestImageType) MIMEType() string

func (*TestImageType) Manifest

func (t *TestImageType) Manifest(b *blueprint.Blueprint, options distro.ImageOptions, repos []rpmmd.RepoConfig, seed int64) (*manifest.Manifest, []string, error)

func (*TestImageType) Name

func (t *TestImageType) Name() string

func (*TestImageType) OSTreeRef

func (t *TestImageType) OSTreeRef() string

func (*TestImageType) PackageSetsChains

func (t *TestImageType) PackageSetsChains() map[string][]string

func (*TestImageType) PartitionType

func (t *TestImageType) PartitionType() string

func (*TestImageType) PayloadPackageSets

func (t *TestImageType) PayloadPackageSets() []string

func (*TestImageType) PayloadPipelines

func (t *TestImageType) PayloadPipelines() []string

func (*TestImageType) Size

func (t *TestImageType) Size(size uint64) uint64

Jump to

Keyboard shortcuts

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