envinternal

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func MapNotFound(err error, deployment, env string) error

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

func ValidateTarget(outputFormat, deployment, env string) error

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.

Jump to

Keyboard shortcuts

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