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
Click to show internal directories.
Click to hide internal directories.