bridge

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package bridge 는 관측 모듈이 다른 모듈의 것을 읽는 자리다. 다른 모듈의 타입은 여기서만 만지고, 관측 모듈 안으로는 관측 도메인 타입으로 옮겨 넣는다(백업 모듈의 bridge 와 같은 방식).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSecuritySource

type AppSecuritySource struct {
	// contains filtered or unexported fields
}

AppSecuritySource 는 port.AppSecuritySource 다.

func NewAppSecuritySource

func NewAppSecuritySource(pipelines PipelineSecurityLister) *AppSecuritySource

NewAppSecuritySource 는 앱 축 입력을 만든다.

func (*AppSecuritySource) ListAppSecurity

func (s *AppSecuritySource) ListAppSecurity(ctx context.Context, orgID string) ([]domain.AppSecurityRecord, bool, error)

ListAppSecurity 는 조직 파이프라인의 단계별 최신 보안 결과를 앱 입력으로 옮긴다.

type CompletedStackLister

type CompletedStackLister interface {
	ListCompleted(ctx context.Context) ([]*stackdomain.Stack, error)
}

CompletedStackLister 는 모든 조직의 설치 완료 스택이다(스택 모듈의 Postgres 저장소).

type MonitoredStacks

type MonitoredStacks struct {
	// contains filtered or unexported fields
}

MonitoredStacks 는 port.MonitoredStackLister 다.

func NewMonitoredStacks

func NewMonitoredStacks(stacks CompletedStackLister) *MonitoredStacks

func (*MonitoredStacks) ListMonitoredStacks

func (m *MonitoredStacks) ListMonitoredStacks(ctx context.Context) ([]domain.MonitoredStack, error)

ListMonitoredStacks 는 모니터링 수집(Prometheus)을 고른 완료 스택이다 — Alertmanager 는 그 차트 (kube-prometheus-stack)에 함께 선다. 수집을 고르지 않은 스택에는 경보를 낼 것이 없다.

type OrgClusterLister

type OrgClusterLister interface {
	List(ctx context.Context, orgID string) ([]*admindomain.Cluster, error)
}

OrgClusterLister 는 admin 모듈의 클러스터 목록 창구다(port.ClusterRepository 의 List).

type OrgStackImageReporter

type OrgStackImageReporter interface {
	ReportsForOrg(ctx context.Context, orgID string) ([]stackdomain.OrgStackImageScan, error)
}

OrgStackImageReporter 는 stack 모듈의 공개 경로다(usecase.ScanStackImages.ReportsForOrg).

type OrgStackLister

type OrgStackLister interface {
	List(ctx context.Context, orgID string, includeDeleted bool) ([]*stackdomain.Stack, error)
}

OrgStackLister 는 stack 모듈의 스택 목록 창구다(port.StackRepository 의 List).

type PipelineSecurityLister

type PipelineSecurityLister interface {
	Execute(ctx context.Context, orgID string) (*cicddomain.PipelineSecurityList, error)
}

PipelineSecurityLister 는 cicd 모듈의 공개 경로다(usecase.ListPipelineSecurity).

type SecurityScope

type SecurityScope struct {
	// contains filtered or unexported fields
}

SecurityScope 는 port.ScopeResolver 다.

func NewSecurityScope

func NewSecurityScope(stacks OrgStackLister, clusters OrgClusterLister) *SecurityScope

NewSecurityScope 는 범위 필터 · 묶음 머리의 이름 조회를 만든다.

func (*SecurityScope) ClusterNames

func (s *SecurityScope) ClusterNames(ctx context.Context, orgID string) (map[string]string, error)

ClusterNames 는 조직 클러스터의 ID → 이름이다.

func (*SecurityScope) ListStacks

func (s *SecurityScope) ListStacks(ctx context.Context, orgID string) ([]domain.SecurityStackRef, error)

ListStacks 는 조직의 지우지 않은 스택이다.

type StackSecuritySource

type StackSecuritySource struct {
	// contains filtered or unexported fields
}

StackSecuritySource 는 port.StackSecuritySource 다.

func NewStackSecuritySource

func NewStackSecuritySource(reports OrgStackImageReporter) *StackSecuritySource

NewStackSecuritySource 는 설치 OSS 축 입력을 만든다.

func (*StackSecuritySource) ListStackImageSecurity

func (s *StackSecuritySource) ListStackImageSecurity(ctx context.Context, orgID string) ([]domain.StackImageInput, error)

ListStackImageSecurity 는 조직 스택의 설치 이미지 보고서를 옮긴다.

Jump to

Keyboard shortcuts

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