Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffOut ¶
type DiffOut struct {
Routers []*RouterDiffOut `json:"routers"`
Upstreams []*UpstreamDiffOut `json:"upstreams"`
Strategies []*StrategyDiffOut `json:"strategies"`
}
type IServiceDiffModule ¶
type IServiceDiffModule interface {
Diff(ctx context.Context, serviceId string, baseRelease, targetRelease string) (*service_diff.Diff, error)
DiffForLatest(ctx context.Context, serviceId string, baseRelease string) (*service_diff.Diff, bool, error)
Out(ctx context.Context, diff *service_diff.Diff) (*DiffOut, error)
}
type RouterDiffOut ¶
type RouterDiffOut struct {
Name string `json:"name,omitempty"`
Methods []string `json:"methods,omitempty"`
Protocols []string `json:"protocols,omitempty"`
Path string `json:"path,omitempty"`
Description string `json:"description"`
Change service_diff.ChangeType `json:"change,omitempty"`
Status service_diff.Status `json:"status,omitempty"`
Disable bool `json:"disable,omitempty"`
}
type StrategyDiffOut ¶
type StrategyDiffOut struct {
Name string `json:"name"`
Priority int `json:"priority"`
Change service_diff.ChangeType `json:"change,omitempty"`
Status service_diff.StatusType `json:"status,omitempty"`
}
type UpstreamDiffOut ¶
type UpstreamDiffOut struct {
Change service_diff.ChangeType `json:"change,omitempty"`
Status service_diff.StatusType `json:"status,omitempty"`
Type string `json:"type,omitempty"`
Addr []string `json:"addr,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.