package task

import (
	"context"

	"github.com/tidbcloud/infra-provider/regional-server/api/v1alpha1"
)

type KeyVendorQueryer interface {
	GetTrustedDataplaneStatus(ctx context.Context, key *v1alpha1.Key, trustedDataplaneId string) (*KeyTrustedDataplaneStatus, error)
}

type KeyTrustedDataplaneStatus string

const (
	KeyTrustedDataplaneStatusNotExists KeyTrustedDataplaneStatus = "NotExists"
	KeyTrustedDataplaneStatusPending   KeyTrustedDataplaneStatus = "Pending"
	KeyTrustedDataplaneStatusAccepted  KeyTrustedDataplaneStatus = "Accepted"
	KeyTrustedDataplaneStatusSynced    KeyTrustedDataplaneStatus = "Synced"
)
