validations

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: UPL-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIGPresent

func IsIGPresent(resolver references.Resolver, ctx context.Context, resource *servicemeshapi.ResourceRef, objectMeta *metav1.ObjectMeta) (bool, string)

func IsMeshPresent

func IsMeshPresent(resolver references.Resolver, ctx context.Context, resource *servicemeshapi.ResourceRef, objectMeta *metav1.ObjectMeta) (bool, string)

func IsMetadataNameValid

func IsMetadataNameValid(name string) (bool, string)

func IsRefEmpty

func IsRefEmpty(resourceRef *servicemeshapi.ResourceRef, id api.OCID) bool

func IsRefNotUnique

func IsRefNotUnique(resourceRef *servicemeshapi.ResourceRef, id api.OCID) bool

func IsServicePresent

func IsServicePresent(resolver references.Resolver, ctx context.Context, resource *servicemeshapi.ResourceRef, objectMeta *metav1.ObjectMeta) (bool, string)

func IsSpecNameChanged

func IsSpecNameChanged(name *servicemeshapi.Name, oldName *servicemeshapi.Name) bool

func IsVDPresent

func IsVDPresent(resolver references.Resolver, ctx context.Context, resource *servicemeshapi.ResourceRef, objectMeta *metav1.ObjectMeta) (bool, string)

func IsVSPresent

func IsVSPresent(resolver references.Resolver, ctx context.Context, resource *servicemeshapi.ResourceRef, objectMeta *metav1.ObjectMeta) (bool, string)

func ValidateIGRef

func ValidateIGRef(destination *servicemeshapi.RefOrId) error

func ValidateMeshRef

func ValidateMeshRef(mesh *servicemeshapi.RefOrId) error

func ValidateVDRef

func ValidateVDRef(destination *servicemeshapi.RefOrId) error

func ValidateVSRef

func ValidateVSRef(destination *servicemeshapi.RefOrId) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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