discovery

package
v2.13.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package discovery package implements helpers for clients to discover language drivers supported by Babelfish.

Index

Constants

View Source
const (
	GithubOrg = "bblfsh"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	manifest.Manifest
	// contains filtered or unexported fields
}

Driver is an object describing language driver and it's repository-related information.

func OfficialDrivers

func OfficialDrivers(ctx context.Context, opt *Options) ([]Driver, error)

OfficialDrivers lists all available language drivers for Babelfish.

func (Driver) RepositoryURL

func (d Driver) RepositoryURL() string

RepositoryURL returns Github repository URL for browsers (not git).

type Maintainer deprecated

type Maintainer = manifest.Maintainer

Maintainer is an information about project maintainer.

Deprecated: use manifest.Maintainer

type Options

type Options struct {
	Organization  string // Github organization name
	NamesOnly     bool   // driver manifest will only have Language field populated
	NoMaintainers bool   // do not load maintainers list
	NoSDKVersion  bool   // do not check SDK version
	NoStatic      bool   // do not use a static manifest - discover drivers
}

Options controls how drivers are being discovered and what information is fetched for them.

Jump to

Keyboard shortcuts

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