plugin_writer

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

func New

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

func (*Writer) Add

func (*Writer) AddExternal

func (w *Writer) AddExternal(
	ctx context.Context,
	acc account.AccountID,
	manifest rpc.Manifest,
) (*plugin.Record, string, error)

func (*Writer) CycleAuthSecret

func (w *Writer) CycleAuthSecret(ctx context.Context, plid plugin.InstallationID) (string, error)

func (*Writer) CycleExternalToken

func (w *Writer) CycleExternalToken(ctx context.Context, plid plugin.InstallationID) (string, error)

func (*Writer) FilePath

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

func (*Writer) Remove

func (w *Writer) Remove(ctx context.Context, plid plugin.InstallationID) error

func (*Writer) SetActiveState

func (w *Writer) SetActiveState(ctx context.Context, plid plugin.InstallationID, state plugin.ActiveState) error

func (*Writer) UpdateConfig

func (w *Writer) UpdateConfig(
	ctx context.Context,
	plid plugin.InstallationID,
	config map[string]any,
) (*plugin.Record, error)

func (*Writer) UpdateManifest

func (w *Writer) UpdateManifest(
	ctx context.Context,
	plid plugin.InstallationID,
	manifest rpc.Manifest,
) (*plugin.Record, error)

func (*Writer) UpdatePackage

func (w *Writer) UpdatePackage(
	ctx context.Context,
	plid plugin.InstallationID,
	pl *plugin.Validated,
) (*plugin.Record, error)

Jump to

Keyboard shortcuts

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