types

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: UPL-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentType

type ComponentType int

ComponentType component type

const (
	// WLS component type
	WLS ComponentType = 0
	// Helidon component type
	Helidon ComponentType = 1
	// Coherence component type
	Coherence ComponentType = 2
	// Unknown component type
	Unknown ComponentType = 3
)

type Ingress

type Ingress struct {
	// Name of the ingress in the binding
	Name string

	// Destinations for the ingress
	Destination []*IngressDestination
}

Ingress represents an ingress and its destinations.

type IngressDestination

type IngressDestination struct {
	Host string
	// VirtualService destination Port
	Port       int
	Match      []MatchRequest
	DomainName string
}

IngressDestination represents a destination ingress.

type ManagedCluster

type ManagedCluster struct {
	// Name of the managed cluster
	Name string

	// Namespaces within the cluster
	Namespaces []string

	// Names of secrets within each namespace for the cluster
	Secrets map[string][]string

	// Names of ingresses to generate within each namespace for this cluster
	Ingresses map[string][]*Ingress

	// ConfigMaps for this cluster
	ConfigMaps []*corev1.ConfigMap

	// Remote rest connections (istio ServicEntries) to generate within each namespace for this cluster
	RemoteRests map[string][]*RemoteRestConnection

	// wls-operator deployment for this cluster
	WlsOperator *v1wlsopr.WlsOperator

	// WebLogic domain CRs for this cluster
	WlsDomainCRs []*v8weblogic.Domain

	// Helidon applications for this cluster
	HelidonApps []*v1helidonapp.HelidonApp

	// Coherence operator for this cluster
	CohOperatorCRs []*v1cohoperator.CohCluster

	// Coherence cluster CRs for this cluster
	CohClusterCRs []*v1cohcluster.CoherenceCluster
}

ManagedCluster defines the environment of a single managed cluster within the model.

type MatchRequest

type MatchRequest struct {
	URI  map[string]string //`json:"uri,omitempty"`
	Port int               //`json:"port,omitempty"`
}

MatchRequest represents an istio virtual service match criteria. see verrazzano-crd-generator/pkg/apis/networking.istio.io/v1alpha3/virtual_service.go

istio.io/api/networking/v1alpha3/virtual_service.json

type ModelBindingPair

type ModelBindingPair struct {
	// A binding and the model it is associated with
	Model   *v1beta1v8o.VerrazzanoModel
	Binding *v1beta1v8o.VerrazzanoBinding

	// The set of managed clusters
	ManagedClusters map[string]*ManagedCluster

	// Lock for synchronizing write access
	Lock *sync.RWMutex

	VerrazzanoURI string

	// Optional list of image pull secrets to add to service accounts created by the operator
	ImagePullSecrets []corev1.LocalObjectReference
}

ModelBindingPair represents an instance of a model/binding pair and the objects for creating the model.

type RemoteRestConnection

type RemoteRestConnection struct {
	// Name of remote service
	Name string

	// Namespace for remote service
	RemoteNamespace string

	// Cluster name for remote service
	RemoteClusterName string

	// Namespace for local service
	LocalNamespace string

	// Port for remote service
	Port uint32
}

RemoteRestConnection represents a rest connection to a remote cluster.

Jump to

Keyboard shortcuts

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