appmesh

package
v0.3.17 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound added in v0.3.14

func IsNotFound(err error) bool

func NewAppMeshConfigSyncer

func NewAppMeshConfigSyncer(translator appmesh.Translator, reconciler Reconciler, reporter reporter.Reporter) v1.ConfigSyncer

Types

type Client added in v0.3.14

type Client interface {
	// Get operations
	GetMesh(ctx context.Context, meshName string) (*appmesh.MeshData, error)

	// List operations
	ListMeshes(ctx context.Context) ([]string, error)
	ListVirtualNodes(ctx context.Context, meshName string) ([]string, error)
	ListVirtualServices(ctx context.Context, meshName string) ([]string, error)
	ListVirtualRouters(ctx context.Context, meshName string) ([]string, error)
	ListRoutes(ctx context.Context, meshName, virtualRouterName string) ([]string, error)

	// Create operations
	CreateMesh(ctx context.Context, meshName string) (*appmesh.MeshData, error)
	CreateVirtualNode(ctx context.Context, virtualNode *appmesh.VirtualNodeData) (*appmesh.VirtualNodeData, error)
	CreateVirtualService(ctx context.Context, virtualService *appmesh.VirtualServiceData) (*appmesh.VirtualServiceData, error)
	CreateVirtualRouter(ctx context.Context, virtualRouter *appmesh.VirtualRouterData) (*appmesh.VirtualRouterData, error)
	CreateRoute(ctx context.Context, route *appmesh.RouteData) (*appmesh.RouteData, error)

	// Update operations
	UpdateVirtualNode(ctx context.Context, virtualNode *appmesh.VirtualNodeData) (*appmesh.VirtualNodeData, error)
	UpdateVirtualService(ctx context.Context, virtualService *appmesh.VirtualServiceData) (*appmesh.VirtualServiceData, error)
	UpdateVirtualRouter(ctx context.Context, virtualRouter *appmesh.VirtualRouterData) (*appmesh.VirtualRouterData, error)
	UpdateRoute(ctx context.Context, route *appmesh.RouteData) (*appmesh.RouteData, error)

	// Delete operations
	DeleteMesh(ctx context.Context, meshName string) error
	DeleteVirtualNode(ctx context.Context, meshName, virtualNodeName string) error
	DeleteVirtualService(ctx context.Context, meshName, virtualServiceName string) error
	DeleteVirtualRouter(ctx context.Context, meshName, virtualRouterName string) error
	DeleteRoute(ctx context.Context, meshName, virtualRouterName, routeName string) error
}

Represents the App Mesh API

type ClientBuilder added in v0.3.14

type ClientBuilder interface {
	GetClientInstance(secretRef *core.ResourceRef, region string) (Client, error)
}

func NewAppMeshClientBuilder added in v0.3.14

func NewAppMeshClientBuilder(secrets gloov1.SecretClient) ClientBuilder

type Reconciler added in v0.3.14

type Reconciler interface {
	Reconcile(ctx context.Context, mesh *v1.Mesh, desiredResources *translator.ResourceSnapshot) error
}

func NewReconciler added in v0.3.14

func NewReconciler(builder ClientBuilder) Reconciler

type Resources added in v0.3.14

type Resources struct {
	VirtualNodes, VirtualServices []string
	VirtualRouters                map[string][]string
}

func ListAllForMesh added in v0.3.14

func ListAllForMesh(ctx context.Context, client Client, meshName string) (*Resources, error)

Directories

Path Synopsis
Package appmesh is a generated GoMock package.
Package appmesh is a generated GoMock package.

Jump to

Keyboard shortcuts

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