Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListPolicyResponse ¶
type ListPolicyResponse struct {
Items []PolicyResponse `json:"items"`
Page int `json:"page"`
Size int `json:"size"`
Total int `json:"total"`
}
type PolicyResponse ¶
type PolicyResponse struct {
ID ids.PolicyID `json:"id"`
GatewayID ids.GatewayID `json:"gateway_id"`
ConsumerIDs []ids.ConsumerID `json:"consumer_ids,omitempty"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
Slug string `json:"slug"`
Enabled bool `json:"enabled"`
Global bool `json:"global"`
Priority int `json:"priority"`
Parallel bool `json:"parallel,omitempty"`
Settings map[string]any `json:"settings,omitempty"`
Stages []string `json:"stages,omitempty"`
Mode string `json:"mode"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
func FromPolicy ¶
func FromPolicy(p *domain.Policy) PolicyResponse
Click to show internal directories.
Click to hide internal directories.