packer-cn/vendor/github.com/yandex-cloud/go-sdk/kms.go

20 lines
400 B
Go

package ycsdk
import (
"github.com/yandex-cloud/go-sdk/gen/kms"
kmscrypto "github.com/yandex-cloud/go-sdk/gen/kmscrypto"
)
const (
KMSServiceID = "kms"
KMSCryptoServiceID = "kms-crypto"
)
func (sdk *SDK) KMS() *kms.KMS {
return kms.NewKMS(sdk.getConn(KMSServiceID))
}
func (sdk *SDK) KMSCrypto() *kmscrypto.KMSCrypto {
return kmscrypto.NewKMSCrypto(sdk.getConn(KMSCryptoServiceID))
}