Skip to content

Commit

Permalink
[build][chore] enhance loadbalancer group api
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed Oct 13, 2024
1 parent db53c52 commit 5dff78e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions vngcloud/entity/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ func (s *LoadBalancer) GetId() string {
return s.UUID
}

func (S *LoadBalancer) GetName() string {
return s.Name
}

func (s *LoadBalancer) GetAddress() string {
return s.Address
}
Expand Down
7 changes: 4 additions & 3 deletions vngcloud/services/loadbalancer/v2/loadbalancer_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
const (
InternalLoadBalancerScheme LoadBalancerScheme = "Internal"
InternetLoadBalancerScheme LoadBalancerScheme = "Internet"
InterVpcLoadBalancerScheme LoadBalancerScheme = "InterVPC"
)

const (
Expand All @@ -24,9 +25,9 @@ type (

func NewCreateLoadBalancerRequest(pname string) ICreateLoadBalancerRequest {
return &CreateLoadBalancerRequest{
Name: pname,
Scheme: InternetLoadBalancerScheme,
Type: LoadBalancerTypeLayer4,
Name: pname,
Scheme: InternetLoadBalancerScheme,
Type: LoadBalancerTypeLayer4,
}
}

Expand Down

0 comments on commit 5dff78e

Please sign in to comment.