common

package
v0.5.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BookInfoOperation       = "bookinfo"
	HTTPBinOperation        = "httpbin"
	ImageHubOperation       = "imagehub"
	EmojiVotoOperation      = "emojivoto"
	SmiConformanceOperation = "smi_conformance"
	CustomOperation         = "custom"
	ServiceName             = "service_name"
)

Variables

View Source
var (

	// DefaultOpts is an example of options to be injected into a config providers.
	DefaultOpts = configprovider.Options{
		Viper: &defaultViperOptions,
		InMem: &configprovider.InMemOptions{},
	}
)
View Source
var (
	Operations = adapters.Operations{
		BookInfoOperation: &adapters.Operation{
			Type:        int32(meshes.OpCategory_SAMPLE_APPLICATION),
			Description: "Istio Book Info Application",
			Versions:    adapters.NoneVersion,
			Templates: []adapters.Template{
				"https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml",
			},
			AdditionalProperties: map[string]string{
				ServiceName: BookInfoOperation,
			},
		},
		HTTPBinOperation: &adapters.Operation{
			Type:        int32(meshes.OpCategory_SAMPLE_APPLICATION),
			Description: "HTTPBin Application",
			Versions:    adapters.NoneVersion,
			Templates: []adapters.Template{
				"https://raw.githubusercontent.com/istio/istio/master/samples/httpbin/httpbin.yaml",
			},
			AdditionalProperties: map[string]string{
				ServiceName: HTTPBinOperation,
			},
		},
		ImageHubOperation: &adapters.Operation{
			Type:        int32(meshes.OpCategory_SAMPLE_APPLICATION),
			Description: "Image Hub Application",
			Versions:    adapters.NoneVersion,
			Templates: []adapters.Template{
				"https://raw.githubusercontent.com/layer5io/image-hub/master/deployment.yaml",
			},
			AdditionalProperties: map[string]string{
				ServiceName: ImageHubOperation,
			},
		},
		EmojiVotoOperation: &adapters.Operation{
			Type:        int32(meshes.OpCategory_SAMPLE_APPLICATION),
			Description: "EmojiVoto Application",
			Versions:    adapters.NoneVersion,
			Templates: []adapters.Template{
				"https://raw.githubusercontent.com/BuoyantIO/emojivoto/main/kustomize/deployment/emoji.yml",
				"https://raw.githubusercontent.com/BuoyantIO/emojivoto/main/kustomize/deployment/vote-bot.yml",
				"https://raw.githubusercontent.com/BuoyantIO/emojivoto/main/kustomize/deployment/voting.yml",
				"https://raw.githubusercontent.com/BuoyantIO/emojivoto/main/kustomize/deployment/web.yml",
			},
			AdditionalProperties: map[string]string{
				ServiceName: EmojiVotoOperation,
			},
		},
		CustomOperation: &adapters.Operation{
			Type:        int32(meshes.OpCategory_CUSTOM),
			Description: "Custom YAML",
			Templates:   adapters.NoneTemplate,
		},

		SmiConformanceOperation: &adapters.Operation{
			Type:        int32(meshes.OpCategory_VALIDATE),
			Description: "SMI Conformance",
			Templates: []adapters.Template{
				"https://raw.githubusercontent.com/layer5io/learn-layer5/master/smi-conformance/manifest.yml",
			},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL