Skip to content

Commit

Permalink
fix type for ACL argument values
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4c6565 committed Sep 20, 2022
1 parent 6f719ba commit 0ee12cf
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions pkg/service/loadbalancer/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ type ACL struct {

// ACLArgument represents an ACL condition/action argument
type ACLArgument struct {
Name string `json:"name"`
Value string `json:"value"`
Name string `json:"name"`
Value interface{} `json:"value"`
}

// ACLCondition represents an ACL condition
Expand All @@ -257,29 +257,22 @@ type ACLTemplates struct {
}

type ACLTemplateCondition struct {
Name string `json:"name"`
FriendlyName string `json:"friendly_name"`
Description string `json:"description"`
Arguments []ACLTemplateConditionArgument `json:"arguments"`
}

type ACLTemplateConditionArgument struct {
Name string `json:"name"`
Description string `json:"description"`
Example string `json:"example"`
Values []string `json:"values"`
Name string `json:"name"`
FriendlyName string `json:"friendly_name"`
Description string `json:"description"`
Arguments []ACLTemplateArgument `json:"arguments"`
}

type ACLTemplateAction struct {
Name string `json:"name"`
FriendlyName string `json:"friendly_name"`
Description string `json:"description"`
Arguments []ACLTemplateActionArgument `json:"arguments"`
Name string `json:"name"`
FriendlyName string `json:"friendly_name"`
Description string `json:"description"`
Arguments []ACLTemplateArgument `json:"arguments"`
}

type ACLTemplateActionArgument struct {
Name string `json:"name"`
Description string `json:"description"`
Example string `json:"example"`
Values []string `json:"values"`
type ACLTemplateArgument struct {
Name string `json:"name"`
Description string `json:"description"`
Example interface{} `json:"example"`
Values []string `json:"values"`
}

0 comments on commit 0ee12cf

Please sign in to comment.