github

package
v0.0.0-...-2e264db Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkConfig

type NetworkConfig struct {
	Name          string
	PrefixedName  string
	Repository    string
	Owner         string
	Repo          string
	Path          string
	URL           string
	Status        string
	ConfigFiles   []string
	Domain        string
	HiveURL       string
	SelfHostedDNS bool
	Images        struct {
		URL     string
		Clients []discovery.ClientImage
		Tools   []discovery.ToolImage
	}
}

NetworkConfig contains configuration for a network.

type Provider

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

Provider implements the discovery.Provider interface for GitHub.

func NewProvider

func NewProvider(log *logrus.Logger, httpClient *http.Client) (*Provider, error)

NewProvider creates a new GitHub provider.

func (*Provider) Discover

func (p *Provider) Discover(ctx context.Context, config discovery.Config) (map[string]discovery.Network, error)

Discover discovers networks using GitHub.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the name of the provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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