api

package
v0.0.365 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyServerIntegration added in v0.0.72

func ApplyServerIntegration(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, pkg *pkggraph.Package) error

func ApplyTestIntegration added in v0.0.72

func ApplyTestIntegration(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, pkg *pkggraph.Package, test *schema.Test) error

func GenerateBinary

func GenerateBinary(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, loc pkggraph.Location, binaryName string, data proto.Message) (*schema.Binary, error)

func GenerateBinaryAndAddToPackage

func GenerateBinaryAndAddToPackage(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, pkg *pkggraph.Package, binaryName string, data proto.Message) (*schema.PackageRef, error)

func RegisterIntegration added in v0.0.72

func RegisterIntegration[ServerData proto.Message, BuildData proto.Message](impl Integration[ServerData, BuildData])

func SetServerBinaryRef

func SetServerBinaryRef(pkg *pkggraph.Package, binaryRef *schema.PackageRef) error

Types

type DefaultBinaryTestIntegration added in v0.0.73

type DefaultBinaryTestIntegration[ServerData proto.Message] struct{}

Simply creates a binary for a test

func (DefaultBinaryTestIntegration[ServerData]) ApplyToTest added in v0.0.73

func (DefaultBinaryTestIntegration[ServerData]) ApplyToTest(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, pkg *pkggraph.Package, test *schema.Test, data ServerData) error

type Integration added in v0.0.72

type Integration[ServerData any, BuildData any] interface {
	ApplyToServer(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, pkg *pkggraph.Package, data ServerData) error

	ApplyToTest(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, pkg *pkggraph.Package, test *schema.Test, data ServerData) error

	CreateBinary(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, loc pkggraph.Location, data BuildData) (*schema.Binary, error)
}

Jump to

Keyboard shortcuts

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