plugins

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HelmPluginName the default name of the helm plugin
	HelmPluginName = "helm"
)
View Source
const (
	// HelmVersion the default version of helm to use
	HelmVersion = "3.2.1"
)

Variables

This section is empty.

Functions

func CreateBinaries

func CreateBinaries(createURLFn func(Platform) string) []jenkinsv1.Binary

CreateBinaries a helper function to create the binary resources for the platforms for a given callback

func CreateHelmPlugin

func CreateHelmPlugin(version string) jenkinsv1.Plugin

CreateHelmPlugin creates the helm 3 plugin

func GetHelmBinary

func GetHelmBinary(version string) (string, error)

GetHelmBinary returns the path to the locally installed helm 3 extension

Types

type Platform

type Platform struct {
	Goarch string
	Goos   string
}

Platform represents a platform for binaries

func (Platform) Extension

func (p Platform) Extension() string

Extension returns the default distribution extension; `tar.gz` or `zip` for windows

func (Platform) IsWindows

func (p Platform) IsWindows() bool

IsWindows returns true if the platform is windows

Jump to

Keyboard shortcuts

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