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

package features

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

Index

Package Files

features.go

Variables

var FeatureFlagToken string

API key, populated at build-time.

func CheckJenkinsFileRunner Uses

func CheckJenkinsFileRunner() error

CheckJenkinsFileRunner checks if jenkins file runner is enabled

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
    JenkinsFileRunner 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
    Minishift  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) and is imported by 2 packages. Updated 2019-10-09. Refresh now. Tools for package owners.