istio: istio.io/istio/pkg/test/env Index | Files

package env

import "istio.io/istio/pkg/test/env"

Index

Package Files

istio.go variable.go

Variables

var (
    // GOPATH environment variable
    // nolint: golint, stylecheck
    GOPATH Variable = "GOPATH"

    // TOP environment variable
    // nolint: golint, stylecheck
    TOP Variable = "TOP"

    // ISTIO_GO environment variable
    // nolint: golint, stylecheck
    ISTIO_GO Variable = "ISTIO_GO"

    // ISTIO_BIN environment variable
    // nolint: golint, stylecheck
    ISTIO_BIN Variable = "ISTIO_BIN"

    // ISTIO_OUT environment variable
    // nolint: golint, stylecheck
    ISTIO_OUT Variable = "ISTIO_OUT"

    // LOCAL_OUT environment variable
    // nolint: golint, stylecheck
    LOCAL_OUT Variable = "LOCAL_OUT"

    // REPO_ROOT environment variable
    // nolint: golint, stylecheck
    REPO_ROOT Variable = "REPO_ROOT"

    // HUB is the Docker hub to be used for images.
    // nolint: golint, stylecheck
    HUB Variable = "HUB"

    // TAG is the Docker tag to be used for images.
    // nolint: golint, stylecheck
    TAG Variable = "TAG"

    // BITNAMIHUB is the Docker registry to be used for the bitnami images.
    // nolint: golint
    BITNAMIHUB Variable = "BITNAMIHUB"

    // PULL_POLICY is the image pull policy to use when rendering templates.
    // nolint: golint, stylecheck
    PULL_POLICY Variable = "PULL_POLICY"

    // ISTIO_TEST_KUBE_CONFIG is the Kubernetes configuration file to use for testing. If a configuration file
    // is specified on the command-line, that takes precedence.
    // nolint: golint, stylecheck
    ISTIO_TEST_KUBE_CONFIG Variable = "ISTIO_TEST_KUBE_CONFIG"

    // IstioSrc is the location of istio source ($TOP/src/istio.io/istio
    IstioSrc = REPO_ROOT.ValueOrDefaultFunc(getDefaultIstioSrc)

    // IstioBin is the location of the binary output directory
    IstioBin = verifyFile(ISTIO_BIN, ISTIO_BIN.ValueOrDefaultFunc(getDefaultIstioBin))

    // IstioOut is the location of the output directory ($TOP/out)
    IstioOut = verifyFile(ISTIO_OUT, ISTIO_OUT.ValueOrDefaultFunc(getDefaultIstioOut))

    // LocalOut is the location of the output directory for the OS we are running in,
    // not necessarily the OS we are building for
    LocalOut = verifyFile(LOCAL_OUT, LOCAL_OUT.ValueOrDefaultFunc(getDefaultIstioOut))

    // ChartsDir is the Kubernetes Helm chart directory in the repository
    ChartsDir = path.Join(IstioSrc, "install/kubernetes/helm")

    // IstioChartDir is the Kubernetes Helm chart directory in the repository
    IstioChartDir = path.Join(ChartsDir, "istio")

    // BookInfoRoot is the root folder for the bookinfo samples
    BookInfoRoot = path.Join(IstioSrc, "samples/bookinfo")

    // BookInfoKube is the book info folder that contains Yaml deployment files.
    BookInfoKube = path.Join(BookInfoRoot, "platform/kube")

    // ServiceAccountFilePath is the helm service account file.
    ServiceAccountFilePath = path.Join(ChartsDir, "helm-service-account.yaml")

    // RedisInstallFilePath is the redis installation file.
    RedisInstallFilePath = path.Join(IstioSrc, "pkg/test/framework/components/redis/redis.yaml")
)

func CheckFileExists Uses

func CheckFileExists(path string) error

type Variable Uses

type Variable string

Variable is a wrapper for an environment variable.

func (Variable) Name Uses

func (e Variable) Name() string

Name of the environment variable.

func (Variable) Value Uses

func (e Variable) Value() string

Value of the environment variable.

func (Variable) ValueOrDefault Uses

func (e Variable) ValueOrDefault(defaultValue string) string

ValueOrDefault returns the value of the environment variable if it is non-empty. Otherwise returns the value provided.

func (Variable) ValueOrDefaultFunc Uses

func (e Variable) ValueOrDefaultFunc(defaultValueFunc func() string) string

ValueOrDefaultFunc returns the value of the environment variable if it is non-empty. Otherwise returns the value function provided.

Package env imports 8 packages (graph) and is imported by 28 packages. Updated 2020-02-14. Refresh now. Tools for package owners.