pluginzip

package
v0.0.0-...-0fb1ec5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package pluginzip creates distributable zip archives for plugins. Each archive contains the plugin's buf.plugin.yaml and an image.tar produced by "docker save" of a locally available image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	ctx context.Context,
	logger *slog.Logger,
	p *plugin.Plugin,
	imageRef string,
	outputDir string,
) (string, error)

Create writes <outputDir>/<Name(p)> containing the plugin's buf.plugin.yaml and an image.tar produced by "docker save imageRef". The image must already be available to the local Docker daemon. Returns the path to the zip file.

func Name

func Name(p *plugin.Plugin) string

Name returns the zip filename for a plugin: "<owner>-<name>-<version>.zip".

Types

This section is empty.

Jump to

Keyboard shortcuts

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