platforms

package
v2.0.0-...-962d062 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Username  string
	Email     string
	Password  string
	Token     string
	OtpSecret string
	Proxy     string
}

AuthConfig carries optional authentication inputs.

type PlatformPoller

type PlatformPoller interface {
	Name() string
	// Authenticate configures the poller with credentials, if needed.
	// Implementations that don't require auth should return nil.
	Authenticate(ctx context.Context, cfg AuthConfig) error
	ListProgramHandles(ctx context.Context, opts PollOptions) ([]string, error)
	FetchProgramScope(ctx context.Context, handle string, opts PollOptions) (scope.ProgramData, error)
}

PlatformPoller defines a common interface for platform-specific polling operations, abstracting away the details of authentication, program discovery, and scope fetching.

type PollOptions

type PollOptions struct {
	BountyOnly  bool
	PrivateOnly bool
	Categories  string
}

PollOptions carries optional controls/filters used by pollers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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