security_groups

package
v0.0.0-...-12a582f Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(req *pb.CreateRequest) providers.Provider

NewProvider initializes a SecurityGroupsProvider with defaults

func NewProviderFromConfig

func NewProviderFromConfig(cfg *Config) (providers.Provider, error)

Types

type Config

type Config struct {
	VpcId  string
	DryRun bool
	All    bool
	Kind   string
	Tags   []labels.Label // optionally define some extra tags
}

func DefaultConfig

func DefaultConfig() *Config

func MergeDefaultConfig

func MergeDefaultConfig(cfg *Config) *Config

type SecurityGroupBuilder

type SecurityGroupBuilder struct {
	// contains filtered or unexported fields
}

func NewSecurityGroupBuilder

func NewSecurityGroupBuilder(cfg Config) (*SecurityGroupBuilder, error)

func (*SecurityGroupBuilder) AuthorizeSecurityGroupIngress

func (b *SecurityGroupBuilder) AuthorizeSecurityGroupIngress(input *ec2.AuthorizeSecurityGroupIngressInput) error

func (*SecurityGroupBuilder) CreateBitcoinP2PSecurityGroup

func (b *SecurityGroupBuilder) CreateBitcoinP2PSecurityGroup() (string, error)

func (*SecurityGroupBuilder) CreateBitcoinP2PSecurityGroupInput

func (b *SecurityGroupBuilder) CreateBitcoinP2PSecurityGroupInput(bitcoinP2PSecurityGroupId string) *ec2.AuthorizeSecurityGroupIngressInput

func (*SecurityGroupBuilder) CreateSecurityGroups

func (b *SecurityGroupBuilder) CreateSecurityGroups() error

func (*SecurityGroupBuilder) CreateSshSecurityGroup

func (b *SecurityGroupBuilder) CreateSshSecurityGroup() string

func (*SecurityGroupBuilder) CreateSshSecurityGroupInput

func (b *SecurityGroupBuilder) CreateSshSecurityGroupInput(sshSecurityGroupId string) *ec2.AuthorizeSecurityGroupIngressInput

func (*SecurityGroupBuilder) CreateSubscriberSecurityGroup

func (b *SecurityGroupBuilder) CreateSubscriberSecurityGroup() (string, error)

func (*SecurityGroupBuilder) CreateZmqBroadcasterSecurityGroup

func (b *SecurityGroupBuilder) CreateZmqBroadcasterSecurityGroup() (string, error)

func (*SecurityGroupBuilder) ListenerSelfSecurityGroupInput

func (b *SecurityGroupBuilder) ListenerSelfSecurityGroupInput(subscriberSecurityGroupId string) *ec2.AuthorizeSecurityGroupIngressInput

type SecurityGroupsProvider

type SecurityGroupsProvider struct {
	// Config holds our internal configuration options
	// for the instance of the SecurityGroupsProvider
	Config *Config

	SGs []interface{}
}

SecurityGroupsProvider implements a SecurityGroupsProvider

func (*SecurityGroupsProvider) Annotate

func (p *SecurityGroupsProvider) Annotate(id string, l labels.Labels) error

Annotate should implement applying labels or tags for a given resource type

func (*SecurityGroupsProvider) Apply

func (p *SecurityGroupsProvider) Apply() error

func (*SecurityGroupsProvider) AwaitReadiness

func (p *SecurityGroupsProvider) AwaitReadiness() chan error

AwaitReadiness should be implemented to detect when a SecurityGroupsProvider has finished setting up a variant and can begin using it in an experiment

func (*SecurityGroupsProvider) Cancel

func (p *SecurityGroupsProvider) Cancel() error

Cancel will abort and running or submitted SecurityGroupsProvider

func (*SecurityGroupsProvider) Clone

func (p *SecurityGroupsProvider) Clone() error

Clone creates a modified variant

func (*SecurityGroupsProvider) ProbeReadiness

func (p *SecurityGroupsProvider) ProbeReadiness() (bool, error)

ProbeReadiness checks that the provisioned resource is available and ready to be included in a request

func (*SecurityGroupsProvider) Read

func (p *SecurityGroupsProvider) Read() error

Read fetches and stores the configuration for an existing SecurityGroups zone. What is read of the existing resource acts as the template/configuration to implement a clone via creating a new resource with the existing output as input for a variant

func (*SecurityGroupsProvider) Select

func (*SecurityGroupsProvider) Stop

func (p *SecurityGroupsProvider) Stop() error

Stop will stop any running SecurityGroupsProvider

func (*SecurityGroupsProvider) Teardown

func (p *SecurityGroupsProvider) Teardown() error

Teardown eradicates any resource that has been provisioned as part of a variant

Jump to

Keyboard shortcuts

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