package infra

import (
	alicred "github.com/aliyun/credentials-go/credentials"
	"github.com/aws/aws-sdk-go-v2/aws"
	"k8s.io/client-go/rest"
)

type InfraConfig struct {
	Rest              *rest.Config
	CloudProviderType string
	KubeClusterName   string
}

type TLSConfig struct {
	CA         string
	Cert       string
	Key        string
	MinVersion string
}

type RegionalInfraConfig struct {
	InfraRedisClientTLSConfig TLSConfig
	InfraClusterTable         string
	OtsInstanceName           string
	Region                    string
	InfraRedisAddr            string
	KubeClusterName           string
	AwsCfg                    *aws.Config
	AlicloudCred              alicred.Credential

	CloudProviderType      string
	EnableInfraMysqlClient bool
	InfraRdsSecretArn      string
	CacheServerAddr        string
}
