janitor

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.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 CloudMapJanitor

type CloudMapJanitor interface {
	// Cleanup removes all instances, services and the namespace from AWS Cloud Map for a given namespace name.
	Cleanup(ctx context.Context, nsName string)
}

CloudMapJanitor handles AWS Cloud Map resource cleanup during integration tests.

func NewDefaultJanitor

func NewDefaultJanitor(clusterId string, clusterSetId string) CloudMapJanitor

NewDefaultJanitor returns a new janitor object.

type SdkJanitorFacade

type SdkJanitorFacade interface {
	// DeleteNamespace provides ServiceDiscovery DeleteNamespace wrapper interface.
	DeleteNamespace(context.Context, *sd.DeleteNamespaceInput, ...func(*sd.Options)) (*sd.DeleteNamespaceOutput, error)

	// DeleteService provides ServiceDiscovery DeleteService wrapper interface.
	DeleteService(context.Context, *sd.DeleteServiceInput, ...func(*sd.Options)) (*sd.DeleteServiceOutput, error)

	cloudmap.AwsFacade
}

SdkJanitorFacade extends the minimal surface area of ServiceDiscovery API calls of the client for integration test janitor operations.

func NewSdkJanitorFacadeFromConfig

func NewSdkJanitorFacadeFromConfig(cfg *aws.Config) SdkJanitorFacade

NewSdkJanitorFacadeFromConfig creates a new AWS facade from an AWS client config extended for integration test janitor operations.

type ServiceDiscoveryJanitorApi

type ServiceDiscoveryJanitorApi interface {
	DeleteNamespace(ctx context.Context, namespaceId string) (operationId string, err error)
	DeleteService(ctx context.Context, serviceId string) error
	cloudmap.ServiceDiscoveryApi
}

func NewServiceDiscoveryJanitorApiFromConfig

func NewServiceDiscoveryJanitorApiFromConfig(cfg *aws.Config) ServiceDiscoveryJanitorApi

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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