From 508fb749dbf671ec3671c2c1e77915677a18e596 Mon Sep 17 00:00:00 2001 From: Enzo Venturi Date: Thu, 23 May 2024 09:02:25 +0000 Subject: [PATCH] docs/builder.md: remove BuilderByTarget references The 'Target name' subsection is old. BuilderByTarget isn't used anymore; it's now 'byTarget' in target.go. Add a hyperlink for clarity and accessibility. Signed-off-by: Enzo Venturi --- docs/builder.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/builder.md b/docs/builder.md index dc68e0ed..a8a0f2c9 100644 --- a/docs/builder.md +++ b/docs/builder.md @@ -37,7 +37,7 @@ Your builder will need a constant for the target it implements. Usually that con can just be the ID of the distribution you are implementing, as taken reading `/etc/os-release` file. A builder can implement more than one target at time. For example, the minikube builder is just a vanilla one. -Once you have the constant, you will need to add it to the `BuilderByTarget` map. +Once you have the constant, you will need to add it to the [byTarget](https://github.com/falcosecurity/driverkit/blob/master/pkg/driverbuilder/builder/target.go) map. Open your file and you will need to add something like this: ```go @@ -48,7 +48,7 @@ type archLinux struct { } func init() { - BuilderByTarget[TargetTypeArchLinux] = &archLinux{} + byTarget[TargetTypeArchLinux] = &archLinux{} } ``` @@ -145,4 +145,4 @@ can also support collecting the new builders kernel versions and header package for the new builder are automatically built by [test-infra](https://github.com/falcosecurity/test-infra). If required, add a feature request for support for the new builder on the kernel-crawler repository. -> **NOTE**: be sure that the crawler you are going to add is interesting for the community as a whole. \ No newline at end of file +> **NOTE**: be sure that the crawler you are going to add is interesting for the community as a whole.