plugin_reader

package
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func New

func New(
	cfg config.Config,
	db *ent.Client,
	store object.Storer,
) *Reader

func (*Reader) FilePath

func (r *Reader) FilePath(id plugin.InstallationID) string

func (*Reader) Get

func (*Reader) GetAuthSecret

func (r *Reader) GetAuthSecret(ctx context.Context, id plugin.InstallationID) (string, error)

func (*Reader) GetByExternalToken

func (r *Reader) GetByExternalToken(ctx context.Context, token string) (*plugin.Record, error)

func (*Reader) GetConfig

func (r *Reader) GetConfig(ctx context.Context, id plugin.InstallationID) (map[string]any, error)

func (*Reader) List

func (r *Reader) List(ctx context.Context) ([]*plugin.Record, error)

func (*Reader) LoadBinary

func (r *Reader) LoadBinary(ctx context.Context, id plugin.InstallationID) ([]byte, error)

Jump to

Keyboard shortcuts

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