Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiDiffOut ¶
type ApiDiffOut struct {
Api auto.Label `json:"api,omitempty" aolabel:"api"`
Name string `json:"name,omitempty"`
Method string `json:"method,omitempty"`
Path string `json:"path,omitempty"`
//Upstream auto.Label `json:"upstream,omitempty" aolabel:"upstream"`
Change service_diff.ChangeType `json:"change,omitempty"`
Status service_diff.Status `json:"status,omitempty"`
}
type DiffOut ¶
type DiffOut struct {
Apis []*ApiDiffOut `json:"apis"`
Upstreams []*UpstreamDiffOut `json:"upstreams"`
}
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 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.