shield

package
v2.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultProtectionManager

func NewDefaultProtectionManager(shieldClient services.Shield, logger logr.Logger) *defaultProtectionManager

func NewProtectionSynthesizer

func NewProtectionSynthesizer(protectionManager ProtectionManager, logger logr.Logger, stack core.Stack) *protectionSynthesizer

NewProtectionSynthesizer constructs new protectionSynthesizer

Types

type ProtectionInfo

type ProtectionInfo struct {
	Name string
	ID   string
}

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)
}

Jump to

Keyboard shortcuts

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