service_diff

package
v1.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 2, 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 DiffOut

type DiffOut struct {
	Routers   []*RouterDiffOut   `json:"routers"`
	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 RouterDiffOut

type RouterDiffOut struct {
	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 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