instancestate

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Ec2StateChangeNotification = "EC2 Instance State-change Notification"

Variables

This section is empty.

Functions

func GenerateQueueName

func GenerateQueueName(clusterName string) string

Types

type Service

type Service struct {
	EventBridgeClient eventbridgeiface.EventBridgeAPI
	SQSClient         sqsiface.SQSAPI
	// contains filtered or unexported fields
}

func NewService

func NewService(clusterScope scope.EC2Scope) *Service

NewService returns a new service given the ec2 api client.

func (Service) AddInstanceToEventPattern

func (s Service) AddInstanceToEventPattern(instanceID string) error

func (Service) DeleteEC2Events

func (s Service) DeleteEC2Events() error

func (Service) ReconcileEC2Events

func (s Service) ReconcileEC2Events() error

func (Service) RemoveInstanceFromEventPattern

func (s Service) RemoveInstanceFromEventPattern(instanceID string)

RemoveInstanceFromEventPattern attempts a best effort update to the event rule to remove the instance. Any errors encountered won't be blocking.

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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