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

25 lines
536 B
Go

// Code generated by sdkgen. DO NOT EDIT.
package kms
import (
"context"
"google.golang.org/grpc"
)
// KMS provides access to "kms" component of Yandex.Cloud
type KMS struct {
getConn func(ctx context.Context) (*grpc.ClientConn, error)
}
// NewKMS creates instance of KMS
func NewKMS(g func(ctx context.Context) (*grpc.ClientConn, error)) *KMS {
return &KMS{g}
}
// SymmetricKey gets SymmetricKeyService client
func (k *KMS) SymmetricKey() *SymmetricKeyServiceClient {
return &SymmetricKeyServiceClient{getConn: k.getConn}
}