@@ -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"
@@ -534,108 +535,114 @@ type FakeELB struct {
534535
535536// CreateLoadBalancer is not implemented but is required for interface
536537// conformance
537- func (elb * FakeELB ) CreateLoadBalancer (ctx context.Context , input * elb.CreateLoadBalancerInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerOutput , error ) {
538+ func (e * FakeELB ) CreateLoadBalancer (ctx context.Context , input * elb.CreateLoadBalancerInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerOutput , error ) {
538539 panic ("Not implemented" )
539540}
540541
541542// DeleteLoadBalancer is not implemented but is required for interface
542543// conformance
543- func (elb * FakeELB ) DeleteLoadBalancer (ctx context.Context , input * elb.DeleteLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerOutput , error ) {
544+ func (e * FakeELB ) DeleteLoadBalancer (ctx context.Context , input * elb.DeleteLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerOutput , error ) {
544545 panic ("Not implemented" )
545546}
546547
547548// DescribeLoadBalancers is not implemented but is required for interface
548549// conformance
549- func (elb * FakeELB ) DescribeLoadBalancers (ctx context.Context , input * elb.DescribeLoadBalancersInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancersOutput , error ) {
550+ func (e * FakeELB ) DescribeLoadBalancers (ctx context.Context , input * elb.DescribeLoadBalancersInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancersOutput , error ) {
550551 panic ("Not implemented" )
551552}
552553
553554// AddTags is not implemented but is required for interface conformance
554- func (elb * FakeELB ) AddTags (ctx context.Context , input * elb.AddTagsInput , opts ... func (* elb.Options )) (* elb.AddTagsOutput , error ) {
555+ func (e * FakeELB ) AddTags (ctx context.Context , input * elb.AddTagsInput , opts ... func (* elb.Options )) (* elb.AddTagsOutput , error ) {
555556 panic ("Not implemented" )
556557}
557558
558559// RegisterInstancesWithLoadBalancer is not implemented but is required for
559560// interface conformance
560- func (elb * FakeELB ) RegisterInstancesWithLoadBalancer (ctx context.Context , input * elb.RegisterInstancesWithLoadBalancerInput , opts ... func (* elb.Options )) (* elb.RegisterInstancesWithLoadBalancerOutput , error ) {
561+ func (e * FakeELB ) RegisterInstancesWithLoadBalancer (ctx context.Context , input * elb.RegisterInstancesWithLoadBalancerInput , opts ... func (* elb.Options )) (* elb.RegisterInstancesWithLoadBalancerOutput , error ) {
561562 panic ("Not implemented" )
562563}
563564
564565// DeregisterInstancesFromLoadBalancer is not implemented but is required for
565566// interface conformance
566- func (elb * FakeELB ) DeregisterInstancesFromLoadBalancer (ctx context.Context , input * elb.DeregisterInstancesFromLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeregisterInstancesFromLoadBalancerOutput , error ) {
567+ func (e * FakeELB ) DeregisterInstancesFromLoadBalancer (ctx context.Context , input * elb.DeregisterInstancesFromLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeregisterInstancesFromLoadBalancerOutput , error ) {
567568 panic ("Not implemented" )
568569}
569570
570571// DetachLoadBalancerFromSubnets is not implemented but is required for
571572// interface conformance
572- func (elb * FakeELB ) DetachLoadBalancerFromSubnets (ctx context.Context , input * elb.DetachLoadBalancerFromSubnetsInput , opts ... func (* elb.Options )) (* elb.DetachLoadBalancerFromSubnetsOutput , error ) {
573+ func (e * FakeELB ) DetachLoadBalancerFromSubnets (ctx context.Context , input * elb.DetachLoadBalancerFromSubnetsInput , opts ... func (* elb.Options )) (* elb.DetachLoadBalancerFromSubnetsOutput , error ) {
573574 panic ("Not implemented" )
574575}
575576
576577// AttachLoadBalancerToSubnets is not implemented but is required for interface
577578// conformance
578- func (elb * FakeELB ) AttachLoadBalancerToSubnets (ctx context.Context , input * elb.AttachLoadBalancerToSubnetsInput , opts ... func (* elb.Options )) (* elb.AttachLoadBalancerToSubnetsOutput , error ) {
579+ func (e * FakeELB ) AttachLoadBalancerToSubnets (ctx context.Context , input * elb.AttachLoadBalancerToSubnetsInput , opts ... func (* elb.Options )) (* elb.AttachLoadBalancerToSubnetsOutput , error ) {
579580 panic ("Not implemented" )
580581}
581582
582583// CreateLoadBalancerListeners is not implemented but is required for interface
583584// conformance
584- func (elb * FakeELB ) CreateLoadBalancerListeners (ctx context.Context , input * elb.CreateLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerListenersOutput , error ) {
585+ func (e * FakeELB ) CreateLoadBalancerListeners (ctx context.Context , input * elb.CreateLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerListenersOutput , error ) {
585586 panic ("Not implemented" )
586587}
587588
588589// DeleteLoadBalancerListeners is not implemented but is required for interface
589590// conformance
590- func (elb * FakeELB ) DeleteLoadBalancerListeners (ctx context.Context , input * elb.DeleteLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerListenersOutput , error ) {
591+ func (e * FakeELB ) DeleteLoadBalancerListeners (ctx context.Context , input * elb.DeleteLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerListenersOutput , error ) {
591592 panic ("Not implemented" )
592593}
593594
594595// ApplySecurityGroupsToLoadBalancer is not implemented but is required for
595596// interface conformance
596- func (elb * FakeELB ) ApplySecurityGroupsToLoadBalancer (ctx context.Context , input * elb.ApplySecurityGroupsToLoadBalancerInput , opts ... func (* elb.Options )) (* elb.ApplySecurityGroupsToLoadBalancerOutput , error ) {
597+ func (e * FakeELB ) ApplySecurityGroupsToLoadBalancer (ctx context.Context , input * elb.ApplySecurityGroupsToLoadBalancerInput , opts ... func (* elb.Options )) (* elb.ApplySecurityGroupsToLoadBalancerOutput , error ) {
597598 panic ("Not implemented" )
598599}
599600
600601// ConfigureHealthCheck is not implemented but is required for interface
601602// conformance
602- func (elb * FakeELB ) ConfigureHealthCheck (ctx context.Context , input * elb.ConfigureHealthCheckInput , opts ... func (* elb.Options )) (* elb.ConfigureHealthCheckOutput , error ) {
603+ func (e * FakeELB ) ConfigureHealthCheck (ctx context.Context , input * elb.ConfigureHealthCheckInput , opts ... func (* elb.Options )) (* elb.ConfigureHealthCheckOutput , error ) {
603604 panic ("Not implemented" )
604605}
605606
606607// CreateLoadBalancerPolicy is not implemented but is required for interface
607608// conformance
608- func (elb * FakeELB ) CreateLoadBalancerPolicy (ctx context.Context , input * elb.CreateLoadBalancerPolicyInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerPolicyOutput , error ) {
609- panic ( "Not implemented" )
609+ func (e * FakeELB ) CreateLoadBalancerPolicy (ctx context.Context , input * elb.CreateLoadBalancerPolicyInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerPolicyOutput , error ) {
610+ return & elb. CreateLoadBalancerPolicyOutput {}, nil
610611}
611612
612613// SetLoadBalancerPoliciesForBackendServer is not implemented but is required
613614// for interface conformance
614- func (elb * FakeELB ) SetLoadBalancerPoliciesForBackendServer (ctx context.Context , input * elb.SetLoadBalancerPoliciesForBackendServerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesForBackendServerOutput , error ) {
615+ func (e * FakeELB ) SetLoadBalancerPoliciesForBackendServer (ctx context.Context , input * elb.SetLoadBalancerPoliciesForBackendServerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesForBackendServerOutput , error ) {
615616 panic ("Not implemented" )
616617}
617618
618619// SetLoadBalancerPoliciesOfListener is not implemented but is required for
619620// interface conformance
620- func (elb * FakeELB ) SetLoadBalancerPoliciesOfListener (ctx context.Context , input * elb.SetLoadBalancerPoliciesOfListenerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesOfListenerOutput , error ) {
621+ func (e * FakeELB ) SetLoadBalancerPoliciesOfListener (ctx context.Context , input * elb.SetLoadBalancerPoliciesOfListenerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesOfListenerOutput , error ) {
621622 panic ("Not implemented" )
622623}
623624
624625// DescribeLoadBalancerPolicies is not implemented but is required for
625626// interface conformance
626- func (elb * FakeELB ) DescribeLoadBalancerPolicies (ctx context.Context , input * elb.DescribeLoadBalancerPoliciesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerPoliciesOutput , error ) {
627- panic ("Not implemented" )
627+ func (e * FakeELB ) DescribeLoadBalancerPolicies (ctx context.Context , input * elb.DescribeLoadBalancerPoliciesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerPoliciesOutput , error ) {
628+ if aws .ToString (input .LoadBalancerName ) == "" {
629+ return nil , & elbtypes.LoadBalancerAttributeNotFoundException {}
630+ }
631+ if len (input .PolicyNames ) == 0 || input .PolicyNames [0 ] == "k8s-SSLNegotiationPolicy-" {
632+ return nil , & elbtypes.PolicyNotFoundException {}
633+ }
634+ return & elb.DescribeLoadBalancerPoliciesOutput {}, nil
628635}
629636
630637// DescribeLoadBalancerAttributes is not implemented but is required for
631638// interface conformance
632- func (elb * FakeELB ) DescribeLoadBalancerAttributes (ctx context.Context , input * elb.DescribeLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerAttributesOutput , error ) {
639+ func (e * FakeELB ) DescribeLoadBalancerAttributes (ctx context.Context , input * elb.DescribeLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerAttributesOutput , error ) {
633640 panic ("Not implemented" )
634641}
635642
636643// ModifyLoadBalancerAttributes is not implemented but is required for
637644// interface conformance
638- func (elb * FakeELB ) ModifyLoadBalancerAttributes (ctx context.Context , input * elb.ModifyLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.ModifyLoadBalancerAttributesOutput , error ) {
645+ func (e * FakeELB ) ModifyLoadBalancerAttributes (ctx context.Context , input * elb.ModifyLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.ModifyLoadBalancerAttributesOutput , error ) {
639646 panic ("Not implemented" )
640647}
641648
0 commit comments