features

package
v2.1.123 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FeatureFlagToken string

API key, populated at build-time.

Functions

func CheckStaticJenkins

func CheckStaticJenkins() error

CheckStaticJenkins checks if static jenkins master is enabled

func CheckTektonEnabled

func CheckTektonEnabled() error

CheckTektonEnabled checks if tekton is enabled

func Init

func Init()

Init - initialise the feature flag mechanism

func IsEnabled

func IsEnabled(cmd *cobra.Command) error

Checks if a Cobra command has been enabled

func IsFeatureEnabled

func IsFeatureEnabled() bool

IsFeatureEnabled - determines if the feature flag mechanism is enabled

func SetFeatureFlagToken

func SetFeatureFlagToken(token string)

SetFeatureFlagToken - used to set the API key in the tests todo remove this I have a better idea

Types

type Features

type Features struct {

	// types of Jenkins X installations
	Tekton        server.RoxFlag
	StaticJenkins server.RoxFlag

	// Supported Cloud Providers
	AKS        server.RoxFlag
	AWS        server.RoxFlag
	EKS        server.RoxFlag
	GKE        server.RoxFlag
	ICP        server.RoxFlag
	IKS        server.RoxFlag
	OKE        server.RoxFlag
	Kubernetes server.RoxFlag
	Minikube   server.RoxFlag
	Openshift  server.RoxFlag

	// Supported build packs
	Java server.RoxFlag
	Go   server.RoxFlag
	Node server.RoxFlag
}

Features Flags

Jump to

Keyboard shortcuts

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