mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-16 16:00:11 -05:00
20 lines
461 B
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)
|
|
}
|