| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
package v1beta2 |
| 20 |
|
| 21 |
import ( |
| 22 |
context "context" |
| 23 |
|
| 24 |
appsv1beta2 "k8s.io/api/apps/v1beta2" |
| 25 |
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 26 |
types "k8s.io/apimachinery/pkg/types" |
| 27 |
watch "k8s.io/apimachinery/pkg/watch" |
| 28 |
applyconfigurationsappsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" |
| 29 |
gentype "k8s.io/client-go/gentype" |
| 30 |
scheme "k8s.io/client-go/kubernetes/scheme" |
| 31 |
) |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
type ControllerRevisionsGetter interface { |
| 36 |
ControllerRevisions(namespace string) ControllerRevisionInterface |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
type ControllerRevisionInterface interface { |
| 41 |
Create(ctx context.Context, controllerRevision *appsv1beta2.ControllerRevision, opts v1.CreateOptions) (*appsv1beta2.ControllerRevision, error) |
| 42 |
Update(ctx context.Context, controllerRevision *appsv1beta2.ControllerRevision, opts v1.UpdateOptions) (*appsv1beta2.ControllerRevision, error) |
| 43 |
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error |
| 44 |
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error |
| 45 |
Get(ctx context.Context, name string, opts v1.GetOptions) (*appsv1beta2.ControllerRevision, error) |
| 46 |
List(ctx context.Context, opts v1.ListOptions) (*appsv1beta2.ControllerRevisionList, error) |
| 47 |
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) |
| 48 |
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *appsv1beta2.ControllerRevision, err error) |
| 49 |
Apply(ctx context.Context, controllerRevision *applyconfigurationsappsv1beta2.ControllerRevisionApplyConfiguration, opts v1.ApplyOptions) (result *appsv1beta2.ControllerRevision, err error) |
| 50 |
ControllerRevisionExpansion |
| 51 |
} |
| 52 |
|
| 53 |
|
| 54 |
type controllerRevisions struct { |
| 55 |
*gentype.ClientWithListAndApply[*appsv1beta2.ControllerRevision, *appsv1beta2.ControllerRevisionList, *applyconfigurationsappsv1beta2.ControllerRevisionApplyConfiguration] |
| 56 |
} |
| 57 |
|
| 58 |
|
| 59 |
func newControllerRevisions(c *AppsV1beta2Client, namespace string) *controllerRevisions { |
| 60 |
return &controllerRevisions{ |
| 61 |
gentype.NewClientWithListAndApply[*appsv1beta2.ControllerRevision, *appsv1beta2.ControllerRevisionList, *applyconfigurationsappsv1beta2.ControllerRevisionApplyConfiguration]( |
| 62 |
"controllerrevisions", |
| 63 |
c.RESTClient(), |
| 64 |
scheme.ParameterCodec, |
| 65 |
namespace, |
| 66 |
func() *appsv1beta2.ControllerRevision { return &appsv1beta2.ControllerRevision{} }, |
| 67 |
func() *appsv1beta2.ControllerRevisionList { return &appsv1beta2.ControllerRevisionList{} }, |
| 68 |
gentype.PrefersProtobuf[*appsv1beta2.ControllerRevision](), |
| 69 |
), |
| 70 |
} |
| 71 |
} |