Documentation ¶
Index ¶
- func NewDefaultObjectReferenceIndexer(k8sCache cache.Cache, k8sFieldIndexer client.FieldIndexer) *defaultObjectReferenceIndexer
- func ObjectKeyForVirtualGatewayReference(obj metav1.Object, vgRef appmesh.VirtualGatewayReference) types.NamespacedName
- func ObjectKeyForVirtualNodeReference(obj metav1.Object, vnRef appmesh.VirtualNodeReference) types.NamespacedName
- func ObjectKeyForVirtualRouterReference(obj metav1.Object, vrRef appmesh.VirtualRouterReference) types.NamespacedName
- func ObjectKeyForVirtualServiceReference(obj metav1.Object, vsRef appmesh.VirtualServiceReference) types.NamespacedName
- type ObjectReferenceIndexFunc
- type ObjectReferenceIndexer
- type Resolver
- type SDKVirtualGatewayReferenceConvertFunc
- type SDKVirtualNodeReferenceConvertFunc
- type SDKVirtualRouterReferenceConvertFunc
- type SDKVirtualServiceReferenceConvertFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultObjectReferenceIndexer ¶
func NewDefaultObjectReferenceIndexer(k8sCache cache.Cache, k8sFieldIndexer client.FieldIndexer) *defaultObjectReferenceIndexer
func ObjectKeyForVirtualGatewayReference ¶
func ObjectKeyForVirtualGatewayReference(obj metav1.Object, vgRef appmesh.VirtualGatewayReference) types.NamespacedName
ObjectKeyForVirtualGatewayReference returns the key of referenced VirtualGateway CR.
func ObjectKeyForVirtualNodeReference ¶
func ObjectKeyForVirtualNodeReference(obj metav1.Object, vnRef appmesh.VirtualNodeReference) types.NamespacedName
ObjectKeyForVirtualNodeReference returns the key of referenced VirtualNode CR.
func ObjectKeyForVirtualRouterReference ¶
func ObjectKeyForVirtualRouterReference(obj metav1.Object, vrRef appmesh.VirtualRouterReference) types.NamespacedName
ObjectKeyForVirtualRouterReference returns the key of referenced VirtualRouter CR.
func ObjectKeyForVirtualServiceReference ¶
func ObjectKeyForVirtualServiceReference(obj metav1.Object, vsRef appmesh.VirtualServiceReference) types.NamespacedName
ObjectKeyForVirtualServiceReference returns the key of referenced VirtualService CR.
Types ¶
type ObjectReferenceIndexFunc ¶
type ObjectReferenceIndexFunc func(obj runtime.Object) []types.NamespacedName
type ObjectReferenceIndexer ¶
type ObjectReferenceIndexer interface { Setup(obj runtime.Object, indexFuncByKind map[string]ObjectReferenceIndexFunc) error Fetch(ctx context.Context, objList runtime.Object, referentKind string, referentKey types.NamespacedName, opts ...client.ListOption) error }
ObjectReferenceIndexer is responsible for build indexes based on object's reference, and fetch objects based on reference using index.
type Resolver ¶
type Resolver interface { // ResolveMeshReference returns a mesh CR based on ref ResolveMeshReference(ctx context.Context, ref appmesh.MeshReference) (*appmesh.Mesh, error) // ResolveVirtualGatewayReference returns a virtualGateway CR based on obj and ref ResolveVirtualGatewayReference(ctx context.Context, obj metav1.Object, ref appmesh.VirtualGatewayReference) (*appmesh.VirtualGateway, error) // ResolveVirtualNodeReference returns a virtualNode CR based on obj and ref ResolveVirtualNodeReference(ctx context.Context, obj metav1.Object, ref appmesh.VirtualNodeReference) (*appmesh.VirtualNode, error) // ResolveVirtualServiceReference returns a virtualService CR based obj and ref ResolveVirtualServiceReference(ctx context.Context, obj metav1.Object, ref appmesh.VirtualServiceReference) (*appmesh.VirtualService, error) // ResolveVirtualRouterReference returns a virtualRouter CR based obj and ref ResolveVirtualRouterReference(ctx context.Context, obj metav1.Object, ref appmesh.VirtualRouterReference) (*appmesh.VirtualRouter, error) }
type SDKVirtualGatewayReferenceConvertFunc ¶
type SDKVirtualGatewayReferenceConvertFunc func(vgRef *appmesh.VirtualGatewayReference, vgAWSName *string, scope conversion.Scope) error
SDKVirtualGatewayReferenceConvertFunc is func that can convert VirtualGatewayReference to its AppMesh VirtualGateway name.
func BuildSDKVirtualGatewayReferenceConvertFunc ¶
func BuildSDKVirtualGatewayReferenceConvertFunc(obj metav1.Object, vgByKey map[types.NamespacedName]*appmesh.VirtualGateway) SDKVirtualGatewayReferenceConvertFunc
BuildSDKVirtualGatewayReferenceConvertFunc constructs new SDKVirtualGatewayReferenceConvertFunc by given referencing object and VirtualGateway mapping.
type SDKVirtualNodeReferenceConvertFunc ¶
type SDKVirtualNodeReferenceConvertFunc func(vnRef *appmesh.VirtualNodeReference, vnAWSName *string, scope conversion.Scope) error
SDKVirtualNodeReferenceConvertFunc is func that can convert VirtualNodeReference to its AppMesh VirtualNode name.
func BuildSDKVirtualNodeReferenceConvertFunc ¶
func BuildSDKVirtualNodeReferenceConvertFunc(obj metav1.Object, vnByKey map[types.NamespacedName]*appmesh.VirtualNode) SDKVirtualNodeReferenceConvertFunc
BuildSDKVirtualNodeReferenceConvertFunc constructs new SDKVirtualNodeReferenceConvertFunc by given referencing object and VirtualNode mapping.
type SDKVirtualRouterReferenceConvertFunc ¶
type SDKVirtualRouterReferenceConvertFunc func(vrRef *appmesh.VirtualRouterReference, vrAWSName *string, scope conversion.Scope) error
SDKVirtualRouterReferenceConvertFunc is func that can convert VirtualRouterReference to its AppMesh VirtualRouter name.
func BuildSDKVirtualRouterReferenceConvertFunc ¶
func BuildSDKVirtualRouterReferenceConvertFunc(obj metav1.Object, vrByKey map[types.NamespacedName]*appmesh.VirtualRouter) SDKVirtualRouterReferenceConvertFunc
BuildSDKVirtualRouterReferenceConvertFunc constructs new SDKVirtualRouterReferenceConvertFunc by given referencing object and VirtualRouter mapping.
type SDKVirtualServiceReferenceConvertFunc ¶
type SDKVirtualServiceReferenceConvertFunc func(vsRef *appmesh.VirtualServiceReference, vsAWSName *string, scope conversion.Scope) error
SDKVirtualServiceReferenceConvertFunc is func that can convert VirtualServiceReference to its AppMesh VirtualService name.
func BuildSDKVirtualServiceReferenceConvertFunc ¶
func BuildSDKVirtualServiceReferenceConvertFunc(obj metav1.Object, vsByKey map[types.NamespacedName]*appmesh.VirtualService) SDKVirtualServiceReferenceConvertFunc
BuildSDKVirtualServiceReferenceConvertFunc constructs new SDKVirtualServiceReferenceConvertFunc by given referencing object and VirtualService mapping.