Documentation
¶
Overview ¶
Package engine is the decision core behind `kcp report plan`: it turns a source cluster's migration-relevant facts into the target recommendations (size band, cluster type, networking, auth, switchover, and the human-assist handoffs).
Contract: every exported decision takes a plain Profile value (never kcp state, never global state) and returns a plain verdict value. No I/O, no mutation of the input — Profile in, verdicts out. That purity is what lets the outer plan package feed the engine from scanned state, plan-inputs.yaml, and defaults interchangeably, and what makes the decision logic exhaustively testable in isolation.
Sizing is capacity-based: every band edge is a published Confluent capacity ceiling (read off the tier tables and the eCKU caps), never a price. Cost does not reach the engine in any form.
Index ¶
- Constants
- func AsksConnectsToday(p Profile) bool
- func Band(p Profile) int
- func ClCutoverStepsMarkdown(style string, jump bool, syncCmd, syncDoc, firstHopCmd, firstHopDoc string) string
- func ClusterLinkingFloor(t SourceType) string
- func EnterpriseLimitsQuestion() string
- func HasBackfillableHistory(p Profile) bool
- func IsAllAtOnceStyle(style string) bool
- func IsJumpClusterType(t int) bool
- func IsMSK(p Profile) bool
- func IsOSKorCP(p Profile) bool
- func IsOnPremSource(p Profile) bool
- func IsServerless(p Profile) bool
- func MetricsScanCommand(p Profile) string
- func RequiresPrivate(p Profile) bool
- func StandardLimitsQuestion() string
- func TargetCloudOf(p Profile) string
- func WillBePrivate(p Profile) bool
- type Alternative
- type AuthResult
- type ClusterTypeResult
- type ConnectorsKind
- type ConnectorsResult
- type CredHandling
- type HistoricalResult
- type HumanAssistResult
- type KCPResource
- type MigrationInfraChoice
- type Mismatch
- type NetworkingResult
- type PartitionsDim
- type PlanResult
- type Profile
- type SchemaKind
- type SchemaResult
- type SizingResult
- type SizingShape
- type SizingSignal
- type SizingVerdict
- type SourceType
- type SwitchoverResult
- type Tier
- type TopicsResult
- type Trigger
Constants ¶
const ( MSKProvisioned = "Provisioned" MSKServerless = "Serverless" )
MSK source cluster types.
const BandXL = bandXL
BandXL is the top band, above the Enterprise cap (a handoff).
const GatewayAnonymousACLSentence = "" /* 161-byte string literal not displayed */
GatewayAnonymousACLSentence is the access note for the one key the Gateway maps plaintext clients to.
const MigrationLinkStepRef = "the migration-link step below"
MigrationLinkStepRef is how a source-credentials note refers to the migration-link step, which follows it. plan.md swaps it for the step's number.
const OffsetSyncFiltersExample = `{"groupFilters":[{"name":"<consumer-group>","patternType":"LITERAL","filterType":"INCLUDE"}]}`
OffsetSyncFiltersExample is the shape of the consumer.offset.group.filters value, which is JSON, so the plan's example commands pass both offset-sync properties from a file.
SharedTierMaxBand is the highest band a shared tier can serve.
Variables ¶
This section is empty.
Functions ¶
func AsksConnectsToday ¶
AsksConnectsToday reports whether the connects_today question is asked.
func ClCutoverStepsMarkdown ¶
func ClCutoverStepsMarkdown(style string, jump bool, syncCmd, syncDoc, firstHopCmd, firstHopDoc string) string
ClCutoverStepsMarkdown is the plan.md form of clCutoverSteps: it names the commands that turn on offset sync, with their docs links. A jump-cluster plan has two links, so it gets one command per hop (firstHop is the MSK-to-jump link, syncCmd the link to Confluent Cloud). Both commands read the two offset-sync properties from a file.
func ClusterLinkingFloor ¶
func ClusterLinkingFloor(t SourceType) string
ClusterLinkingFloor names the Cluster Linking version floor that applies to a source type: Kafka 2.4 for MSK and Apache Kafka, Confluent Platform 5.4 for Confluent Platform, and the full list when the source type is unknown.
func EnterpriseLimitsQuestion ¶
func EnterpriseLimitsQuestion() string
func HasBackfillableHistory ¶
HasBackfillableHistory reports whether there is enough retained history to make the consumer-history question and a backfill plan worth surfacing.
func IsAllAtOnceStyle ¶
IsAllAtOnceStyle reports whether a switchover CutoverStyle is the all-at-once style.
func IsJumpClusterType ¶
IsJumpClusterType reports whether a migration-infra type runs a jump cluster (types 4 and 5), which need extra provisioning inputs the direct-link types (1, 2, 3) do not. Used to render the right follow-up for an alternative type.
func IsMSK ¶
IsMSK reports whether the source is Amazon MSK (the zero-value SourceType is MSK). Used by the question layer to gate MSK-only questions.
func IsOSKorCP ¶
IsOSKorCP reports whether the source is self-managed Apache Kafka or Confluent Platform. Used by the question layer to gate the OSK/CP-only questions.
func IsOnPremSource ¶
IsOnPremSource reports whether the source runs on-premises or outside any cloud network, so cloud-network connection options (VPC peering, PrivateLink) don't apply.
func IsServerless ¶
IsServerless reports whether the source is MSK Serverless.
func MetricsScanCommand ¶
MetricsScanCommand names the runnable command that collects throughput metrics for a source, to size from real ingress/egress. Amazon MSK collects CloudWatch metrics during `kcp discover`; Apache Kafka and Confluent Platform collect them with `kcp scan clusters --metrics jolokia|prometheus` (credentials required). With no scan the source is unknown (MSK is only the default), so both are named. stateFile, when known, is passed through as given.
func RequiresPrivate ¶
RequiresPrivate reports whether the customer's networking requirement is private (public endpoints not acceptable). Unlike WillBePrivate it ignores a cross to private by size, mTLS, or a Standard breach.
func StandardLimitsQuestion ¶
func StandardLimitsQuestion() string
StandardLimitsQuestion / EnterpriseLimitsQuestion are the generated tier-ceiling questions (named from the tier tables so they cannot drift).
func TargetCloudOf ¶
TargetCloudOf resolves the destination cloud (defaults to source/AWS).
func WillBePrivate ¶
WillBePrivate reports whether the plan lands on private networking — either because the customer requires it, or because the workload crosses to Enterprise from the public-acceptable path (size, mTLS, or a declared Standard breach).
Types ¶
type Alternative ¶
type Alternative struct {
Value string `json:"value"`
Reason string `json:"reason"`
Standalone bool `json:"standalone,omitempty"`
Source string `json:"source,omitempty"`
// Replicator is the stable typed identity of a Replicator alternative, so the
// citation wiring keys on it rather than matching the display Value copy.
// Not serialized (json:"-") to keep plan.json byte-identical.
Replicator bool `json:"-"`
}
Alternative is the "also an option" shown under a switchover verdict.
type AuthResult ¶
type AuthResult struct {
Value string `json:"value"`
Pending bool `json:"pending,omitempty"` // set at JSON marshal when a deciding question is unanswered; Value is blanked
Reason string `json:"reason"`
Why string `json:"why"`
Action string `json:"action"`
Source string `json:"source,omitempty"`
}
AuthResult is the infra auth verdict: the TARGET client-auth method(s) only.
type ClusterTypeResult ¶
type ClusterTypeResult struct {
Value Tier `json:"value"`
Pending bool `json:"pending,omitempty"` // set at JSON marshal when a deciding question is unanswered; Value is blanked
Tier Tier `json:"tier"`
Dedicated bool `json:"dedicated"`
CrossedToPrivate bool `json:"crossed_to_private"`
SelfServe bool `json:"self_serve"`
Causes []cause `json:"causes,omitempty"` // customer-facing
ZoneConfig string `json:"zone_config"`
ZoneReason string `json:"zone_reason"`
Reason string `json:"reason"`
Why string `json:"why"`
AssessmentReason string `json:"assessment_reason"`
Action string `json:"action"`
Source string `json:"source,omitempty"`
}
ClusterTypeResult is the tier verdict.
type ConnectorsKind ¶
type ConnectorsKind string
ConnectorsKind is the stable typed identity of a Connectors verdict, so the renderer switches on it rather than on the display Value copy. Not serialized (json:"-") to keep plan.json byte-identical.
const ( ConnectorsKindNone ConnectorsKind = "none" ConnectorsKindNotAssessed ConnectorsKind = "not_assessed" ConnectorsKindManaged ConnectorsKind = "managed" ConnectorsKindSelfManaged ConnectorsKind = "self_managed" )
type ConnectorsResult ¶
type ConnectorsResult struct {
Value string `json:"value"`
Pending bool `json:"pending,omitempty"` // set at JSON marshal when a deciding question is unanswered; Value is blanked
Kind ConnectorsKind `json:"-"`
Reason string `json:"reason"`
Action *string `json:"action"`
Source string `json:"source,omitempty"`
}
ConnectorsResult is the connectors verdict.
type CredHandling ¶
CredHandling is one source-auth-method note: how the customer's existing credentials are handled during data movement.
type HistoricalResult ¶
type HistoricalResult struct {
Value string `json:"value"`
Pending bool `json:"pending,omitempty"` // set at JSON marshal when a deciding question is unanswered; Value is blanked
Reason string `json:"reason"`
Action *string `json:"action"`
Source string `json:"source,omitempty"`
}
HistoricalResult is the historical-data (backfill) verdict.
type HumanAssistResult ¶
type HumanAssistResult struct {
Value string `json:"value"`
Required bool `json:"required"`
Triggers []Trigger `json:"triggers,omitempty"`
Reason string `json:"reason"`
Action string `json:"action"`
Internal string `json:"-"` // commercial reasoning; kept in-process, never serialized to the contract
}
HumanAssistResult is the human-assist verdict.
type KCPResource ¶
KCPResource links the KCP-generated migration infrastructure for a Cluster Linking plan.
type MigrationInfraChoice ¶
type MigrationInfraChoice struct {
Type int `json:"type"` // 1-5, or 0 when undetermined
Label string `json:"label"`
Rationale string `json:"rationale"`
Alternative string `json:"alternative,omitempty"` // an alternative topology worth noting
AlternativeType int `json:"alternative_type,omitempty"` // the --type N of that alternative
// JumpCluster is true for types 4 and 5 (a jump cluster in the customer VPC),
// which need extra provisioning inputs the plain cluster-link types do not.
JumpCluster bool `json:"jump_cluster,omitempty"`
// SpecialistClusterLinkable applies only to a Type-0 (specialist-designed) outcome:
// true when Cluster Linking is available so the standard Cluster Linking cutover
// steps still apply and only the link's authentication is designed with a specialist
// (mTLS / undetected source auth on a supported tier); false when Cluster Linking
// isn't available at all (Confluent Cloud for Government). It lets the render pick
// the right specialist path from a typed field instead of re-deriving the product
// rule. Not serialized (a render discriminator, not part of the plan record).
SpecialistClusterLinkable bool `json:"-"`
}
MigrationInfraChoice is the migration-infrastructure topology decision: which `create-asset migration-infra --type N` fits the source's accessibility and authentication, given the target tier. Type 0 means no standard type fits and a specialist designs it. This is a pure decision (no I/O, no scan types); the plan layer renders the concrete command from it.
func MigrationInfraDecision ¶
func MigrationInfraDecision(p Profile, tier Tier) MigrationInfraChoice
MigrationInfraDecision selects the migration-infra topology from source public access, source auth, and the target tier.
The rules mirror the create-asset constraints:
- A government target has no Cluster Linking, so nothing is auto-mapped.
- A Dedicated target is a specialist-led migration, so it is not auto-mapped (a Dedicated recommendation already routes the whole plan to a specialist).
- A public source uses a direct SASL/SCRAM cluster link (type 1).
- A private (Enterprise) source is reached by an external outbound link (type 2 SASL/SCRAM, type 3 unauthenticated) or a jump cluster (type 5 for IAM, or type 4 SASL/SCRAM as a fallback).
- SASL/SCRAM is preferred over AWS IAM for the link (IAM cannot cross a link directly and needs a jump cluster).
- An AWS IAM source with no SASL/SCRAM listener gets the jump cluster even when it also uses mTLS, SASL/PLAIN, or no authentication, so the production cluster isn't changed; the per-method credential notes follow this choice.
type NetworkingResult ¶
type NetworkingResult struct {
Value string `json:"value"`
Pending bool `json:"pending,omitempty"` // set at JSON marshal when a deciding question is unanswered; Value is blanked
Reason string `json:"reason"`
Why string `json:"why,omitempty"`
How string `json:"how,omitempty"`
Action *string `json:"action"` // nil for a public endpoint — nothing of its own to set up
// HasEgressEndpoint is set when an Egress PrivateLink Endpoint is folded into the
// method (for Confluent-managed egress and/or the migration cluster link). Render
// reads it to gate the "the endpoint is added in the link step below" note; a
// typed flag rather than matching the display Value. Not serialized.
HasEgressEndpoint bool `json:"-"`
// GCPPrivateLink is set when the GCP outbound branch carries the migration cluster
// link from a private source (alone or alongside connector egress). Human assist
// reads it to raise the link handoff rather than a Dedicated cause. Not serialized.
GCPPrivateLink bool `json:"-"`
// EgressForConnectors is set when the Egress PrivateLink Endpoint was added for the
// runtime cc_egress_required need (managed connectors/consumers reaching into the
// customer network), as opposed to purely for the migration link. Render reads it so
// the migration-steps note reconciles the single endpoint with the connector
// rationale in the networking "Why" rather than justifying it two different ways.
// Not serialized.
EgressForConnectors bool `json:"-"`
ForcesDedicated bool `json:"forces_dedicated"`
ForcesDedicatedReason string `json:"forces_dedicated_reason,omitempty"`
ForcesDedicatedEncouragement string `json:"forces_dedicated_encouragement,omitempty"`
Pros []string `json:"pros,omitempty"`
Cons []string `json:"cons,omitempty"`
Fit string `json:"fit,omitempty"`
// crossed-to-private public fallback: the tier a public endpoint would need.
PublicFallback *Tier `json:"public_fallback,omitempty"`
PublicFallbackCertain bool `json:"public_fallback_certain,omitempty"`
Alternative *NetworkingResult `json:"alternative,omitempty"`
Source string `json:"source,omitempty"`
}
NetworkingResult is the connection-method verdict.
type PartitionsDim ¶
PartitionsDim is the partition readout for the UI: the raw exact value if given, else the banded label. Band is nil when no partition answer exists.
type PlanResult ¶
type PlanResult struct {
ClusterType ClusterTypeResult `json:"cluster_type"`
Sizing SizingVerdict `json:"sizing"`
Networking NetworkingResult `json:"networking"`
Auth AuthResult `json:"auth"`
Switchover SwitchoverResult `json:"switchover"`
Schema SchemaResult `json:"schema"`
Connectors ConnectorsResult `json:"connectors"`
Topics TopicsResult `json:"topics"`
HistoricalData HistoricalResult `json:"historical_data"`
HumanAssist HumanAssistResult `json:"human_assist"`
Withheld bool `json:"withheld"`
}
PlanResult is the full plan: every verdict, plus the withheld flag. When withheld is true we do not put the recommendation in front of the customer, though the verdicts are still computed (sales needs them, and the human-assist reasoning is derived from them).
func ComputePlan ¶
func ComputePlan(p Profile) PlanResult
ComputePlan is the top-level assembly: profile in, full plan out. Pure — no I/O, no mutation of the input.
func (PlanResult) MarshalJSON ¶
func (p PlanResult) MarshalJSON() ([]byte, error)
MarshalJSON hides the computed verdicts for a withheld cluster: when a plan is routed to a specialist we do not put an automated recommendation in front of the customer, in plan.json any more than in plan.md. Only the withheld flag and the human-assist reasoning (why it needs a specialist) are serialized.
type Profile ¶
type Profile struct {
// Source cluster.
SourceType SourceType // MSK (default when "") | ApacheKafka | ConfluentPlatform
SourcePlatform string // e.g. "Amazon MSK", "Apache Kafka", "Confluent Platform"
MSKClusterType string // "Provisioned" | "Serverless" | "" (MSK only)
SourcePublicAccess string // "Yes" (source exposes public broker endpoints) | "No" | "" (unknown; treated as private)
SourceCloud string
TargetCloud string // "AWS" | "Azure" | "GCP" | ""; MSK defaults to AWS
// Scanless is true for a questionnaire-only run (no --state-file). It lets the
// source-selection question render even before a source platform is chosen, so a
// scanless user can pick Apache Kafka / Confluent Platform (a scan run knows the
// source already). Same scanless signal the *Answered flags below are built from.
Scanless bool
// SourcePlatformDeclared is true when the source platform was answered rather than
// assumed. A scanless run that answered Amazon MSK gets the MSK metrics command
// instead of the both-sources one.
SourcePlatformDeclared bool
// StateFile is the --state-file path the plan was built from ("" with no scan). It
// is only used to print runnable commands (for example the metrics scan).
StateFile string
// Sizing — raw numbers (preferred; kcp fills these from scanned metrics and
// topic counts) OR banded labels (a declared/plan-inputs answer).
PartitionsExact *float64
PeakIngressMbps *float64
PeakEgressMbps *float64
PeakRequestsPerSec *float64
PartitionBand string // e.g. "2,500–30,000"
IngressBand string
EgressBand string
RequestRateBand string
// Exact secondary limits, enforced by tierFit only when a figure is given
// (no intake sets these today, but the ceilings are real).
ACLCountExact *float64
ClientConnectionsExact *float64
// Networking requirement — the public/private fork. public_endpoints_ok is
// read first; requires_private and the legacy source_accessibility remain
// supported. All default to private (MSK is private-first).
PublicEndpointsOK string // "Yes" | "No" | ""
RequiresPrivateField string // "Yes" | "No" | "" (legacy requires_private)
SourceAccessibility string // "Private" | "Public" | "" (legacy)
// Auth.
SourceAuthTypes []string // e.g. ["SASL/SCRAM"], [authMTLS]; Serverless is forced to [authAWSIAM]
TargetIdentityModel []string // multi-select; "mTLS" as a target gates the tier
// Adaptive ceiling declarations. exceeds_standard_limits is read only on
// Band 1, exceeds_enterprise_limits only on Band 2. "No"/unanswered are
// equivalent (No is the pre-selected default).
ExceedsStandardLimits string // "Yes" | "No" | ""
ExceedsEnterpriseLimits string // "Yes" | "No" | ""
// Networking — how the customer connects today, and outbound reachability.
ConnectsToday string // "Same VPC" | "Peered" | "PrivateLink" | "Other" | ""
SourceTopology string // legacy; normalised into ConnectsToday
CCEgressRequired string // "Yes" | "" — Confluent-managed connectors/consumers reach into the customer network
// Data migration — shapes the switchover mechanism (and, via a Cluster Link,
// the egress endpoint). needs_data_migration defaults to "needs data"
// (anything but an explicit "No"). any_app_needs_data_migration is the
// fleet/infra-level equivalent; "" means unset (falls back to
// needs_data_migration).
NeedsDataMigration string // "No" | "Yes" | ""
AnyAppNeedsDataMigration string // "No" | "Yes" | ""
// Source Kafka version facts — the Cluster Linking floor.
KafkaVersion string // "Older than 2.4" | "2.4–2.9" | "3.0 or newer" | ""
InterBrokerProtocol string // "No" means IBP < 2.8 (blocks CL on 2.4–2.9)
// Switchover — cutover style and its escalation inputs.
DowntimeTolerance string // a styleMap key; required with no default (holds the switchover verdict)
ClientCoordinationBurden string // "Hard (many clients and teams)" escalates to Gateway-mediated
EosStreams []string // exactly-once / Kafka Streams state that Cluster Linking can't carry
// Sizing review — which assumed dimensions the customer actually stood behind.
SizingReviewed []string // field names, e.g. "peak_ingress_mbps"
// Human assist.
UseCaseBreadth string // "Shared fabric across many apps and teams" hands off
// Schema (Block 6).
SourceSRType string // a sourceSR value
SchemaStrategy string // a schemaStrategy value
SourceSROutboundReachableToCC string // "Yes" | "No" | ""
// SourceSRDetected is the scan-detected SR kind ("glue" | "confluent" | ""),
// used only to gate which schema question is asked (decisions read SourceSRType).
SourceSRDetected string
TargetIsGovCloud string // "Yes" | "" (or set via a future bool signal)
// Connectors (Block 7). Pointers to distinguish unanswered (nil) from "No".
MSKConnectPresent *string // "Yes" | "No" | nil
SelfManagedConnectors *string // "Yes" | "No" | nil
ConnectorDestination string // "Move to Confluent-managed" | "Keep self-managed" | ""
// Topics (Block 8) & historical data (Block 9).
StorageMode *string // "Yes" (tiered) | "No" | nil
TopicRemediationFlag *string // "Yes" | "No" | nil
ConsumerHistoryRequirement string // "Required" | "Not required" | ""
// LongRetention flags history kept well beyond the default local window (long
// or infinite retention.ms), which — like tiered storage — is a real backfill
// volume even when the cluster isn't tiered. "Yes" | "No" | nil (not scanned).
LongRetention *string
// RetainedDataGB is the measured retained data (local + tiered), in GB, from
// scanned storage metrics. The direct backfill-volume signal; nil when metrics
// weren't scanned (fall back to StorageMode / LongRetention).
RetainedDataGB *float64
// Provenance of the overridable scan facts: true when the value came from a
// customer answer (an override, or a value the scan never captured) rather than
// the scan itself, so a verdict's "Based on your scan / your answer" lead reads
// correctly whichever way the value arrived.
AuthAnswered bool
TieredAnswered bool
ConnectorsAnswered bool
TopicsAnswered bool
// The same provenance signal for the remaining overridable scan facts: the
// partition count / sizing band, the Schema Registry type, the source Kafka
// version (the Cluster-Linking floor), and the source cluster type
// (provisioned vs Serverless). True when the value came from an answer rather
// than the scan — in pure scanless mode every one of these is answered.
PartitionsAnswered bool
SchemaAnswered bool
KafkaVersionAnswered bool
IBPAnswered bool
SchemaDetectedByScan bool // registry presence/kind came from the scan
SourceClusterTypeAnswered bool
}
Profile is the engine's sole input: a plain, flat description of one source cluster's migration-relevant facts. Every decision reads Profile and nothing else.
Field conventions:
- Raw numeric answers are *float64 / *int: nil means "not answered", distinct from a zero value. Use the f helper to set one.
- Categorical/enum answers are strings: "" means "not answered".
In kcp these fields are populated by buildProfile() from scanned state (raw numbers, auth, serverless), plan-inputs.yaml (declared requirements), and defaults — see the outer plan package. The struct grows one module at a time; today it carries what sizingBand reads.
type SchemaKind ¶
type SchemaKind string
SchemaKind is the stable typed identity of a Schema verdict, so the assembler (citation wiring) and renderer switch on it rather than on the display Value copy. Not serialized (json:"-") to keep plan.json byte-identical.
const ( SchemaKindPending SchemaKind = "pending" SchemaKindSchemaless SchemaKind = "schemaless" SchemaKindFresh SchemaKind = "fresh" SchemaKindLinking SchemaKind = "schema_linking" SchemaKindGlueBulk SchemaKind = "glue_bulk" SchemaKindReplicator SchemaKind = "replicator" SchemaKindSpecial SchemaKind = "special" )
type SchemaResult ¶
type SchemaResult struct {
Value string `json:"value"`
Pending bool `json:"pending,omitempty"` // set at JSON marshal when a deciding question is unanswered; Value is blanked
Kind SchemaKind `json:"-"`
Held bool `json:"held,omitempty"` // blocked on a required answer (symmetric with SwitchoverResult.Held)
Reason string `json:"reason"`
How string `json:"how,omitempty"`
Action *string `json:"action"`
Tool *string `json:"tool,omitempty"`
Pros []string `json:"pros,omitempty"`
Cons []string `json:"cons,omitempty"`
TechAssist bool `json:"tech_assist,omitempty"`
OpenQuestion string `json:"open_question,omitempty"`
Source string `json:"source,omitempty"`
}
SchemaResult is the schema-migration verdict.
type SizingResult ¶
type SizingResult struct {
Band int // 1..bandXL, most-binding dimension wins
Driver string // dim name, or "source platform" on Serverless; "" when nothing answered
Given map[dim]int // dimension -> band; key absent where assumed/unanswered
MissingPartitions bool // no sizing signal at all — a non-committable lower bound
PartitionsDim PartitionsDim // partition readout for the UI
ServerlessCapped bool // Serverless: band settled by the platform, not an answer
}
SizingResult is the verdict of sizingBand: the most-binding band, which dimension drove it, the per-dimension bands (a dim absent from Given was not answered), and the flags the plan reads downstream.
type SizingShape ¶
type SizingShape struct {
Anchor string // "partitions" or "" when the anchor was not answered
AnchorBand int
Assumed []string
Mismatch *Mismatch
}
SizingShape reports which dimensions the customer actually stood behind (vs assumed), and whether any reviewed one disagrees UPWARD with the anchor.
type SizingSignal ¶
type SizingSignal struct {
Name string `json:"name"` // short dimension label, e.g. "ingress throughput"
Value string `json:"value"` // self-describing measured value, e.g. "180 megabytes/sec ingress"
Measured bool `json:"measured"` // false when the scan didn't capture it
Answered bool `json:"answered,omitempty"` // the value came from an answer (a band) rather than a scanned measurement
Driver bool `json:"driver,omitempty"` // this dimension drove the sizing band (and any size-based specialist handoff)
}
SizingSignal is one capacity dimension the sizing read: the value it sized from, or a note that the scan didn't measure it. Shown read-only as the sizing audit trail, so a reader can see the numbers behind the tier.
type SizingVerdict ¶
type SizingVerdict struct {
Value string `json:"value"`
Pending bool `json:"pending,omitempty"` // set at JSON marshal when a deciding question is unanswered; Value is blanked
Band int `json:"band"`
PartitionsDim PartitionsDim `json:"partitions_dim"`
MissingPartitions bool `json:"missing_partitions"`
Reason string `json:"reason"`
Source string `json:"source,omitempty"`
Signals []SizingSignal `json:"signals,omitempty"` // the measured capacity signals sizing read (audit trail)
}
SizingVerdict is the plan-level sizing card (distinct from the internal SizingResult): a customer-facing value plus the band and driver reasoning.
type SourceType ¶
type SourceType string
SourceType is the source Kafka platform axis. It gates the platform-specific branches (MSK Serverless / AWS IAM / MSK Connect / AWS Glue) that only apply to an Amazon MSK source, so a self-hosted Apache Kafka or Confluent Platform source gets generic, correct wording instead. The zero value is treated as MSK, so a profile that never sets it behaves exactly as it did before this axis existed.
const ( // SourceMSK is Amazon MSK. The zero value ("") is also treated as MSK. SourceMSK SourceType = "MSK" // SourceApacheKafka is a self-managed Apache Kafka source. SourceApacheKafka SourceType = "ApacheKafka" // SourceConfluentPlatform is a self-managed Confluent Platform source. It is // behaviourally identical to Apache Kafka; the only differences are the display // name and the schema default toward Confluent Schema Registry. SourceConfluentPlatform SourceType = "ConfluentPlatform" )
type SwitchoverResult ¶
type SwitchoverResult struct {
Value string `json:"value"`
Pending bool `json:"pending,omitempty"` // set at JSON marshal when a deciding question is unanswered; Value is blanked
MM2 bool `json:"mm2"`
// Replicator and StartFresh are the stable typed identities of the two
// non–Cluster-Linking mechanisms, so the assembler, renderer, and auth logic
// key on them rather than matching the display Value copy. StartFresh is not
// serialized (json:"-") to keep plan.json byte-identical; Replicator predates
// this and stays on the JSON contract.
Replicator bool `json:"replicator,omitempty"`
StartFresh bool `json:"-"`
Held bool `json:"held,omitempty"`
Reason string `json:"reason"`
How string `json:"how,omitempty"`
Action *string `json:"action"`
Pros []string `json:"pros,omitempty"`
Cons []string `json:"cons,omitempty"`
Fit string `json:"fit,omitempty"`
Alternative *Alternative `json:"alternative,omitempty"`
TechAssist bool `json:"tech_assist,omitempty"`
GatewayMediated bool `json:"gateway_mediated,omitempty"`
// CutoverStyle is the Cluster Linking cutover style (a styleMap value) the steps
// follow. Not serialized, so plan.json stays byte-identical.
CutoverStyle string `json:"-"`
KCPResource *KCPResource `json:"kcp_resource,omitempty"`
// Attached by computePlan.
SourceCredentialHandling []CredHandling `json:"source_credential_handling,omitempty"`
Source string `json:"source,omitempty"`
}
SwitchoverResult is the data-movement verdict.
type TopicsResult ¶
type TopicsResult struct {
Value string `json:"value"`
Pending bool `json:"pending,omitempty"` // set at JSON marshal when a deciding question is unanswered; Value is blanked
Tiered bool `json:"tiered"`
Reason string `json:"reason"`
Source string `json:"source,omitempty"`
}
TopicsResult is the topic-readiness verdict.
type Trigger ¶
type Trigger struct {
ID string `json:"id"`
Why string `json:"why"`
Internal string `json:"-"` // commercial reasoning; kept in-process, never serialized to the contract
}
Trigger is one human-assist reason. Why is customer-facing (no pricing); Internal is the commercial reasoning, never rendered to the customer.