mesh

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSDKMeshSpec added in v1.1.1

func BuildSDKMeshSpec(ctx context.Context, ms *appmesh.Mesh) (*appmeshsdk.MeshSpec, error)

func IsMeshActive

func IsMeshActive(ms *appmesh.Mesh) bool

IsMeshActive tests whether given mesh is active. mesh is active when its MeshActive condition equals true.

func IsMeshReferenced

func IsMeshReferenced(ms *appmesh.Mesh, reference appmesh.MeshReference) bool

IsMeshReferenced tests whether given mesh is referenced by meshReference

Types

type MembersFinalizer

type MembersFinalizer interface {
	Finalize(ctx context.Context, ms *appmesh.Mesh) error
}

func NewPendingMembersFinalizer

func NewPendingMembersFinalizer(k8sClient client.Client, eventRecorder record.EventRecorder, log logr.Logger) MembersFinalizer

type MembershipDesignator

type MembershipDesignator interface {
	// Designate will choose a mesh for given namespaced AppMesh CR.
	Designate(ctx context.Context, obj metav1.Object) (*appmesh.Mesh, error)
}

MembershipDesignator designates mesh membership for namespaced AppMesh CRs.

func NewMembershipDesignator

func NewMembershipDesignator(k8sClient client.Client) MembershipDesignator

NewMembershipDesignator creates new MembershipDesignator.

type ResourceManager

type ResourceManager interface {
	// Reconcile will create/update AppMesh Mesh to match ms.spec, and update ms.status
	Reconcile(ctx context.Context, ms *appmesh.Mesh) error

	// Cleanup will delete AppMesh Mesh created for ms.
	Cleanup(ctx context.Context, ms *appmesh.Mesh) error
}

ResourceManager is dedicated to manage AppMesh Mesh resources for k8s Mesh CRs.

func NewDefaultResourceManager

func NewDefaultResourceManager(
	k8sClient client.Client,
	appMeshSDK services.AppMesh,
	accountID string,
	log logr.Logger) ResourceManager

Jump to

Keyboard shortcuts

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