istio: istio.io/istio/pkg/test/framework/components/bookinfo Index | Files

package bookinfo

import "istio.io/istio/pkg/test/framework/components/bookinfo"

Index

Package Files

bookinfo.go configs.go kube.go

Constants

const (
    // BookInfo uses "bookinfo.yaml"
    BookInfo          bookInfoConfig = "bookinfo.yaml"
    BookinfoRatingsv2 bookInfoConfig = "bookinfo-ratings-v2.yaml"
    BookinfoDb        bookInfoConfig = "bookinfo-db.yaml"
)

func Deploy Uses

func Deploy(ctx resource.Context, cfg Config) (i deployment.Instance, err error)

DeployOrFail returns a new instance of deployed BookInfo or fails test

func DeployOrFail Uses

func DeployOrFail(t test.Failer, ctx resource.Context, cfg Config) deployment.Instance

DeployOrFail returns a new instance of deployed BookInfo or fails test

type Config Uses

type Config struct {
    Namespace namespace.Instance
    Cfg       bookInfoConfig
}

type ConfigFile Uses

type ConfigFile string

ConfigFile represents config yaml files for different bookinfo scenarios.

const (
    // NetworkingBookinfoGateway uses "networking/bookinfo-gateway.yaml"
    NetworkingBookinfoGateway ConfigFile = "networking/bookinfo-gateway.yaml"

    // NetworkingDestinationRuleAll uses "networking/destination-rule-all.yaml"
    NetworkingDestinationRuleAll ConfigFile = "networking/destination-rule-all.yaml"

    // NetworkingDestinationRuleAllMtls uses "networking/destination-rule-all-mtls.yaml"
    NetworkingDestinationRuleAllMtls ConfigFile = "networking/destination-rule-all-mtls.yaml"

    // NetworkingVirtualServiceAllV1 uses "networking/virtual-service-all-v1.yaml"
    NetworkingVirtualServiceAllV1 ConfigFile = "networking/virtual-service-all-v1.yaml"

    // NetworkingTcpDbRule uses "networking/virtual-service-ratings-db.yaml"
    NetworkingTCPDbRule ConfigFile = "networking/virtual-service-ratings-db.yaml"

    // NetworkingReviewsV3Rule uses "networking/virtual-service-reviews-v3"
    NetworkingReviewsV3Rule ConfigFile = "networking/virtual-service-reviews-v3.yaml"

    // RatingsRedisRateLimitFixed uses Mixer configs
    RatingsRedisRateLimitFixed ConfigFile = "policy/mixer-rule-ratings-redis-quota-fixed-window.yaml"

    // RatingsRedisRateLimitRolling uses Mixer configs
    RatingsRedisRateLimitRolling ConfigFile = "policy/mixer-rule-ratings-redis-quota-rolling-window.yaml"

    // ProductPageRedisRateLimit uses Mixer configs
    ProductPageRedisRateLimit ConfigFile = "policy/mixer-rule-productpage-redis-quota-fixed-window.yaml"

    // PolicyDenyIPRule uses "policy/mixer-rule-deny-ip.yaml"
    PolicyDenyIPRule ConfigFile = "policy/mixer-rule-deny-ip.yaml"

    // TelemetryLogEntry uses "telemetry/log-entry.yaml"
    TelemetryLogEntry ConfigFile = "telemetry/log-entry.yaml"
)

func GetDestinationRuleConfigFile Uses

func GetDestinationRuleConfigFile(ctx resource.Context) (ConfigFile, error)

func GetDestinationRuleConfigFileOrFail Uses

func GetDestinationRuleConfigFileOrFail(t test.Failer, ctx resource.Context) ConfigFile

func (ConfigFile) LoadGatewayFileWithNamespace Uses

func (l ConfigFile) LoadGatewayFileWithNamespace(namespace string) (string, error)

LoadGatewayFileWithNamespaceOrFail loads a Book Info Gateway configuration file from the system, changes it to be fit for the namespace provided and returns its contents.

func (ConfigFile) LoadGatewayFileWithNamespaceOrFail Uses

func (l ConfigFile) LoadGatewayFileWithNamespaceOrFail(t test.Failer, namespace string) string

LoadGatewayFileWithNamespaceOrFail loads a Book Info Gateway configuration file from the system, changes it to be fit for the namespace provided and returns its contents.

func (ConfigFile) LoadOrFail Uses

func (l ConfigFile) LoadOrFail(t test.Failer) string

LoadOrFail loads a Book Info configuration file from the system and returns its contents.

func (ConfigFile) LoadWithNamespace Uses

func (l ConfigFile) LoadWithNamespace(namespace string) (string, error)

LoadWithNamespaceOrFail loads a Book Info configuration file from the systemchanges it to be fit for the namespace provided and returns its contents.

func (ConfigFile) LoadWithNamespaceOrFail Uses

func (l ConfigFile) LoadWithNamespaceOrFail(t test.Failer, namespace string) string

LoadWithNamespaceOrFail loads a Book Info configuration file from the systemchanges it to be fit for the namespace provided and returns its contents.

Package bookinfo imports 13 packages (graph). Updated 2019-08-06. Refresh now. Tools for package owners.