Documentation ¶
Index ¶
Constants ¶
View Source
const (
ResourceDafault = "default"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network interface { CreateVPC(ctx context.Context, params *awsec2.CreateVpcInput) (*awsec2.CreateVpcOutput, error) CreateSubnet(ctx context.Context, params *awsec2.CreateSubnetInput) (*awsec2.CreateSubnetOutput, error) CreateSG(ctx context.Context, params *awsec2.CreateSecurityGroupInput) (*awsec2.CreateSecurityGroupOutput, error) CreateNAT(ctx context.Context, dp *v1.DataPlanes) (*awsec2.CreateNatGatewayOutput, error) CreateElasticIP(ctx context.Context, params *awsec2.AllocateAddressInput) (*awsec2.AllocateAddressOutput, error) AssociateNATWithRT(ctx context.Context, dp *v1.DataPlanes) error CreateInternetGateway(ctx context.Context, params *awsec2.CreateInternetGatewayInput) (*awsec2.CreateInternetGatewayOutput, error) AttachInternetGateway(ctx context.Context, igId, vpcId string) (*awsec2.AttachInternetGatewayOutput, error) AddSGInboundRule(ctx context.Context, sgGroupId, vpcId string) (*awsec2.AuthorizeSecurityGroupIngressOutput, error) SubnetAutoAssignPublicIP(ctx context.Context, subnetId string) (*awsec2.ModifySubnetAttributeOutput, error) CreateRouteTable(ctx context.Context, vpcId string, params *awsec2.CreateRouteTableInput) (*awsec2.CreateRouteTableOutput, error) CreateRoute(ctx context.Context, input *awsec2.CreateRouteInput) (*awsec2.CreateRouteOutput, error) AssociateRTWithSubnet(ctx context.Context, rtId, subnetId string) error DeleteNatGateway(ctx context.Context, id string) error DetachInternetGateway(ctx context.Context, id, vpcId string) error DeleteInternetGateway(ctx context.Context, id string) error DeleteLBs(ctx context.Context, names []string) error DeleteVPC(ctx context.Context, vpcId string) error DeleteSubnets(ctx context.Context, subnetIds []string) error DeleteSGs(ctx context.Context, vpcId string) error DeleteRouteTables(ctx context.Context, vpcId string) error }
Click to show internal directories.
Click to hide internal directories.