Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TransformFileExtension is the extension for transformation starlark scripts
TransformFileExtension = "star"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicQuestionFnT ¶
type DynamicQuestionFnT = func(question interface{}) (answer interface{}, err error)
DynamicQuestionFnT is provided the questions that must be answered while the script is running
type KindsAPIVersionsT ¶
KindsAPIVersionsT is a map from kind to a list apiVersions used for filtering k8s resources
type StaticQuestionFnT ¶
type StaticQuestionFnT = func(question interface{}) error
StaticQuestionFnT is provided the questions that must be answered before running the script
type TransformT ¶
type TransformT interface { // Transform applies the transformation on the given k8s resource // The k8s resource is changed in place, so the returned resource // could be the same object as the input resource. Transform(k8sResource K8sResourceT) (K8sResourceT, error) // Filter returns true if the transformation can be applied to the given k8s resource Filter(k8sResource K8sResourceT) (bool, error) }
TransformT is a transformation that can be applied to k8s resources
Click to show internal directories.
Click to hide internal directories.