Files
steampipe/pkg/plugin/version_check_payload.go

20 lines
461 B
Go

package plugin
import "fmt"
type versionCheckPayload interface {
getMapKey() string
}
// the payload that travels to-and-fro between steampipe and the server
type versionCheckCorePayload struct {
Org string `json:"org"`
Name string `json:"name"`
Constraint string `json:"constraint"`
Version string `json:"version"`
}
func (v *versionCheckCorePayload) getMapKey() string {
return fmt.Sprintf("%s/%s/%s", v.Org, v.Name, v.Constraint)
}