build

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NameSpace                   = "ghcr.io/chainreactors"
	Tag                         = "nightly-2023-09-18-latest"
	ContainerSourceCodePath     = "/root/src"
	ContainerCargoRegistryCache = "/root/cargo/registry"
	ContainerCargoGitCache      = "/root/cargo/git"
	ContainerBinPath            = "/root/bin"
	LocalMutantPath             = filepath.Join(configs.BinPath, "malefic-mutant")

	SourceCodeVolume         = fmt.Sprintf("%s:%s", filepath.ToSlash(sourcePath), ContainerSourceCodePath)
	CargoRegistryCacheVolume = fmt.Sprintf("%s:%s", filepath.ToSlash(registryPath), ContainerCargoRegistryCache)
	CargoGitCacheVolume      = fmt.Sprintf("%s:%s", filepath.ToSlash(gitPath), ContainerCargoGitCache)
	BinPathVolume            = fmt.Sprintf("%s:%s", filepath.ToSlash(binPath), ContainerBinPath)
	Volumes                  = []string{SourceCodeVolume, CargoRegistryCacheVolume, CargoGitCacheVolume, BinPathVolume}
)

Functions

func BuildBeacon

func BuildBeacon(cli *client.Client, req *clientpb.Generate) error

func BuildBind

func BuildBind(cli *client.Client, req *clientpb.Generate) error

func BuildModules

func BuildModules(cli *client.Client, req *clientpb.Generate) error

func BuildPrelude

func BuildPrelude(cli *client.Client, req *clientpb.Generate) error

func BuildPulse

func BuildPulse(cli *client.Client, req *clientpb.Generate) error

func GenerateProfile

func GenerateProfile(req *clientpb.Generate) error

func GetDockerClient

func GetDockerClient() (*client.Client, error)

func MaleficSRDI

func MaleficSRDI(src, dst, platform, arch, funcName, dataPath string) ([]byte, error)

func MoveBuildOutput

func MoveBuildOutput(target, buildType string) (string, string, error)

func NewMaleficSRDIArtifact

func NewMaleficSRDIArtifact(name, src, platform, arch, stage, funcName, dataPath string) (*models.Builder, []byte, error)

func SaveArtifact

func SaveArtifact(dst string, bin []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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