preppers

package
v0.0.0-...-7220889 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

README

Container Prepper

Some containers need to have extra values populated into their directories. These containers should define a function within this folder with the function definition that follows:

type prepper = func(ctx context.Context, dir string) error

Documentation

Overview

Package preppers contains preppers for configured containers.

Package preppers contains preppers for configured containers.

Index

Constants

View Source
const (
	TradefedMetadataFile = "tradefed_metadata.pb"
)

Variables

This section is empty.

Functions

func AdbBase

func AdbBase(ctx context.Context, dir string) error

AdbBase implements the prepper for adb-base container.

func InternalTF

func InternalTF(ctx context.Context, dir string) error

InternalTF implements the prepper for tradefed internal container.

Types

type Module

type Module struct {
	Name          string   `json:"name"`
	Description   string   `json:"description"`
	Abis          []string `json:"abis"`
	Parameters    []string `json:"parameters"`
	BugComponents []int    `json:"bug_components"`
	Owners        []string `json:"owners"`
}

type TargetBuild

type TargetBuild struct {
	Target  string `json:"target"`
	BuildId string `json:"build_id"`
	Abi     string `json:"abi"`
}

type TradefedMetadata

type TradefedMetadata struct {
	Version      string        `json:"version"`
	Suite        string        `json:"suite"`
	Branch       string        `json:"branch"`
	BuildId      string        `json:"build_id"`
	Targets      []string      `json:"targets"`
	Modules      []Module      `json:"modules"`
	TargetBuilds []TargetBuild `json:"target_builds"`
}

Jump to

Keyboard shortcuts

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