package
2.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb-operator.git
Documentation: pkg.go.dev
# Functions
ControllerRevisionName returns the ControllerRevisionName for a ControllerRevision in the form prefix-hash.
EqualRevision returns true if lhs and rhs are either both nil, or both point to non-nil ControllerRevisions that contain semantically equivalent data.
FindEqualRevisions returns all ControllerRevisions in revisions that are equal to needle using EqualRevision as the equality test.
HashControllerRevision hashes the contents of revision's Data using FNV hashing.
NewClient returns an instance of Interface that uses client to communicate with the API Server and lister to list ControllerRevisions.
NewControllerRevision returns a ControllerRevision with a ControllerRef pointing to parent and indicating that parent is of parentKind.
SortControllerRevisions sorts revisions by their Revision.
# Constants
HashLabel is the label used to indicate the hash value of a ControllerRevision's Data.
# Interfaces
TODO(liubo02): add ctx into interface Interface provides an interface allowing for management of a Controller's history as realized by recorded ControllerRevisions.