mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-20 15:10:28 -04:00
monorepo
Co-authored-by: Malte Poll <mp@edgeless.systems> Co-authored-by: katexochen <katexochen@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <tt@edgeless.systems> Co-authored-by: Benedict Schlueter <bs@edgeless.systems> Co-authored-by: leongross <leon.gross@rub.de> Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>
This commit is contained in:
commit
2d8fcd9bf4
362 changed files with 50980 additions and 0 deletions
42
cli/ec2/client/api.go
Normal file
42
cli/ec2/client/api.go
Normal file
|
@ -0,0 +1,42 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/service/ec2"
|
||||
)
|
||||
|
||||
// api collects used functions of AWS' ec2.Client as interfaces to enable testing.
|
||||
type api interface {
|
||||
ec2.DescribeInstancesAPIClient
|
||||
|
||||
// Instances
|
||||
RunInstances(ctx context.Context,
|
||||
params *ec2.RunInstancesInput,
|
||||
optFns ...func(*ec2.Options)) (*ec2.RunInstancesOutput, error)
|
||||
|
||||
TerminateInstances(ctx context.Context,
|
||||
params *ec2.TerminateInstancesInput,
|
||||
optFns ...func(*ec2.Options)) (*ec2.TerminateInstancesOutput, error)
|
||||
|
||||
CreateTags(ctx context.Context,
|
||||
params *ec2.CreateTagsInput,
|
||||
optFns ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
|
||||
|
||||
// SecurityGroup
|
||||
CreateSecurityGroup(ctx context.Context,
|
||||
params *ec2.CreateSecurityGroupInput,
|
||||
optFns ...func(*ec2.Options)) (*ec2.CreateSecurityGroupOutput, error)
|
||||
|
||||
DeleteSecurityGroup(ctx context.Context,
|
||||
params *ec2.DeleteSecurityGroupInput,
|
||||
optFns ...func(*ec2.Options)) (*ec2.DeleteSecurityGroupOutput, error)
|
||||
|
||||
AuthorizeSecurityGroupIngress(ctx context.Context,
|
||||
params *ec2.AuthorizeSecurityGroupIngressInput,
|
||||
optFns ...func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupIngressOutput, error)
|
||||
|
||||
AuthorizeSecurityGroupEgress(ctx context.Context,
|
||||
params *ec2.AuthorizeSecurityGroupEgressInput,
|
||||
optFns ...func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupEgressOutput, error)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue