catalog

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigSectionKey = "catalog-cache"

Variables

This section is empty.

Functions

func NewCatalogClient

func NewCatalogClient(ctx context.Context) (catalog.Client, error)

Types

type Config

type Config struct {
	Type     DiscoveryType `json:"type" pflag:"\"noop\", Catalog Implementation to use"`
	Endpoint string        `json:"endpoint" pflag:"\"\", Endpoint for catalog service"`
	Insecure bool          `json:"insecure" pflag:"false, Use insecure grpc connection"`
}

func GetConfig

func GetConfig() *Config

Gets loaded config for Discovery

func (Config) GetPFlagSet

func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet

GetPFlagSet will return strongly types pflags for all fields in Config and its nested types. The format of the flags is json-name.json-sub-name... etc.

type DiscoveryType

type DiscoveryType = string
const (
	NoOpDiscoveryType DiscoveryType = "noop"
	DataCatalogType   DiscoveryType = "datacatalog"
)

type NOOPCatalog

type NOOPCatalog struct {
}

func (NOOPCatalog) Get

func (NOOPCatalog) Put

func (n NOOPCatalog) Put(ctx context.Context, key catalog.Key, reader io.OutputReader, metadata catalog.Metadata) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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