helpers

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package helpers implements helper function for builder plugin

Index

Constants

View Source
const (
	PluginInventoryDBImageName = "plugin-inventory"
)

Variables

This section is empty.

Functions

func GetDigest

func GetDigest(filePath string) (string, error)

GetDigest computes the sha256 digest of the specified file

func GetPluginArchiveRelativePath

func GetPluginArchiveRelativePath(plugin cli.Plugin, osArch cli.Arch, version string) string

GetPluginArchiveRelativePath creates plugin archive relative path from metadata

func ReadPluginManifest

func ReadPluginManifest(pluginManifestFile string) (*cli.Manifest, error)

ReadPluginManifest reads the PluginManifest file and returns Manifest object

Types

This section is empty.

Jump to

Keyboard shortcuts

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