Discover Packages
github.com/Piotr1215/function-simple-label
command
module
Version:
v0.0.0-...-6c855a4
Opens a new window with list of versions in this module.
Published: Feb 25, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
function-template-go
A template for writing a composition function in Go .
To learn how to use this template:
If you just want to jump in and get started:
Replace function-template-go
with your function's name in go.mod
,
package/crossplane.yaml
, and any Go imports
Update input/v1beta1/
to reflect your desired input (and run go generate
)
Add your logic to RunFunction
in fn.go
Add tests for your logic in fn_test.go
Update this file, README.md
, to be about your function!
This template uses Go , Docker , and the Crossplane CLI to
build functions.
# Run code generation - see input/generate.go
$ go generate ./...
# Run tests - see fn_test.go
$ go test ./...
# Build the function's runtime image - see Dockerfile
$ docker build . --tag=runtime
# Build a function package - see package/crossplane.yaml
$ crossplane xpkg build -f package --embed-runtime-image=runtime
Expand ▾
Collapse ▴
Documentation
¶
Package main implements a Composition Function.
Source Files
¶
Directories
¶
label
v1beta1
Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=template.fn.crossplane.io +versionName=v1beta1
Package v1beta1 contains the input type for this Function +kubebuilder:object:generate=true +groupName=template.fn.crossplane.io +versionName=v1beta1
Click to show internal directories.
Click to hide internal directories.