model

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLEntry added in v0.5.0

type ACLEntry struct {
	ID         uuid.UUID
	UserID     uuid.UUID
	ModuleName string // "*" for all modules
	Permission Permission
	CreatedAt  time.Time
}

type DependencyDriftRecommendation added in v0.6.2

type DependencyDriftRecommendation string

DependencyDriftRecommendation describes the suggested action for dependency updates.

const (
	DependencyDriftRecommendationSuggestUpdate DependencyDriftRecommendation = "suggest_update"
	DependencyDriftRecommendationAlertReview   DependencyDriftRecommendation = "alert_review"
)

type DependencyDriftStatus added in v0.6.2

type DependencyDriftStatus struct {
	DependencyName string
	CurrentTag     string
	TargetTag      string
	Severity       DriftSeverity
	Recommendation DependencyDriftRecommendation
}

DependencyDriftStatus describes drift status for a dependency update candidate.

type DriftDetectionResult added in v0.6.0

type DriftDetectionResult struct {
	TagID    string
	ModuleID string
	Added    []DriftEvent
	Modified []DriftEvent
	Deleted  []DriftEvent
}

DriftDetectionResult holds the results of drift detection for a tag

func (*DriftDetectionResult) HasDrift added in v0.6.0

func (r *DriftDetectionResult) HasDrift() bool

HasDrift returns true if any drift was detected

func (*DriftDetectionResult) TotalChanges added in v0.6.0

func (r *DriftDetectionResult) TotalChanges() int

TotalChanges returns the total number of changes detected

type DriftEvent added in v0.6.0

type DriftEvent struct {
	ID             string
	ModuleID       string
	ModuleName     string
	TagID          string
	TagName        string
	Filename       string
	EventType      DriftEventType
	PreviousHash   string
	CurrentHash    string
	Severity       DriftSeverity
	DetectedAt     time.Time
	Acknowledged   bool
	AcknowledgedAt *time.Time
	AcknowledgedBy string
}

DriftEvent represents a detected change in a proto file

type DriftEventType added in v0.6.0

type DriftEventType string

DriftEventType represents the type of drift event

const (
	DriftEventTypeAdded    DriftEventType = "added"
	DriftEventTypeModified DriftEventType = "modified"
	DriftEventTypeDeleted  DriftEventType = "deleted"
)

type DriftSeverity added in v0.6.0

type DriftSeverity string

DriftSeverity represents the severity level of a drift event

const (
	DriftSeverityInfo     DriftSeverity = "info"
	DriftSeverityWarning  DriftSeverity = "warning"
	DriftSeverityCritical DriftSeverity = "critical"
)

type FileMeta

type FileMeta struct {
	Filename    string
	Packages    []string
	Imports     []string
	RefPackages []string
}

type ParsedProtoFile

type ParsedProtoFile struct {
	Filename  string
	Proto     *unordered.Proto
	ProtoJson string
}

type Permission added in v0.5.0

type Permission string
const (
	PermissionRead  Permission = "read"
	PermissionWrite Permission = "write"
	PermissionAdmin Permission = "admin"
)

type ProtoFileHash added in v0.6.0

type ProtoFileHash struct {
	ID          string
	TagID       string
	Filename    string
	ContentHash string
}

ProtoFileHash represents a proto file with its content hash

type TagMeta

type TagMeta struct {
	Packages    []string
	Imports     []string
	RefPackages []string
	FilesMeta   []*FileMeta
}

type User added in v0.5.0

type User struct {
	ID        uuid.UUID
	Name      string
	Token     string
	Type      UserType
	IsActive  bool
	CreatedAt time.Time
	UpdatedAt time.Time
}

type UserType added in v0.5.0

type UserType string
const (
	UserTypeUser UserType = "user"
	UserTypeBot  UserType = "bot"
)

Jump to

Keyboard shortcuts

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