jx: github.com/jenkins-x/jx/pkg/features Index | Files

package features

import "github.com/jenkins-x/jx/pkg/features"


Package Files



var FeatureFlagToken string

API key, populated at build-time.

func CheckStaticJenkins Uses

func CheckStaticJenkins() error

CheckStaticJenkins checks if static jenkins master is enabled

func CheckTektonEnabled Uses

func CheckTektonEnabled() error

CheckTektonEnabled checks if tekton is enabled

func Init Uses

func Init()

Init - initialise the feature flag mechanism

func IsEnabled Uses

func IsEnabled(cmd *cobra.Command) error

Checks if a Cobra command has been enabled

func IsFeatureEnabled Uses

func IsFeatureEnabled() bool

IsFeatureEnabled - determines if the feature flag mechanism is enabled

func SetFeatureFlagToken Uses

func SetFeatureFlagToken(token string)

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

type Features Uses

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

Package features imports 7 packages (graph). Updated 2020-07-03. Refresh now. Tools for package owners.