module

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RelativeDir = filepath.Join(".tunnel", "modules")

	DefaultDir = dir()
)

Functions

func Install

func Install(ctx context.Context, dir, repo string, quiet bool, opt types.RegistryOptions) error

Install installs a module

func Uninstall

func Uninstall(_ context.Context, dir, repo string) error

Uninstall uninstalls a module

Types

type Manager

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

func NewManager

func NewManager(ctx context.Context, opts Options) (*Manager, error)

func (*Manager) Close

func (m *Manager) Close(ctx context.Context) error

func (*Manager) Deregister

func (m *Manager) Deregister()

func (*Manager) Register

func (m *Manager) Register()

type Options

type Options struct {
	Dir            string
	EnabledModules []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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