@@ -32,6 +32,7 @@ import (
3232 "github.com/aws/aws-sdk-go-v2/service/ec2"
3333 ec2types "github.com/aws/aws-sdk-go-v2/service/ec2/types"
3434 elb "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing"
35+ elbtypes "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing/types"
3536 elbv2 "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2"
3637 "github.com/aws/aws-sdk-go-v2/service/kms"
3738 "k8s.io/klog/v2"
@@ -529,108 +530,114 @@ type FakeELB struct {
529530
530531// CreateLoadBalancer is not implemented but is required for interface
531532// conformance
532- func (elb * FakeELB ) CreateLoadBalancer (ctx context.Context , input * elb.CreateLoadBalancerInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerOutput , error ) {
533+ func (e * FakeELB ) CreateLoadBalancer (ctx context.Context , input * elb.CreateLoadBalancerInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerOutput , error ) {
533534 panic ("Not implemented" )
534535}
535536
536537// DeleteLoadBalancer is not implemented but is required for interface
537538// conformance
538- func (elb * FakeELB ) DeleteLoadBalancer (ctx context.Context , input * elb.DeleteLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerOutput , error ) {
539+ func (e * FakeELB ) DeleteLoadBalancer (ctx context.Context , input * elb.DeleteLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerOutput , error ) {
539540 panic ("Not implemented" )
540541}
541542
542543// DescribeLoadBalancers is not implemented but is required for interface
543544// conformance
544- func (elb * FakeELB ) DescribeLoadBalancers (ctx context.Context , input * elb.DescribeLoadBalancersInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancersOutput , error ) {
545+ func (e * FakeELB ) DescribeLoadBalancers (ctx context.Context , input * elb.DescribeLoadBalancersInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancersOutput , error ) {
545546 panic ("Not implemented" )
546547}
547548
548549// AddTags is not implemented but is required for interface conformance
549- func (elb * FakeELB ) AddTags (ctx context.Context , input * elb.AddTagsInput , opts ... func (* elb.Options )) (* elb.AddTagsOutput , error ) {
550+ func (e * FakeELB ) AddTags (ctx context.Context , input * elb.AddTagsInput , opts ... func (* elb.Options )) (* elb.AddTagsOutput , error ) {
550551 panic ("Not implemented" )
551552}
552553
553554// RegisterInstancesWithLoadBalancer is not implemented but is required for
554555// interface conformance
555- func (elb * FakeELB ) RegisterInstancesWithLoadBalancer (ctx context.Context , input * elb.RegisterInstancesWithLoadBalancerInput , opts ... func (* elb.Options )) (* elb.RegisterInstancesWithLoadBalancerOutput , error ) {
556+ func (e * FakeELB ) RegisterInstancesWithLoadBalancer (ctx context.Context , input * elb.RegisterInstancesWithLoadBalancerInput , opts ... func (* elb.Options )) (* elb.RegisterInstancesWithLoadBalancerOutput , error ) {
556557 panic ("Not implemented" )
557558}
558559
559560// DeregisterInstancesFromLoadBalancer is not implemented but is required for
560561// interface conformance
561- func (elb * FakeELB ) DeregisterInstancesFromLoadBalancer (ctx context.Context , input * elb.DeregisterInstancesFromLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeregisterInstancesFromLoadBalancerOutput , error ) {
562+ func (e * FakeELB ) DeregisterInstancesFromLoadBalancer (ctx context.Context , input * elb.DeregisterInstancesFromLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeregisterInstancesFromLoadBalancerOutput , error ) {
562563 panic ("Not implemented" )
563564}
564565
565566// DetachLoadBalancerFromSubnets is not implemented but is required for
566567// interface conformance
567- func (elb * FakeELB ) DetachLoadBalancerFromSubnets (ctx context.Context , input * elb.DetachLoadBalancerFromSubnetsInput , opts ... func (* elb.Options )) (* elb.DetachLoadBalancerFromSubnetsOutput , error ) {
568+ func (e * FakeELB ) DetachLoadBalancerFromSubnets (ctx context.Context , input * elb.DetachLoadBalancerFromSubnetsInput , opts ... func (* elb.Options )) (* elb.DetachLoadBalancerFromSubnetsOutput , error ) {
568569 panic ("Not implemented" )
569570}
570571
571572// AttachLoadBalancerToSubnets is not implemented but is required for interface
572573// conformance
573- func (elb * FakeELB ) AttachLoadBalancerToSubnets (ctx context.Context , input * elb.AttachLoadBalancerToSubnetsInput , opts ... func (* elb.Options )) (* elb.AttachLoadBalancerToSubnetsOutput , error ) {
574+ func (e * FakeELB ) AttachLoadBalancerToSubnets (ctx context.Context , input * elb.AttachLoadBalancerToSubnetsInput , opts ... func (* elb.Options )) (* elb.AttachLoadBalancerToSubnetsOutput , error ) {
574575 panic ("Not implemented" )
575576}
576577
577578// CreateLoadBalancerListeners is not implemented but is required for interface
578579// conformance
579- func (elb * FakeELB ) CreateLoadBalancerListeners (ctx context.Context , input * elb.CreateLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerListenersOutput , error ) {
580+ func (e * FakeELB ) CreateLoadBalancerListeners (ctx context.Context , input * elb.CreateLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerListenersOutput , error ) {
580581 panic ("Not implemented" )
581582}
582583
583584// DeleteLoadBalancerListeners is not implemented but is required for interface
584585// conformance
585- func (elb * FakeELB ) DeleteLoadBalancerListeners (ctx context.Context , input * elb.DeleteLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerListenersOutput , error ) {
586+ func (e * FakeELB ) DeleteLoadBalancerListeners (ctx context.Context , input * elb.DeleteLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerListenersOutput , error ) {
586587 panic ("Not implemented" )
587588}
588589
589590// ApplySecurityGroupsToLoadBalancer is not implemented but is required for
590591// interface conformance
591- func (elb * FakeELB ) ApplySecurityGroupsToLoadBalancer (ctx context.Context , input * elb.ApplySecurityGroupsToLoadBalancerInput , opts ... func (* elb.Options )) (* elb.ApplySecurityGroupsToLoadBalancerOutput , error ) {
592+ func (e * FakeELB ) ApplySecurityGroupsToLoadBalancer (ctx context.Context , input * elb.ApplySecurityGroupsToLoadBalancerInput , opts ... func (* elb.Options )) (* elb.ApplySecurityGroupsToLoadBalancerOutput , error ) {
592593 panic ("Not implemented" )
593594}
594595
595596// ConfigureHealthCheck is not implemented but is required for interface
596597// conformance
597- func (elb * FakeELB ) ConfigureHealthCheck (ctx context.Context , input * elb.ConfigureHealthCheckInput , opts ... func (* elb.Options )) (* elb.ConfigureHealthCheckOutput , error ) {
598+ func (e * FakeELB ) ConfigureHealthCheck (ctx context.Context , input * elb.ConfigureHealthCheckInput , opts ... func (* elb.Options )) (* elb.ConfigureHealthCheckOutput , error ) {
598599 panic ("Not implemented" )
599600}
600601
601602// CreateLoadBalancerPolicy is not implemented but is required for interface
602603// conformance
603- func (elb * FakeELB ) CreateLoadBalancerPolicy (ctx context.Context , input * elb.CreateLoadBalancerPolicyInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerPolicyOutput , error ) {
604- panic ( "Not implemented" )
604+ func (e * FakeELB ) CreateLoadBalancerPolicy (ctx context.Context , input * elb.CreateLoadBalancerPolicyInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerPolicyOutput , error ) {
605+ return & elb. CreateLoadBalancerPolicyOutput {}, nil
605606}
606607
607608// SetLoadBalancerPoliciesForBackendServer is not implemented but is required
608609// for interface conformance
609- func (elb * FakeELB ) SetLoadBalancerPoliciesForBackendServer (ctx context.Context , input * elb.SetLoadBalancerPoliciesForBackendServerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesForBackendServerOutput , error ) {
610+ func (e * FakeELB ) SetLoadBalancerPoliciesForBackendServer (ctx context.Context , input * elb.SetLoadBalancerPoliciesForBackendServerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesForBackendServerOutput , error ) {
610611 panic ("Not implemented" )
611612}
612613
613614// SetLoadBalancerPoliciesOfListener is not implemented but is required for
614615// interface conformance
615- func (elb * FakeELB ) SetLoadBalancerPoliciesOfListener (ctx context.Context , input * elb.SetLoadBalancerPoliciesOfListenerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesOfListenerOutput , error ) {
616+ func (e * FakeELB ) SetLoadBalancerPoliciesOfListener (ctx context.Context , input * elb.SetLoadBalancerPoliciesOfListenerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesOfListenerOutput , error ) {
616617 panic ("Not implemented" )
617618}
618619
619620// DescribeLoadBalancerPolicies is not implemented but is required for
620621// interface conformance
621- func (elb * FakeELB ) DescribeLoadBalancerPolicies (ctx context.Context , input * elb.DescribeLoadBalancerPoliciesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerPoliciesOutput , error ) {
622- panic ("Not implemented" )
622+ func (e * FakeELB ) DescribeLoadBalancerPolicies (ctx context.Context , input * elb.DescribeLoadBalancerPoliciesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerPoliciesOutput , error ) {
623+ if aws .ToString (input .LoadBalancerName ) == "" {
624+ return nil , & elbtypes.LoadBalancerAttributeNotFoundException {}
625+ }
626+ if len (input .PolicyNames ) == 0 || input .PolicyNames [0 ] == "k8s-SSLNegotiationPolicy-" {
627+ return nil , & elbtypes.PolicyNotFoundException {}
628+ }
629+ return & elb.DescribeLoadBalancerPoliciesOutput {}, nil
623630}
624631
625632// DescribeLoadBalancerAttributes is not implemented but is required for
626633// interface conformance
627- func (elb * FakeELB ) DescribeLoadBalancerAttributes (ctx context.Context , input * elb.DescribeLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerAttributesOutput , error ) {
634+ func (e * FakeELB ) DescribeLoadBalancerAttributes (ctx context.Context , input * elb.DescribeLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerAttributesOutput , error ) {
628635 panic ("Not implemented" )
629636}
630637
631638// ModifyLoadBalancerAttributes is not implemented but is required for
632639// interface conformance
633- func (elb * FakeELB ) ModifyLoadBalancerAttributes (ctx context.Context , input * elb.ModifyLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.ModifyLoadBalancerAttributesOutput , error ) {
640+ func (e * FakeELB ) ModifyLoadBalancerAttributes (ctx context.Context , input * elb.ModifyLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.ModifyLoadBalancerAttributesOutput , error ) {
634641 panic ("Not implemented" )
635642}
636643
0 commit comments