blob: fe8ecaaffa6101e1cbd95c44582b5371f6cdbe14 [file] [log] [blame]
sslobodrd046be82019-01-16 10:02:22 -05001/*
2Copyright 2015 The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package types
18
19// Similarly to above, these are constants to support HTTP PATCH utilized by
20// both the client and server that didn't make sense for a whole package to be
21// dedicated to.
22type PatchType string
23
24const (
25 JSONPatchType PatchType = "application/json-patch+json"
26 MergePatchType PatchType = "application/merge-patch+json"
27 StrategicMergePatchType PatchType = "application/strategic-merge-patch+json"
Stephane Barbarie260a5632019-02-26 16:12:49 -050028 ApplyPatchType PatchType = "application/apply-patch+yaml"
sslobodrd046be82019-01-16 10:02:22 -050029)