# Packages
Package client has been copied from kubectl code almost verbatim Some methods have been moved from k/k into the utils.go file to remove the dependency on K/K https://github.com/kubernetes/kubernetes/blob/v1.13.1/pkg/kubectl/cmd/apply/apply.go.
# Functions
GetAPIResource uses a rest mapper to get the GroupVersionResource and determine whether an object is namespaced or not.
JSONToUnstructured converts a raw json document into an Unstructured object.
NewAnyPredicate constructs a new AnyPredicate.
NewDryRunVerifier constructs a new DryRunVerifier.
NewOwnerIsClusterGitTrackPredicate constructs a new OwnerIsClusterGitTrackPredicate.
NewOwnerIsGitTrackPredicate constructs a new OwnerIsGitTrackPredicate.
NewOwnersOwnerIsClusterGitTrackPredicate constructs a new OwnersOwnerIsClusterGitTrackPredicate.
NewOwnersOwnerIsGitTrackPredicate constructs a new OwnersOwnerIsGitTrackPredicate.
NewRestMapper creates a restMapper from the discovery client.
YAMLToUnstructured converts a raw yaml document into an Unstructured object.
YAMLToUnstructuredSlice converts a raw yaml document into a slice of pointers to Unstructured objects.
# Structs
AnyPredicate takes a list of predicates and returns true if any one of them returns true.
DryRunVerifier verifies if a given group-version-kind supports DryRun against the current server.
OwnerIsClusterGitTrackPredicate filters events to check the owner of the event object is a ClusterGitTrack.
OwnerIsGitTrackPredicate filters events to check the owner of the event object is a GitTrack.
OwnersOwnerIsClusterGitTrackPredicate filters events to check that the owner of the event object's owner is a ClusterGitTrack.
OwnersOwnerIsGitTrackPredicate filters events to check that the owner of the event object's owner is a GitTrack.