// Code generated by sdkgen. DO NOT EDIT.

package metastore

import (
	"context"

	"google.golang.org/grpc"
)

// Metastore provides access to "metastore" component of Yandex.Cloud
type Metastore struct {
	getConn func(ctx context.Context) (*grpc.ClientConn, error)
}

// NewMetastore creates instance of Metastore
func NewMetastore(g func(ctx context.Context) (*grpc.ClientConn, error)) *Metastore {
	return &Metastore{g}
}

// Cluster gets ClusterService client
func (m *Metastore) Cluster() *ClusterServiceClient {
	return &ClusterServiceClient{getConn: m.getConn}
}
