plugin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name    = "github"
	Kind    = "source"
	Team    = "slashben"
	Version = "development" // overridden at build time with -ldflags -X
)

Functions

func Configure

func Configure(_ context.Context, logger zerolog.Logger, specBytes []byte, opts sdkplugin.NewClientOptions) (sdkplugin.Client, error)

Configure implements sdkplugin.NewClientFunc.

func GenerateTableDocs

func GenerateTableDocs(dir string) error

GenerateTableDocs writes the Markdown table reference (one file per table and an index, README.md) into dir. It is the code path behind `make gen-docs` and the test that keeps docs/tables current.

The SDK's own `doc` command only writes JSON, so the Markdown generator is called directly; it needs the tables but no configured client.

func Plugin

func Plugin() *sdkplugin.Plugin

Plugin returns the GitHub source plugin definition.

func Tables

func Tables() schema.Tables

Tables returns the plugin's top-level tables, fully transformed. It panics if a table definition is invalid, since that is a programming error.

Types

type Client

type Client struct {
	sdkplugin.UnimplementedDestination
	// contains filtered or unexported fields
}

func (*Client) Close

func (*Client) Close(_ context.Context) error

func (*Client) Logger

func (c *Client) Logger() *zerolog.Logger

func (*Client) Sync

func (c *Client) Sync(ctx context.Context, options sdkplugin.SyncOptions, res chan<- message.SyncMessage) error

func (*Client) Tables

func (c *Client) Tables(_ context.Context, options sdkplugin.TableOptions) (schema.Tables, error)

Jump to

Keyboard shortcuts

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