Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
feat: add AccessControl fields
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Yang <reaver@flomesh.io>
  • Loading branch information
reaver-flomesh committed Jul 9, 2023
1 parent 21657b4 commit 75589d7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pkg/gateway/route/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,17 @@ type Defaults struct {
}

type Listener struct {
Protocol gwv1beta1.ProtocolType `json:"Protocol"`
Port gwv1beta1.PortNumber `json:"Port"`
Listen gwv1beta1.PortNumber
TLS *TLS `json:"TLS,omitempty"`
Protocol gwv1beta1.ProtocolType `json:"Protocol"`
Port gwv1beta1.PortNumber `json:"Port"`
Listen gwv1beta1.PortNumber `json:"Listen"`
TLS *TLS `json:"TLS,omitempty"`
AccessControlLists *AccessControlLists `json:"AccessControlLists,omitempty"`
BpsLimit *int64 `json:"bpsLimit,omitempty"`
}

type AccessControlLists struct {
Blacklist []string `json:"blacklist,omitempty"`
Whitelist []string `json:"whitelist,omitempty"`
}

type TLS struct {
Expand Down

0 comments on commit 75589d7

Please sign in to comment.