Versions in this module Expand all Collapse all v0 v0.13.0-rc.0 Nov 26, 2024 v0.12.0 Oct 16, 2024 Changes in this version + func IsErrBadRequest(err error) bool + func IsErrConflict(err error) bool + func IsErrForbidden(err error) bool + func IsErrInternal(err error) bool + func IsErrNotFound(err error) bool + func ReconcilePermissions(ctx context.Context, firewallRuleID string, addFunc, delFunc PermFunc, ...) error + type Address struct + AddressID string + AssociationID *string + PublicIP string + type AssociateAddressRequest struct + AddressID string + NetworkInterfaceID string + type AssociateFirewallRuleRequest struct + FirewallRuleID string + NetworkInterfaceID string + type Client interface + AssociateAddress func(ctx context.Context, req AssociateAddressRequest) error + AssociateFirewallRule func(ctx context.Context, req AssociateFirewallRuleRequest) error + CreateAddress func(ctx context.Context) (*Address, error) + CreateFirewallRule func(ctx context.Context, req CreateFirewallRuleRequest) (string, error) + CreateFirewallRuleGroup func(ctx context.Context, req CreateFirewallRuleGroupRequest) (string, error) + DeleteAddress func(ctx context.Context, addressID string) error + DeleteFirewallRule func(ctx context.Context, firewallRuleID string) error + DisassociateAddress func(ctx context.Context, req DisassociateAddressRequest) error + DisassociateFirewallRule func(ctx context.Context, req AssociateFirewallRuleRequest) error + FetchFirewallRule func(ctx context.Context, firewallRuleGroupID string) error + GetAddress func(ctx context.Context, addressID string) (*Address, error) + GetInstance func(ctx context.Context, instanceID string) (*Instance, error) + UpdateFirewallRule func(ctx context.Context, req UpdateFirewallRuleRequest) (*FirewallRule, error) + UpdateFirewallRuleGroup func(ctx context.Context, req UpdateFirewallRuleGroupRequest) (string, error) + type CreateFirewallRuleGroupRequest struct + Description string + FirewallRules []FirewallRuleSpec + Name string + type CreateFirewallRuleRequest struct + type Direction string + const DirectionEgress + const DirectionIngress + type DisassociateAddressRequest struct + AssociationID string + type Error struct + Code ErrorCode + Msg string + func (e *Error) Error() string + type ErrorCode string + const BadRequestError + const ConflictError + const ForbiddenError + const InternalError + const NotFoundError + type FirewallRule struct + FirewallRuleID string + VpcID string + type FirewallRuleGroup struct + Description string + FirewallRules []FirewallRuleSpec + Name string + type FirewallRuleSpec struct + Description string + Direction Direction + IPPermission *IPPermission + Name string + type IPPermission struct + FromPort int64 + IPRanges []*IPRange + Protocol string + ToPort *int64 + func GetEgressIPPermissions(slice []FirewallRuleSpec) []*IPPermission + func GetIngressIPPermissions(slice []FirewallRuleSpec) []*IPPermission + type IPRange struct + CIDR string + Description string + type Instance struct + InstanceID string + NetworkInterfaces []*NetworkInterface + VpcID string + type NetworkInterface struct + DeviceID *int64 + NetworkInterfaceID string + PublicIP *string + type PermFunc func(ctx context.Context, firewallRuleID string, req IPPermission) error + type Provider interface + GetInstanceID func(corev1.Node) string + HasGroupedFirewallRules func() bool + type UpdateFirewallRuleGroupRequest struct + FirewallRuleGroupID string + FirewallRules []FirewallRuleSpec + type UpdateFirewallRuleRequest struct + FirewallRuleID string