Documentation
¶
Overview ¶
Package toolhealth derives live OSS health for the platform dashboard from the pods the installed stacks are actually running.
무엇이 설치되었는지는 스택 모듈의 공개 도메인(domain.InstalledToolWorkloads)에 물어본다. 목록을 여기서 다시 적으면 스택 상세 화면과 대시보드가 서로 다른 답을 하게 된다 — 실제로 Harbor/Nexus 가 그렇게 누락된 적이 있다.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeconfigProvider ¶
type KubeconfigProvider interface {
GetKubeconfig(ctx context.Context, clusterID string) ([]byte, error)
}
KubeconfigProvider returns the decrypted kubeconfig bytes for a cluster.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implements port.ToolHealthRepository against live cluster state.
func New ¶
func New(stacks StackLister, kubeconfig KubeconfigProvider) *Reader
New constructs a Reader.
func (*Reader) ListToolHealth ¶
ListToolHealth reports one row per distinct OSS across every completed stack.
type StackLister ¶
type StackLister interface {
List(ctx context.Context, orgID string, includeDeleted bool) ([]*stackdomain.Stack, error)
}
StackLister is the slice of the stack repository this reader needs.
Click to show internal directories.
Click to hide internal directories.