Documentation
¶
Overview ¶
Package clioutput defines the JSON output envelope for cluster-facing seictl subcommands and the exit-code / category enums that are part of the public CLI contract. The envelope mirrors Kubernetes `metav1.TypeMeta` (apiVersion + kind).
Index ¶
Constants ¶
View Source
const ( KindContextResult = "ContextResult" KindBenchUpResult = "BenchUpResult" KindBenchDownResult = "BenchDownResult" KindBenchListResult = "BenchListResult" KindChainUpResult = "ChainUpResult" KindChainDownResult = "ChainDownResult" KindRPCUpResult = "RPCUpResult" KindRPCDownResult = "RPCDownResult" KindOnboardResult = "OnboardResult" )
Kinds emitted by cluster-facing verbs. New verbs add a constant here rather than open-coding the string at the call site.
View Source
const ( ExitSuccess = 0 ExitUsage = 2 ExitNotFound = 3 ExitCluster = 4 ExitRBAC = 5 ExitBench = 10 ExitOnboard = 20 ExitIdentity = 40 )
View Source
const ( CatImagePolicy = "image-policy" CatImageResolution = "image-resolution" CatValidation = "validation" CatNamespacePolicy = "namespace-policy" CatApplyFailed = "apply-failed" CatNameCollision = "name-collision" CatFinalizerStuck = "finalizer-stuck" CatTemplateRender = "template-render" CatJobImmutable = "job-immutable" CatAliasInvalid = "alias-invalid" CatPlatformRepoMissing = "platform-repo-missing" CatWorkingTreeDirty = "working-tree-dirty" CatGHUnauthenticated = "gh-unauthenticated" CatPRCreateFailed = "pr-create-failed" CatAWSCreateFailed = "aws-create-failed" CatBaseBranchStale = "base-branch-stale" CatWrongAccount = "wrong-account" CatMalformed = "malformed" CatMissing = "missing" CatKubeconfigParse = "kubeconfig-parse" CatPermsLoose = "perms-loose" )
View Source
const APIVersion = "seictl.sei.io/v1"
APIVersion is the stable group/version string emitted on every envelope. Breaking changes ship as `seictl.sei.io/v2` alongside v1, not as mutations to v1.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Envelope ¶
type Envelope struct {
APIVersion string `json:"apiVersion"`
Kind string `json:"kind"`
Data json.RawMessage `json:"data,omitempty"`
Error *ErrorBody `json:"error,omitempty"`
}
type Error ¶
Error is the CLI-side typed failure. Carries enough to populate ErrorBody and choose the process exit code. Implements error.
func (*Error) WithDetail ¶
Click to show internal directories.
Click to hide internal directories.