Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProtectionSynthesizer ¶
func NewProtectionSynthesizer(protectionManager ProtectionManager, logger logr.Logger, stack core.Stack) *protectionSynthesizer
NewProtectionSynthesizer constructs new protectionSynthesizer
Types ¶
type ProtectionInfo ¶
type ProtectionManager ¶
type ProtectionManager interface { // CreateProtection creates shield protection for resource. returns protectionID. CreateProtection(ctx context.Context, resourceARN string, protectionName string) (string, error) // DeleteProtection deletes shield protection for resource. DeleteProtection(ctx context.Context, resourceARN string, protectionID string) error // GetProtection returns shield protection information for resource. // returns nil if no protection exists. GetProtection(ctx context.Context, resourceARN string) (*ProtectionInfo, error) // IsSubscribed checks whether subscribed to shield service. IsSubscribed(ctx context.Context) (bool, error) }
Click to show internal directories.
Click to hide internal directories.