io

package
v1.1.0-beta33 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CertificateIssuerInputTypes = Snapshot{
		schema.GroupVersion{
			Group:   "certificates." + constants.GlooMeshApiGroupSuffix,
			Version: "v1",
		}: {
			"IssuedCertificate",
			"CertificateRequest",
		},
	}

	CertificateAgentInputTypes = Snapshot{
		schema.GroupVersion{
			Group:   "certificates." + constants.GlooMeshApiGroupSuffix,
			Version: "v1",
		}: {
			"IssuedCertificate",
			"CertificateRequest",
			"PodBounceDirective",
		},
		corev1.SchemeGroupVersion: {
			"Secret",
			"Pod",
			"ConfigMap",
			"ServiceAccount",
		},
	}

	CertificateAgentOutputTypes = OutputSnapshot{
		Name: "certagent",
		Snapshot: Snapshot{
			schema.GroupVersion{
				Group:   "certificates." + constants.GlooMeshApiGroupSuffix,
				Version: "v1",
			}: {
				"CertificateRequest",
			},
			corev1.SchemeGroupVersion: {
				"Secret",
			},
		},
	}
)
View Source
var (
	DiscoveryInputTypes = Snapshot{
		corev1.SchemeGroupVersion: {
			"Pod",
			"Service",
			"ConfigMap",
			"Node",
			"Endpoints",
		},
		appsv1.SchemeGroupVersion: {
			"Deployment",
			"ReplicaSet",
			"DaemonSet",
			"StatefulSet",
		},
		appmeshv1beta2.GroupVersion: {
			"Mesh",
		},

		schema.GroupVersion{
			Group:   "certificates." + constants.GlooMeshApiGroupSuffix,
			Version: "v1",
		}: {
			"IssuedCertificate",
		},
	}

	DiscoveryLocalInputTypes = Snapshot{
		schema.GroupVersion{
			Group:   "settings." + constants.GlooMeshApiGroupSuffix,
			Version: "v1",
		}: {
			"Settings",
		},
	}

	DiscoveryOutputTypes = OutputSnapshot{
		Name: "discovery",
		Snapshot: Snapshot{
			schema.GroupVersion{
				Group:   "discovery." + constants.GlooMeshApiGroupSuffix,
				Version: "v1",
			}: {
				"Mesh",
				"Workload",
				"Destination",
			},
		},
	}
)
View Source
var (
	NetworkingInputTypes = Snapshot{
		schema.GroupVersion{
			Group:   "discovery." + constants.GlooMeshApiGroupSuffix,
			Version: "v1",
		}: {
			"Mesh",
			"Workload",
			"Destination",
		},
		schema.GroupVersion{
			Group:   "networking." + constants.GlooMeshApiGroupSuffix,
			Version: "v1",
		}: {
			"TrafficPolicy",
			"AccessPolicy",
			"VirtualMesh",
		},
		schema.GroupVersion{
			Group:   "settings." + constants.GlooMeshApiGroupSuffix,
			Version: "v1",
		}: {
			"Settings",
		},
		schema.GroupVersion{
			Group:   "networking.enterprise." + constants.GlooMeshApiGroupSuffix,
			Version: "v1beta1",
		}: {
			"CertificateVerification",
			"WasmDeployment",
			"RateLimitClientConfig",
			"RateLimitServerConfig",
			"VirtualDestination",
			"VirtualGateway",
			"VirtualHost",
			"RouteTable",
			"ServiceDependency",
		},
		schema.GroupVersion{
			Group:   "observability.enterprise." + constants.GlooMeshApiGroupSuffix,
			Version: "v1",
		}: {
			"AccessLogRecord",
		},
		skv1alpha1.SchemeGroupVersion: {
			"KubernetesCluster",
		},
		corev1.SchemeGroupVersion: {
			"Secret",
		},
	}

	IstioNetworkingOutputTypes = OutputSnapshot{
		Name: "istio",
		Snapshot: Snapshot{
			istionetworkingv1alpha3.SchemeGroupVersion: {
				"DestinationRule",
				"VirtualService",
				"EnvoyFilter",
				"ServiceEntry",
				"Gateway",
				"Sidecar",
			},
			istiosecurityv1beta1.SchemeGroupVersion: {
				"AuthorizationPolicy",
			},
			schema.GroupVersion{
				Group:   "certificates." + constants.GlooMeshApiGroupSuffix,
				Version: "v1",
			}: {
				"IssuedCertificate",
				"PodBounceDirective",
			},
			schema.GroupVersion{
				Group:   "xds.agent.enterprise." + constants.GlooMeshApiGroupSuffix,
				Version: "v1beta1",
			}: {
				"XdsConfig",
			},
			solo_apis.SchemeGroupVersion: {
				"RateLimitConfig",
			},
		},
	}

	LocalNetworkingOutputTypes = OutputSnapshot{
		Name: "local",
		Snapshot: Snapshot{
			corev1.SchemeGroupVersion: {
				"Secret",
			},
		},
	}

	SmiNetworkingOutputTypes = OutputSnapshot{
		Name: "smi",
		Snapshot: Snapshot{
			smislpitv1alpha2.SchemeGroupVersion: {
				"TrafficSplit",
			},
			smiaccessv1alpha2.SchemeGroupVersion: {
				"TrafficTarget",
			},
			smispecsv1alpha3.SchemeGroupVersion: {
				"HTTPRouteGroup",
			},
		},
	}

	AppMeshNetworkingOutputTypes = OutputSnapshot{
		Name: "appmesh",
		Snapshot: Snapshot{
			appmeshv1beta2.GroupVersion: {
				"VirtualNode",
				"VirtualRouter",
				"VirtualService",
			},
		},
	}
)
View Source
var (
	ClusterWatcherInputTypes = Snapshot{
		corev1.SchemeGroupVersion: {
			"Secret",
		},
		skv1alpha1.SchemeGroupVersion: {
			"KubernetesCluster",
		},
	}
)

Functions

This section is empty.

Types

type OutputSnapshot

type OutputSnapshot struct {
	// Snapshot to be used as an output snapshot
	Snapshot Snapshot
	// Name to be used for placing this builder in a subdirectory
	Name string
}

type Snapshot

type Snapshot map[schema.GroupVersion][]string

a Snapshot is a group of individual resources from one or more GroupVersions

func (Snapshot) Join added in v0.12.0

func (this Snapshot) Join(that Snapshot) Snapshot

func (Snapshot) RbacPoliciesUpdateStatus

func (s Snapshot) RbacPoliciesUpdateStatus() []rbacv1.PolicyRule

get the rbac policies needed to update the snapshot statuses

func (Snapshot) RbacPoliciesWatch

func (s Snapshot) RbacPoliciesWatch() []rbacv1.PolicyRule

get the rbac policies needed to watch the snapshot

func (Snapshot) RbacPoliciesWrite

func (s Snapshot) RbacPoliciesWrite() []rbacv1.PolicyRule

get the rbac policies needed to write the snapshot

Jump to

Keyboard shortcuts

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