func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
CatalogIterator manages a stream of *biglakepb.Catalog.
type CatalogIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*biglakepb.Catalog, nextPageToken string, err error) // contains filtered or unexported fields }
func (it *CatalogIterator) Next() (*biglakepb.Catalog, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (it *CatalogIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
DatabaseIterator manages a stream of *biglakepb.Database.
type DatabaseIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*biglakepb.Database, nextPageToken string, err error) // contains filtered or unexported fields }
func (it *DatabaseIterator) Next() (*biglakepb.Database, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (it *DatabaseIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
MetastoreCallOptions contains the retry settings for each method of MetastoreClient.
type MetastoreCallOptions struct { CreateCatalog []gax.CallOption DeleteCatalog []gax.CallOption GetCatalog []gax.CallOption ListCatalogs []gax.CallOption CreateDatabase []gax.CallOption DeleteDatabase []gax.CallOption UpdateDatabase []gax.CallOption GetDatabase []gax.CallOption ListDatabases []gax.CallOption CreateTable []gax.CallOption DeleteTable []gax.CallOption UpdateTable []gax.CallOption RenameTable []gax.CallOption GetTable []gax.CallOption ListTables []gax.CallOption }
MetastoreClient is a client for interacting with BigLake API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
BigLake Metastore is a serverless, highly available, multi-tenant runtime metastore for Google Cloud Data Analytics products.
The BigLake Metastore API defines the following resource model:
A collection of Google Cloud projects: /projects/* Each project has a collection of available locations: /locations/* Each location has a collection of catalogs: /catalogs/* Each catalog has a collection of databases: /databases/* Each database has a collection of tables: /tables/*
type MetastoreClient struct { // The call options for this service. CallOptions *MetastoreCallOptions // contains filtered or unexported fields }
func NewMetastoreClient(ctx context.Context, opts ...option.ClientOption) (*MetastoreClient, error)
NewMetastoreClient creates a new metastore service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
BigLake Metastore is a serverless, highly available, multi-tenant runtime metastore for Google Cloud Data Analytics products.
The BigLake Metastore API defines the following resource model:
A collection of Google Cloud projects: /projects/* Each project has a collection of available locations: /locations/* Each location has a collection of catalogs: /catalogs/* Each catalog has a collection of databases: /databases/* Each database has a collection of tables: /tables/*
▹ Example
func NewMetastoreRESTClient(ctx context.Context, opts ...option.ClientOption) (*MetastoreClient, error)
NewMetastoreRESTClient creates a new metastore service rest client.
BigLake Metastore is a serverless, highly available, multi-tenant runtime metastore for Google Cloud Data Analytics products.
The BigLake Metastore API defines the following resource model:
A collection of Google Cloud projects: /projects/* Each project has a collection of available locations: /locations/* Each location has a collection of catalogs: /catalogs/* Each catalog has a collection of databases: /databases/* Each database has a collection of tables: /tables/*
▹ Example
func (c *MetastoreClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (c *MetastoreClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (c *MetastoreClient) CreateCatalog(ctx context.Context, req *biglakepb.CreateCatalogRequest, opts ...gax.CallOption) (*biglakepb.Catalog, error)
CreateCatalog creates a new catalog.
▹ Example
func (c *MetastoreClient) CreateDatabase(ctx context.Context, req *biglakepb.CreateDatabaseRequest, opts ...gax.CallOption) (*biglakepb.Database, error)
CreateDatabase creates a new database.
▹ Example
func (c *MetastoreClient) CreateTable(ctx context.Context, req *biglakepb.CreateTableRequest, opts ...gax.CallOption) (*biglakepb.Table, error)
CreateTable creates a new table.
▹ Example
func (c *MetastoreClient) DeleteCatalog(ctx context.Context, req *biglakepb.DeleteCatalogRequest, opts ...gax.CallOption) (*biglakepb.Catalog, error)
DeleteCatalog deletes an existing catalog specified by the catalog ID.
▹ Example
func (c *MetastoreClient) DeleteDatabase(ctx context.Context, req *biglakepb.DeleteDatabaseRequest, opts ...gax.CallOption) (*biglakepb.Database, error)
DeleteDatabase deletes an existing database specified by the database ID.
▹ Example
func (c *MetastoreClient) DeleteTable(ctx context.Context, req *biglakepb.DeleteTableRequest, opts ...gax.CallOption) (*biglakepb.Table, error)
DeleteTable deletes an existing table specified by the table ID.
▹ Example
func (c *MetastoreClient) GetCatalog(ctx context.Context, req *biglakepb.GetCatalogRequest, opts ...gax.CallOption) (*biglakepb.Catalog, error)
GetCatalog gets the catalog specified by the resource name.
▹ Example
func (c *MetastoreClient) GetDatabase(ctx context.Context, req *biglakepb.GetDatabaseRequest, opts ...gax.CallOption) (*biglakepb.Database, error)
GetDatabase gets the database specified by the resource name.
▹ Example
func (c *MetastoreClient) GetTable(ctx context.Context, req *biglakepb.GetTableRequest, opts ...gax.CallOption) (*biglakepb.Table, error)
GetTable gets the table specified by the resource name.
▹ Example
func (c *MetastoreClient) ListCatalogs(ctx context.Context, req *biglakepb.ListCatalogsRequest, opts ...gax.CallOption) *CatalogIterator
ListCatalogs list all catalogs in a specified project.
▹ Example
func (c *MetastoreClient) ListDatabases(ctx context.Context, req *biglakepb.ListDatabasesRequest, opts ...gax.CallOption) *DatabaseIterator
ListDatabases list all databases in a specified catalog.
▹ Example
func (c *MetastoreClient) ListTables(ctx context.Context, req *biglakepb.ListTablesRequest, opts ...gax.CallOption) *TableIterator
ListTables list all tables in a specified database.
▹ Example
func (c *MetastoreClient) RenameTable(ctx context.Context, req *biglakepb.RenameTableRequest, opts ...gax.CallOption) (*biglakepb.Table, error)
RenameTable renames an existing table specified by the table ID.
▹ Example
func (c *MetastoreClient) UpdateDatabase(ctx context.Context, req *biglakepb.UpdateDatabaseRequest, opts ...gax.CallOption) (*biglakepb.Database, error)
UpdateDatabase updates an existing database specified by the database ID.
▹ Example
func (c *MetastoreClient) UpdateTable(ctx context.Context, req *biglakepb.UpdateTableRequest, opts ...gax.CallOption) (*biglakepb.Table, error)
UpdateTable updates an existing table specified by the table ID.
▹ Example
TableIterator manages a stream of *biglakepb.Table.
type TableIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*biglakepb.Table, nextPageToken string, err error) // contains filtered or unexported fields }
func (it *TableIterator) Next() (*biglakepb.Table, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (it *TableIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.