packagefirewall

package
v3.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProxyURL

func ProxyURL(base string, eco Ecosystem) string

func ProxyURLWithSlash

func ProxyURLWithSlash(base string, eco Ecosystem) string

func RequireWriter

func RequireWriter(eco Ecosystem) error

Types

type ConfigFile

type ConfigFile struct {
	Path       string
	Content    string
	Structured bool
}

func ConfigFiles

func ConfigFiles(eco Ecosystem, opts ConfigOptions) ([]ConfigFile, error)

type ConfigOptions

type ConfigOptions struct {
	HomeDir  string
	ProxyURL string
	OrgID    string
	APIKey   string
}

type Ecosystem

type Ecosystem struct {
	ID          string
	Command     string
	DisplayName string
	Prefix      string
	Tier        Tier
	LiveWriter  bool
}

func All

func All() []Ecosystem

func ByCommand

func ByCommand(command string) (Ecosystem, bool)

type Tier

type Tier string
const (
	TierCommunity  Tier = "community"
	TierPro        Tier = "pro"
	TierEnterprise Tier = "enterprise"
)

Jump to

Keyboard shortcuts

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