istio: istio.io/istio/pkg/bootstrap/platform Index | Files

package platform

import "istio.io/istio/pkg/bootstrap/platform"

Index

Package Files

gcp.go platform.go

Constants

const (
    GCPProject    = "gcp_project"
    GCPCluster    = "gcp_gke_cluster_name"
    GCPLocation   = "gcp_location"
    GCEInstanceID = "gcp_gce_instance_id"
)

type Environment Uses

type Environment interface {
    // Metadata returns a collection of environmental metadata, structured
    // as a map for metadata names to values. An example for GCP would be a
    // mapping from "gcp_project" to "2344534543". Keys should be prefixed
    // by the short name for the platform (example: "gcp_").
    Metadata() map[string]string

    // Locality returns the run location for the bootstrap transformed from the
    // platform-specific representation into the Envoy Locality schema.
    Locality() *core.Locality
}

Environment provides information for the platform on which the bootstrapping is taking place.

func NewGCP Uses

func NewGCP() Environment

NewGCP returns a platform environment customized for Google Cloud Platform. Metadata returned by the GCP Environment is taken from the GCE metadata service.

Package platform imports 5 packages (graph) and is imported by 2 packages. Updated 2019-09-28. Refresh now. Tools for package owners.