krew

package
v1.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PlatformsKey represents the key used in the package's data field that
	// contains the supported platforms.
	PlatformsKey = "platforms"

	// RawManifestKey represents the key used in the package's data field that
	// contains the raw manifest.
	RawManifestKey = "manifestRaw"
)

Variables

This section is empty.

Functions

func GetManifest added in v1.2.0

func GetManifest(pluginManifestPath string) (*index.Plugin, []byte, error)

GetManifest reads and parses the plugin manifest.

func PreparePackage added in v1.2.0

func PreparePackage(r *hub.Repository, manifest *index.Plugin, manifestRaw []byte) (*hub.Package, error)

PreparePackage prepares a package version using the plugin manifest provided.

Types

type TrackerSource

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

TrackerSource is a hub.TrackerSource implementation for Krew plugins repositories.

func NewTrackerSource

func NewTrackerSource(i *hub.TrackerSourceInput) *TrackerSource

NewTrackerSource creates a new TrackerSource instance.

func (*TrackerSource) GetPackagesAvailable

func (s *TrackerSource) GetPackagesAvailable() (map[string]*hub.Package, error)

GetPackagesAvailable implements the TrackerSource interface.

Jump to

Keyboard shortcuts

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