Documentation ¶
Index ¶
- func TagsToMap(src []ec2Types.Tag) map[string]string
- type AssociationStateCode
- type Client
- type CreateSubnetInput
- type CreateSubnetOutput
- type DeleteSubnetsInput
- type GetEndpointSubnetsInput
- type GetSubnetOutput
- type GetSubnetsInput
- type GetSubnetsOutput
- type ReconcileRequest
- type ReconcileResult
- type Reconciler
- type RouteTableAssociation
- type Spec
- type SubnetSpec
- type SubnetState
- type SubnetStatus
- type UpdateSubnetInput
- type UpdateSubnetOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssociationStateCode ¶
type AssociationStateCode string
const ( AssociationStateCodeAssociating AssociationStateCode = "associating" AssociationStateCodeAssociated AssociationStateCode = "associated" AssociationStateCodeDisassociating AssociationStateCode = "disassociating" AssociationStateCodeDisassociated AssociationStateCode = "disassociated" AssociationStateCodeFailed AssociationStateCode = "failed" AssociationStateCodeUnknown AssociationStateCode = "unknown" )
Enum values for RouteTableAssociationStateCode
type Client ¶
type Client interface { Create(ctx context.Context, input CreateSubnetInput) (CreateSubnetOutput, error) Update(ctx context.Context, input UpdateSubnetInput) (UpdateSubnetOutput, error) Get(ctx context.Context, input GetSubnetsInput) (GetSubnetsOutput, error) Delete(ctx context.Context, input DeleteSubnetsInput) error GetEndpointSubnets(ctx context.Context, input GetEndpointSubnetsInput) ([]string, error) }
type CreateSubnetInput ¶
type CreateSubnetOutput ¶
type DeleteSubnetsInput ¶
type GetEndpointSubnetsInput ¶ added in v0.2.1
type GetSubnetOutput ¶
type GetSubnetOutput struct { SubnetId string VpcId string CidrBlock string AvailabilityZone string State SubnetState RouteTableAssociation RouteTableAssociation Tags map[string]string }
type GetSubnetsInput ¶
type GetSubnetsOutput ¶
type GetSubnetsOutput []GetSubnetOutput
type ReconcileRequest ¶
type ReconcileRequest struct { // Resource that is being reconciled. Resource conditions.Setter // Spec of the desired subnets. Spec Spec }
ReconcileRequest specified which resource is being reconciled and what is the specification of the desired subnets.
type ReconcileResult ¶
type ReconcileResult struct {
Subnets []SubnetStatus
}
type Reconciler ¶
type Reconciler interface { Reconcile(ctx context.Context, request ReconcileRequest) (ReconcileResult, error) ReconcileDelete(ctx context.Context, request aws.ReconcileRequest[[]aws.DeletedCloudResourceSpec]) error }
func NewReconciler ¶
func NewReconciler(client Client) (Reconciler, error)
type RouteTableAssociation ¶
type RouteTableAssociation struct { RouteTableId string AssociationStateCode AssociationStateCode }
type SubnetSpec ¶
type SubnetState ¶
type SubnetState string
const ( SubnetStatePending SubnetState = "pending" SubnetStateAvailable SubnetState = "available" SubnetStateUnknown SubnetState = "unknown" )
Enum values for SubnetState
type SubnetStatus ¶
type SubnetStatus struct { SubnetId string VpcId string CidrBlock string AvailabilityZone string State SubnetState RouteTableAssociation RouteTableAssociation Tags map[string]string }
type UpdateSubnetInput ¶
type UpdateSubnetOutput ¶
type UpdateSubnetOutput struct {
RouteTableAssociation *RouteTableAssociation
}
Click to show internal directories.
Click to hide internal directories.