1 package common 2 3 import ( 4 "context" 5 6 "edge-infra.dev/pkg/edge/api/graph/model" 7 ) 8 9 type Status interface { 10 // GetStatuses returns a slice of recorded kinform VirtualMachineStatuses 11 // Optional VM name, namespace and clusterEdgeID fields can be provided for filtering 12 GetStatuses(ctx context.Context, clusterEdgeID *string, name *string, namespace *string) ([]*model.VirtualMachineStatus, error) 13 GetVMIFieldValue(ctx context.Context, clusterEdgeID *string, name *string, namespace *string, jsonPath string) (*string, error) 14 } 15