istio: Index | Files

package gcemetadata

import ""

Package gcemetadata provides basic utilities around configuring the fake GCE Metadata Server component for integration testing.


Package Files

gcemetadata.go kube.go

type Config Uses

type Config struct {
    // Cluster to be used in a multicluster environment
    Cluster resource.Cluster

Config defines the options for creating an fake GCE Metadata Server component.

type Instance Uses

type Instance interface {
    // Address is the IP Address of the service provided by the fake GCE
    // Metadata Server.
    Address() string

Instance represents a deployed GCE Metadata Server app instance.

func New Uses

func New(ctx resource.Context, c Config) (i Instance, err error)

New returns a new instance of stackdriver.

func NewOrFail Uses

func NewOrFail(t test.Failer, ctx resource.Context, c Config) Instance

NewOrFail returns a new GCE Metadata Server instance or fails test.

Package gcemetadata imports 9 packages (graph). Updated 2020-08-11. Refresh now. Tools for package owners.