Skip to content

Commit

Permalink
Modify consts to public for using in switch-case
Browse files Browse the repository at this point in the history
Signed-off-by: t-kikuc <[email protected]>
  • Loading branch information
t-kikuc committed Nov 27, 2023
1 parent 88b0afe commit 197507e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/config/application_ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
)

const (
accessTypeELB string = "ELB"
accessTypeServiveDiscovery string = "SERVICE_DISCOVERY"
AccessTypeELB string = "ELB"
AccessTypeServiveDiscovery string = "SERVICE_DISCOVERY"
)

// ECSApplicationSpec represents an application configuration for ECS application.
Expand Down Expand Up @@ -81,7 +81,7 @@ func (in *ECSDeploymentInput) IsStandaloneTask() bool {
}

func (in *ECSDeploymentInput) IsAccessedViaELB() bool {
return in.AccessType == accessTypeELB
return in.AccessType == AccessTypeELB
}

type ECSVpcConfiguration struct {
Expand Down Expand Up @@ -145,7 +145,7 @@ func (opts ECSTrafficRoutingStageOptions) Percentage() (primary, canary int) {

func (in *ECSDeploymentInput) validateAccessType() error {
switch in.AccessType {
case accessTypeELB, accessTypeServiveDiscovery:
case AccessTypeELB, AccessTypeServiveDiscovery:
return nil
default:
return fmt.Errorf("invalid accessType: %s", in.AccessType)
Expand Down

0 comments on commit 197507e

Please sign in to comment.