clients

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDataCatalogGrpcRespToOpenAPIResp

func ConvertDataCatalogGrpcRespToOpenAPIResp(result *pb.CatalogDatasetInfo) (*datacatalog.GetAssetResponse, error)

func ConvertDataCatalogOpenAPIReqToGrpcReq

func ConvertDataCatalogOpenAPIReqToGrpcReq(in *datacatalog.GetAssetRequest, creds string) (*pb.CatalogDatasetRequest, error)

Types

type DataCatalog

type DataCatalog interface {
	GetAssetInfo(in *datacatalog.GetAssetRequest, creds string) (*datacatalog.GetAssetResponse, error)
	io.Closer
}

DataCatalog is an interface of a facade to a data catalog.

func NewDataCatalog

func NewDataCatalog(catalogProviderName, catalogConnectorAddress string, connectionTimeout time.Duration) (DataCatalog, error)

func NewGrpcDataCatalog

func NewGrpcDataCatalog(name string, connectionURL string, connectionTimeout time.Duration) (DataCatalog, error)

NewGrpcDataCatalog creates a DataCatalog facade that connects to a GRPC service You must call .Close() when you are done using the created instance

func NewOpenAPIDataCatalog

func NewOpenAPIDataCatalog(name string, connectionURL string, connectionTimeout time.Duration) DataCatalog

NewopenApiDataCatalog creates a DataCatalog facade that connects to a openApi service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL