1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package computevm
import (
"github.com/johnandersen777/socialweb-computer-kcp/api/v1alpha1"
"github.com/johnandersen777/socialweb-computer-kcp/internal/guestidentity"
)
func GuestReportOf(o *v1alpha1.ComputeVM) *v1alpha1.ComputeVMGuestReport {
return guestidentity.GuestReportOf(o)
}
func PublishedOf(o *v1alpha1.ComputeVM) *v1alpha1.ComputeVMPublished {
if o == nil || o.Status.Market == nil {
return nil
}
return o.Status.Market.Published
}
func CheckHostKeys(keys []v1alpha1.ComputeVMHostKey) ([]v1alpha1.ComputeVMHostKey, error) {
return guestidentity.CheckHostKeys(keys)
}