@@ -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"
@@ -519,108 +520,114 @@ type FakeELB struct {
519520
520521// CreateLoadBalancer is not implemented but is required for interface
521522// conformance
522- func (elb * FakeELB ) CreateLoadBalancer (ctx context.Context , input * elb.CreateLoadBalancerInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerOutput , error ) {
523+ func (e * FakeELB ) CreateLoadBalancer (ctx context.Context , input * elb.CreateLoadBalancerInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerOutput , error ) {
523524 panic ("Not implemented" )
524525}
525526
526527// DeleteLoadBalancer is not implemented but is required for interface
527528// conformance
528- func (elb * FakeELB ) DeleteLoadBalancer (ctx context.Context , input * elb.DeleteLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerOutput , error ) {
529+ func (e * FakeELB ) DeleteLoadBalancer (ctx context.Context , input * elb.DeleteLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerOutput , error ) {
529530 panic ("Not implemented" )
530531}
531532
532533// DescribeLoadBalancers is not implemented but is required for interface
533534// conformance
534- func (elb * FakeELB ) DescribeLoadBalancers (ctx context.Context , input * elb.DescribeLoadBalancersInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancersOutput , error ) {
535+ func (e * FakeELB ) DescribeLoadBalancers (ctx context.Context , input * elb.DescribeLoadBalancersInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancersOutput , error ) {
535536 panic ("Not implemented" )
536537}
537538
538539// AddTags is not implemented but is required for interface conformance
539- func (elb * FakeELB ) AddTags (ctx context.Context , input * elb.AddTagsInput , opts ... func (* elb.Options )) (* elb.AddTagsOutput , error ) {
540+ func (e * FakeELB ) AddTags (ctx context.Context , input * elb.AddTagsInput , opts ... func (* elb.Options )) (* elb.AddTagsOutput , error ) {
540541 panic ("Not implemented" )
541542}
542543
543544// RegisterInstancesWithLoadBalancer is not implemented but is required for
544545// interface conformance
545- func (elb * FakeELB ) RegisterInstancesWithLoadBalancer (ctx context.Context , input * elb.RegisterInstancesWithLoadBalancerInput , opts ... func (* elb.Options )) (* elb.RegisterInstancesWithLoadBalancerOutput , error ) {
546+ func (e * FakeELB ) RegisterInstancesWithLoadBalancer (ctx context.Context , input * elb.RegisterInstancesWithLoadBalancerInput , opts ... func (* elb.Options )) (* elb.RegisterInstancesWithLoadBalancerOutput , error ) {
546547 panic ("Not implemented" )
547548}
548549
549550// DeregisterInstancesFromLoadBalancer is not implemented but is required for
550551// interface conformance
551- func (elb * FakeELB ) DeregisterInstancesFromLoadBalancer (ctx context.Context , input * elb.DeregisterInstancesFromLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeregisterInstancesFromLoadBalancerOutput , error ) {
552+ func (e * FakeELB ) DeregisterInstancesFromLoadBalancer (ctx context.Context , input * elb.DeregisterInstancesFromLoadBalancerInput , opts ... func (* elb.Options )) (* elb.DeregisterInstancesFromLoadBalancerOutput , error ) {
552553 panic ("Not implemented" )
553554}
554555
555556// DetachLoadBalancerFromSubnets is not implemented but is required for
556557// interface conformance
557- func (elb * FakeELB ) DetachLoadBalancerFromSubnets (ctx context.Context , input * elb.DetachLoadBalancerFromSubnetsInput , opts ... func (* elb.Options )) (* elb.DetachLoadBalancerFromSubnetsOutput , error ) {
558+ func (e * FakeELB ) DetachLoadBalancerFromSubnets (ctx context.Context , input * elb.DetachLoadBalancerFromSubnetsInput , opts ... func (* elb.Options )) (* elb.DetachLoadBalancerFromSubnetsOutput , error ) {
558559 panic ("Not implemented" )
559560}
560561
561562// AttachLoadBalancerToSubnets is not implemented but is required for interface
562563// conformance
563- func (elb * FakeELB ) AttachLoadBalancerToSubnets (ctx context.Context , input * elb.AttachLoadBalancerToSubnetsInput , opts ... func (* elb.Options )) (* elb.AttachLoadBalancerToSubnetsOutput , error ) {
564+ func (e * FakeELB ) AttachLoadBalancerToSubnets (ctx context.Context , input * elb.AttachLoadBalancerToSubnetsInput , opts ... func (* elb.Options )) (* elb.AttachLoadBalancerToSubnetsOutput , error ) {
564565 panic ("Not implemented" )
565566}
566567
567568// CreateLoadBalancerListeners is not implemented but is required for interface
568569// conformance
569- func (elb * FakeELB ) CreateLoadBalancerListeners (ctx context.Context , input * elb.CreateLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerListenersOutput , error ) {
570+ func (e * FakeELB ) CreateLoadBalancerListeners (ctx context.Context , input * elb.CreateLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerListenersOutput , error ) {
570571 panic ("Not implemented" )
571572}
572573
573574// DeleteLoadBalancerListeners is not implemented but is required for interface
574575// conformance
575- func (elb * FakeELB ) DeleteLoadBalancerListeners (ctx context.Context , input * elb.DeleteLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerListenersOutput , error ) {
576+ func (e * FakeELB ) DeleteLoadBalancerListeners (ctx context.Context , input * elb.DeleteLoadBalancerListenersInput , opts ... func (* elb.Options )) (* elb.DeleteLoadBalancerListenersOutput , error ) {
576577 panic ("Not implemented" )
577578}
578579
579580// ApplySecurityGroupsToLoadBalancer is not implemented but is required for
580581// interface conformance
581- func (elb * FakeELB ) ApplySecurityGroupsToLoadBalancer (ctx context.Context , input * elb.ApplySecurityGroupsToLoadBalancerInput , opts ... func (* elb.Options )) (* elb.ApplySecurityGroupsToLoadBalancerOutput , error ) {
582+ func (e * FakeELB ) ApplySecurityGroupsToLoadBalancer (ctx context.Context , input * elb.ApplySecurityGroupsToLoadBalancerInput , opts ... func (* elb.Options )) (* elb.ApplySecurityGroupsToLoadBalancerOutput , error ) {
582583 panic ("Not implemented" )
583584}
584585
585586// ConfigureHealthCheck is not implemented but is required for interface
586587// conformance
587- func (elb * FakeELB ) ConfigureHealthCheck (ctx context.Context , input * elb.ConfigureHealthCheckInput , opts ... func (* elb.Options )) (* elb.ConfigureHealthCheckOutput , error ) {
588+ func (e * FakeELB ) ConfigureHealthCheck (ctx context.Context , input * elb.ConfigureHealthCheckInput , opts ... func (* elb.Options )) (* elb.ConfigureHealthCheckOutput , error ) {
588589 panic ("Not implemented" )
589590}
590591
591592// CreateLoadBalancerPolicy is not implemented but is required for interface
592593// conformance
593- func (elb * FakeELB ) CreateLoadBalancerPolicy (ctx context.Context , input * elb.CreateLoadBalancerPolicyInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerPolicyOutput , error ) {
594- panic ( "Not implemented" )
594+ func (e * FakeELB ) CreateLoadBalancerPolicy (ctx context.Context , input * elb.CreateLoadBalancerPolicyInput , opts ... func (* elb.Options )) (* elb.CreateLoadBalancerPolicyOutput , error ) {
595+ return & elb. CreateLoadBalancerPolicyOutput {}, nil
595596}
596597
597598// SetLoadBalancerPoliciesForBackendServer is not implemented but is required
598599// for interface conformance
599- func (elb * FakeELB ) SetLoadBalancerPoliciesForBackendServer (ctx context.Context , input * elb.SetLoadBalancerPoliciesForBackendServerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesForBackendServerOutput , error ) {
600+ func (e * FakeELB ) SetLoadBalancerPoliciesForBackendServer (ctx context.Context , input * elb.SetLoadBalancerPoliciesForBackendServerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesForBackendServerOutput , error ) {
600601 panic ("Not implemented" )
601602}
602603
603604// SetLoadBalancerPoliciesOfListener is not implemented but is required for
604605// interface conformance
605- func (elb * FakeELB ) SetLoadBalancerPoliciesOfListener (ctx context.Context , input * elb.SetLoadBalancerPoliciesOfListenerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesOfListenerOutput , error ) {
606+ func (e * FakeELB ) SetLoadBalancerPoliciesOfListener (ctx context.Context , input * elb.SetLoadBalancerPoliciesOfListenerInput , opts ... func (* elb.Options )) (* elb.SetLoadBalancerPoliciesOfListenerOutput , error ) {
606607 panic ("Not implemented" )
607608}
608609
609610// DescribeLoadBalancerPolicies is not implemented but is required for
610611// interface conformance
611- func (elb * FakeELB ) DescribeLoadBalancerPolicies (ctx context.Context , input * elb.DescribeLoadBalancerPoliciesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerPoliciesOutput , error ) {
612- panic ("Not implemented" )
612+ func (e * FakeELB ) DescribeLoadBalancerPolicies (ctx context.Context , input * elb.DescribeLoadBalancerPoliciesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerPoliciesOutput , error ) {
613+ if aws .ToString (input .LoadBalancerName ) == "" {
614+ return nil , & elbtypes.LoadBalancerAttributeNotFoundException {}
615+ }
616+ if len (input .PolicyNames ) == 0 || input .PolicyNames [0 ] == "k8s-SSLNegotiationPolicy-" {
617+ return nil , & elbtypes.PolicyNotFoundException {}
618+ }
619+ return & elb.DescribeLoadBalancerPoliciesOutput {}, nil
613620}
614621
615622// DescribeLoadBalancerAttributes is not implemented but is required for
616623// interface conformance
617- func (elb * FakeELB ) DescribeLoadBalancerAttributes (ctx context.Context , input * elb.DescribeLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerAttributesOutput , error ) {
624+ func (e * FakeELB ) DescribeLoadBalancerAttributes (ctx context.Context , input * elb.DescribeLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.DescribeLoadBalancerAttributesOutput , error ) {
618625 panic ("Not implemented" )
619626}
620627
621628// ModifyLoadBalancerAttributes is not implemented but is required for
622629// interface conformance
623- func (elb * FakeELB ) ModifyLoadBalancerAttributes (ctx context.Context , input * elb.ModifyLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.ModifyLoadBalancerAttributesOutput , error ) {
630+ func (e * FakeELB ) ModifyLoadBalancerAttributes (ctx context.Context , input * elb.ModifyLoadBalancerAttributesInput , opts ... func (* elb.Options )) (* elb.ModifyLoadBalancerAttributesOutput , error ) {
624631 panic ("Not implemented" )
625632}
626633
0 commit comments