Documentation
¶
Overview ¶
Package envinternal holds what the `krci env` verbs that take <deployment> <env> share: the positionals, their validation, and the not-found messages.
Index ¶
Constants ¶
const TargetHelp = `` /* 135-byte string literal not displayed */
TargetHelp explains the two positionals in the long help of a verb.
Variables ¶
This section is empty.
Functions ¶
func MapNotFound ¶
MapNotFound rewrites the not-found sentinels of portal.EnvService into the message that names the deployment and the environment. The result still unwraps to err. Other errors pass through unchanged.
func TargetArgs ¶
func TargetArgs(verb string) cobra.PositionalArgs
TargetArgs requires the two positionals of `krci env <verb> <deployment> <env>`.
func ValidateTarget ¶
ValidateTarget checks the output format and both positionals, before any Portal call.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package envtestutil holds what the tests of the `krci env` verbs that take <deployment> <env> share: a mock portal and the checks every such verb passes.
|
Package envtestutil holds what the tests of the `krci env` verbs that take <deployment> <env> share: a mock portal and the checks every such verb passes. |