Documentation ¶
Index ¶
- func CompareSnowflakeSequenceIDs(last, current string) (bool, error)
- func Encode(work *workv1.ManifestWork) error
- func ListWorksWithOptions(store cache.Store, namespace string, opts metav1.ListOptions) ([]*workv1.ManifestWork, error)
- func Patch(patchType types.PatchType, work *workv1.ManifestWork, patchData []byte) (*workv1.ManifestWork, error)
- func UID(sourceID, namespace, name string) string
- func Validate(work *workv1.ManifestWork) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareSnowflakeSequenceIDs ¶ added in v0.15.0
CompareSnowflakeSequenceIDs compares two snowflake sequence IDs. Returns true if the current ID is greater than the last. If the last sequence ID is empty, then the current is greater.
func Encode ¶ added in v0.15.0
func Encode(work *workv1.ManifestWork) error
Encode ensures the given work's manifests are encoded
func ListWorksWithOptions ¶ added in v0.14.0
func ListWorksWithOptions(store cache.Store, namespace string, opts metav1.ListOptions) ([]*workv1.ManifestWork, error)
ListWorksWithOptions retrieves the manifestworks from store which matches the options.
func Patch ¶
func Patch(patchType types.PatchType, work *workv1.ManifestWork, patchData []byte) (*workv1.ManifestWork, error)
Patch applies the patch to a work with the patch type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.