Documentation
¶
Index ¶
- func CompareObjectMeta(left metav1.ObjectMeta, right metav1.ObjectMeta) bool
- func ComposePkgObjName(repoName, path, packageName string) string
- func ComposePkgRevObjName(repoName, path, packageName, workspace string) string
- func GenerateUid(prefix string, kubeNs string, kubeName string) types.UID
- func GetInClusterNamespace() (string, error)
- func GetPRWorkspaceName(k8sName string) string
- func GetPorchApiServiceKey(ctx context.Context) (client.ObjectKey, error)
- func RetryOnError(retries int, f func(retryNumber int) error) error
- func RetryOnErrorConditional(retries int, shouldRetryFunc func(error) bool, f func(retryNumber int) error) error
- func SafeReverse[S ~[]E, E any](s S)
- func SchemaToMetaGVR(gvr schema.GroupVersionResource) metav1.GroupVersionResource
- func SplitIn3OnDelimiter(splitee, delimiter string) []string
- func ValidPkgObjName(repoName, path, packageName string) error
- func ValidPkgRevObjName(repoName, path, packageName, workspace string) error
- func ValidateDirectoryName(directory string, mandatory bool) error
- func ValidateK8SName(k8sName string) error
- func ValidateRepository(repoName, directory string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareObjectMeta ¶ added in v1.4.0
func CompareObjectMeta(left metav1.ObjectMeta, right metav1.ObjectMeta) bool
func ComposePkgObjName ¶ added in v1.4.0
func ComposePkgRevObjName ¶ added in v1.4.0
func GenerateUid ¶ added in v1.4.0
func GetInClusterNamespace ¶
func GetPRWorkspaceName ¶ added in v1.5.3
func GetPorchApiServiceKey ¶ added in v1.3.1
func RetryOnError ¶ added in v1.5.1
func RetryOnErrorConditional ¶ added in v1.4.0
func RetryOnErrorConditional(retries int, shouldRetryFunc func(error) bool, f func(retryNumber int) error) error
RetryOnErrorConditional retries f up to retries times if it returns an error that matches shouldRetryFunc
func SafeReverse ¶ added in v1.4.0
func SafeReverse[S ~[]E, E any](s S)
func SchemaToMetaGVR ¶ added in v1.3.1
func SchemaToMetaGVR(gvr schema.GroupVersionResource) metav1.GroupVersionResource
func SplitIn3OnDelimiter ¶ added in v1.5.0
func ValidPkgObjName ¶ added in v1.4.0
func ValidPkgRevObjName ¶ added in v1.4.0
func ValidateDirectoryName ¶ added in v1.4.0
func ValidateK8SName ¶ added in v1.4.0
func ValidateRepository ¶ added in v1.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.