service_diff

package
v1.0.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL