Go
An overview of the Go Promise-writing SDK.
Features
- Resource Management: Read and write Kratix resources and promises
- Status Handling: Update resource status and write status files
- Output Generation: Write workflow outputs to files
- Destination Selectors: Configure where resources should be deployed
- Environment Variables: Access workflow context (action, type, promise name, pipeline name)
- Testing Support: Built-in testing utilities and mocks
Installation
go get github.com/syntasso/kratix-go
Usage
package main
import (
kratix "github.com/syntasso/kratix-go"
)
func main() {
sdk := kratix.New()
resource, _ := sdk.ReadResourceInput()
log.Printf("Name:" + resource.GetName())
}
info
You can find more usage examples in the Repository github.com/syntasso/kratix-go
Resources
License
kratix-go is licensed under the Apache License 2.0. See the full License for details.