core

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const PrivateModeEnv = "PICEUS_PRIVATE_MODE"

PrivateModeEnv "private" behavior (uses GitHub instead of GoProxy).

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	DisplayName   string                 `json:"displayName,omitempty" toml:"displayName,omitempty" yaml:"displayName,omitempty"`
	Runtime       string                 `json:"runtime,omitempty" toml:"runtime,omitempty" yaml:"runtime,omitempty"`
	WasmPath      string                 `json:"wasmPath,omitempty" toml:"wasmPath,omitempty" yaml:"wasmPath,omitempty"`
	Type          string                 `json:"type,omitempty" toml:"type,omitempty" yaml:"type,omitempty"`
	Import        string                 `json:"import,omitempty" toml:"import,omitempty" yaml:"import,omitempty"`
	BasePkg       string                 `json:"basePkg,omitempty" toml:"basePkg,omitempty" yaml:"basePkg,omitempty"`
	Compatibility string                 `json:"compatibility,omitempty" toml:"compatibility,omitempty" yaml:"compatibility,omitempty"`
	Summary       string                 `json:"summary,omitempty" toml:"summary,omitempty" yaml:"summary,omitempty"`
	IconPath      string                 `json:"iconPath,omitempty" toml:"iconPath,omitempty" yaml:"iconPath,omitempty"`
	BannerPath    string                 `json:"bannerPath,omitempty" toml:"bannerPath,omitempty" yaml:"bannerPath,omitempty"`
	TestData      map[string]interface{} `json:"testData,omitempty" toml:"testData,omitempty" yaml:"testData,omitempty"`
}

Manifest The plugin manifest.

type Scrapper

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

Scrapper the plugins scrapper.

func NewScrapper

func NewScrapper(gh *github.Client, gp *goproxy.Client, pgClient pluginClient, sources Sources, tracer trace.Tracer) *Scrapper

NewScrapper creates a new Scrapper instance.

func (*Scrapper) Run

func (s *Scrapper) Run(ctx context.Context) error

Run runs the scrapper.

type Sources

type Sources interface {
	Get(ctx context.Context, repository *github.Repository, gop string, mod module.Version) error
}

Sources gets code sources.

Jump to

Keyboard shortcuts

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