krew

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package krew implements Piper and Publisher, providing krew plugin manifest creation and upload to a repository (aka krew plugin index).

nolint:tagliatelle

Index

Constants

This section is empty.

Variables

View Source
var ErrNoArchivesFound = errors.New("no archives found")

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	APIVersion string   `yaml:"apiVersion,omitempty"`
	Kind       string   `yaml:"kind,omitempty"`
	Metadata   Metadata `yaml:"metadata,omitempty"`
	Spec       Spec     `yaml:"spec,omitempty"`
}

type MatchLabels

type MatchLabels struct {
	Os   string `yaml:"os,omitempty"`
	Arch string `yaml:"arch,omitempty"`
}

type Metadata

type Metadata struct {
	Name string `yaml:"name,omitempty"`
}

type Pipe

type Pipe struct{}

Pipe for krew manifest deployment.

func (Pipe) Default

func (Pipe) Default(ctx *context.Context) error

func (Pipe) Publish

func (Pipe) Publish(ctx *context.Context) error

Publish krew manifest.

func (Pipe) Run

func (Pipe) Run(ctx *context.Context) error

func (Pipe) Skip

func (Pipe) Skip(ctx *context.Context) bool

func (Pipe) String

func (Pipe) String() string

type Platform

type Platform struct {
	Bin      string   `yaml:"bin,omitempty"`
	URI      string   `yaml:"uri,omitempty"`
	Sha256   string   `yaml:"sha256,omitempty"`
	Selector Selector `yaml:"selector,omitempty"`
}

type Selector

type Selector struct {
	MatchLabels MatchLabels `yaml:"matchLabels,omitempty"`
}

type Spec

type Spec struct {
	Version          string     `yaml:"version,omitempty"`
	Platforms        []Platform `yaml:"platforms,omitempty"`
	ShortDescription string     `yaml:"shortDescription,omitempty"`
	Homepage         string     `yaml:"homepage,omitempty"`
	Caveats          string     `yaml:"caveats,omitempty"`
	Description      string     `yaml:"description,omitempty"`
}

Jump to

Keyboard shortcuts

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