kubewarden / policy-sdk-go

Kubewarden Policy SDK for the Go programming language
https://kubewarden.io
Apache License 2.0
8 stars 7 forks source link

feat: Add host_capabilities package #23

Closed viccuad closed 2 years ago

viccuad commented 2 years ago

This package specifies the HostCaller interface, and provides a native and a wasm hostcaller that implement them.

Description

Fix https://github.com/kubewarden/policy-sdk-go/issues/22

Test

Did minimum tests by importing the new package and calling it from a go policy. (used export GOFLAGS="-mod=mod", and a replace github.com/kubewarden/policy-sdk-go v0.1.2 => ../policy-sdk-go).

Additional Information

Tradeoff

Potential improvement

flavio commented 2 years ago

I created https://github.com/kubewarden/policy-sdk-go/pull/25 that supersedes this PR. I retained @viccuad history inside of the new PR