MCPcopy
hub / github.com/kubepug/kubepug / Deprecator

Interface Deprecator

pkg/kubepug/deprecator.go:9–11  ·  view source on GitHub ↗

Deprecator implements an interface for reading some sort of Input and comparing against the map of Kubernetes APIs to check if there's some Deprecated or Deleted

Source from the content-addressed store, hash-verified

7// Deprecator implements an interface for reading some sort of Input and comparing against the
8// map of Kubernetes APIs to check if there's some Deprecated or Deleted
9type Deprecator interface {
10 GetDeprecations() (deprecated []results.ResultItem, deleted []results.ResultItem, err error)
11}
12
13// GetDeprecations returns the results of the comparison between the Input and the APIs
14func GetDeprecations(d Deprecator) (result results.Result, err error) {

Callers 2

TestNewMockStoreFunction · 0.65
GetDeprecationsFunction · 0.65

Implementers 3

Storepkg/store/mock/mock.go
K8sInputpkg/kubepug/input/k8s/k8sinput.go
FileInputpkg/kubepug/input/file/fileinput.go

Calls

no outgoing calls

Tested by

no test coverage detected