Documentation ¶
Index ¶
- func ApplyServerIntegration(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, ...) error
- func ApplyTestIntegration(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, ...) error
- func GenerateBinary(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, ...) (*schema.Binary, error)
- func GenerateBinaryAndAddToPackage(ctx context.Context, env *schema.Environment, pl pkggraph.PackageLoader, ...) (*schema.PackageRef, error)
- func RegisterIntegration[ServerData proto.Message, BuildData proto.Message](impl Integration[ServerData, BuildData])
- func SetServerBinary(pkg *pkggraph.Package, buildPlan *schema.LayeredImageBuildPlan, ...) error
- func SetServerBinaryRef(pkg *pkggraph.Package, binaryRef *schema.PackageRef) error
- func SetTestDriver(loc pkggraph.Location, test *schema.Test, driver *schema.Binary) error
- type DefaultBinaryTestIntegration
- type Integration
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 GenerateBinary ¶
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 SetServerBinary ¶
func SetServerBinaryRef ¶
func SetServerBinaryRef(pkg *pkggraph.Package, binaryRef *schema.PackageRef) error
Types ¶
type DefaultBinaryTestIntegration ¶ added in v0.0.73
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) }
Click to show internal directories.
Click to hide internal directories.