зеркало из https://github.com/Azure/ARO-RP.git
Remove reliance on hiveclient set which in-turn relies on openshift installer (#2806)
* chore(hive): Replace hive clientset with controller-runtime client * chore(hive): Replace clientset with controller-runtime * chore(vendor): Tidy dependencies up * chore(hive): Remove vendored clientset
This commit is contained in:
Родитель
87517249b7
Коммит
386753af33
3
go.mod
3
go.mod
|
@ -44,7 +44,6 @@ require (
|
|||
github.com/openshift/api v3.9.1-0.20191111211345-a27ff30ebf09+incompatible
|
||||
github.com/openshift/client-go v0.0.0-20220525160904-9e1acff93e4a
|
||||
github.com/openshift/console-operator v0.0.0-20220407014945-45d37e70e0c2
|
||||
github.com/openshift/hive v1.1.16
|
||||
github.com/openshift/hive/apis v0.0.0
|
||||
github.com/openshift/installer v0.16.1
|
||||
github.com/openshift/library-go v0.0.0-20220525173854-9b950a41acdc
|
||||
|
@ -223,6 +222,7 @@ require (
|
|||
github.com/spf13/pflag v1.0.6-0.20210604193023-d5e0c0615ace // indirect
|
||||
github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980 // indirect
|
||||
github.com/stoewer/go-strcase v1.2.0 // indirect
|
||||
github.com/stretchr/objx v0.3.0 // indirect
|
||||
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
|
||||
github.com/ulikunitz/xz v0.5.10 // indirect
|
||||
github.com/vbatts/tar-split v0.11.2 // indirect
|
||||
|
@ -235,6 +235,7 @@ require (
|
|||
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 // indirect
|
||||
go.opencensus.io v0.23.0 // indirect
|
||||
go.starlark.net v0.0.0-20220328144851-d1966c6b9fcd // indirect
|
||||
go.uber.org/atomic v1.8.0 // indirect
|
||||
golang.org/x/mod v0.8.0 // indirect
|
||||
golang.org/x/sys v0.8.0 // indirect
|
||||
golang.org/x/term v0.8.0 // indirect
|
||||
|
|
4
go.sum
4
go.sum
|
@ -1285,8 +1285,6 @@ github.com/openshift/cluster-api-provider-ovirt v0.1.1-0.20211215231458-35ce9aaf
|
|||
github.com/openshift/cluster-autoscaler-operator v0.0.0-20190521201101-62768a6ba480/go.mod h1:/XmV44Fh28Vo3Ye93qFrxAbcFJ/Uy+7LPD+jGjmfJYc=
|
||||
github.com/openshift/console-operator v0.0.0-20220318130441-e44516b9c315 h1:zmwv8TgbOgZ5QoaPhLdOivqg706Z+VyuPs703jNMdrE=
|
||||
github.com/openshift/console-operator v0.0.0-20220318130441-e44516b9c315/go.mod h1:jCX07P5qFcuJrzd0xO5caxLjvSscehiaq6We/hGlcW8=
|
||||
github.com/openshift/hive v1.1.17-0.20220719141355-c63c9b0281d8 h1:qcy/cICI6s0CW86+VktQMpdM3u/6TgFzAaWBVRT8Yg8=
|
||||
github.com/openshift/hive v1.1.17-0.20220719141355-c63c9b0281d8/go.mod h1:R9ykqkQdLwAv+Zw244+qPGsqv85Htuy78NXdqQQGFSs=
|
||||
github.com/openshift/hive/apis v0.0.0-20220719141355-c63c9b0281d8 h1:7e4sMDIstjEKW6SmPv8VhusDaYinDBrspd1M7ybIHC8=
|
||||
github.com/openshift/hive/apis v0.0.0-20220719141355-c63c9b0281d8/go.mod h1:XWo9dsulk75E9xkfxS/GNpJrL5UHgn3wuSyPeO39NME=
|
||||
github.com/openshift/library-go v0.0.0-20220303081124-fb4e7a2872f0 h1:hiwAdZ5ishMe4qtUejv+CuBWra18cjZMHVFlVPOZnw0=
|
||||
|
@ -1544,6 +1542,7 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
|
|||
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
|
||||
github.com/stretchr/objx v0.3.0 h1:NGXK3lHquSN08v5vWalVI/L8XU9hdzE/G6xsrze47As=
|
||||
github.com/stretchr/objx v0.3.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
|
||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
|
@ -1708,6 +1707,7 @@ go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
|||
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
go.uber.org/atomic v1.8.0 h1:CUhrE4N1rqSE6FM9ecihEjRkLQu8cDfgDyoOs83mEY4=
|
||||
go.uber.org/atomic v1.8.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
|
||||
go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
|
||||
go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA=
|
||||
|
|
|
@ -8,7 +8,6 @@ import (
|
|||
"fmt"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
hiveclient "github.com/openshift/hive/pkg/client/clientset/versioned"
|
||||
"github.com/sirupsen/logrus"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
kerrors "k8s.io/apimachinery/pkg/api/errors"
|
||||
|
@ -16,6 +15,7 @@ import (
|
|||
"k8s.io/client-go/kubernetes"
|
||||
"k8s.io/client-go/rest"
|
||||
"k8s.io/client-go/util/retry"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/Azure/ARO-RP/pkg/api"
|
||||
"github.com/Azure/ARO-RP/pkg/env"
|
||||
|
@ -46,7 +46,7 @@ type clusterManager struct {
|
|||
log *logrus.Entry
|
||||
env env.Core
|
||||
|
||||
hiveClientset hiveclient.Interface
|
||||
hiveClientset client.Client
|
||||
kubernetescli kubernetes.Interface
|
||||
|
||||
dh dynamichelper.Interface
|
||||
|
@ -81,7 +81,7 @@ func NewFromEnv(ctx context.Context, log *logrus.Entry, env env.Interface) (Clus
|
|||
// It MUST NOT take cluster or subscription document as values
|
||||
// in these structs can be change during the lifetime of the cluster manager.
|
||||
func NewFromConfig(log *logrus.Entry, _env env.Core, restConfig *rest.Config) (ClusterManager, error) {
|
||||
hiveClientset, err := hiveclient.NewForConfig(restConfig)
|
||||
hiveClientset, err := client.New(restConfig, client.Options{})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ func (hr *clusterManager) IsClusterDeploymentReady(ctx context.Context, doc *api
|
|||
}
|
||||
|
||||
func (hr *clusterManager) IsClusterInstallationComplete(ctx context.Context, doc *api.OpenShiftClusterDocument) (bool, error) {
|
||||
cd, err := hr.hiveClientset.HiveV1().ClusterDeployments(doc.OpenShiftCluster.Properties.HiveProfile.Namespace).Get(ctx, ClusterDeploymentName, metav1.GetOptions{})
|
||||
cd, err := hr.GetClusterDeployment(ctx, doc)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
@ -210,12 +210,21 @@ func (hr *clusterManager) IsClusterInstallationComplete(ctx context.Context, doc
|
|||
}
|
||||
|
||||
func (hr *clusterManager) GetClusterDeployment(ctx context.Context, doc *api.OpenShiftClusterDocument) (*hivev1.ClusterDeployment, error) {
|
||||
return hr.hiveClientset.HiveV1().ClusterDeployments(doc.OpenShiftCluster.Properties.HiveProfile.Namespace).Get(ctx, ClusterDeploymentName, metav1.GetOptions{})
|
||||
cd := &hivev1.ClusterDeployment{}
|
||||
err := hr.hiveClientset.Get(ctx, client.ObjectKey{
|
||||
Namespace: doc.OpenShiftCluster.Properties.HiveProfile.Namespace,
|
||||
Name: ClusterDeploymentName,
|
||||
}, cd)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return cd, nil
|
||||
}
|
||||
|
||||
func (hr *clusterManager) ResetCorrelationData(ctx context.Context, doc *api.OpenShiftClusterDocument) error {
|
||||
return retry.RetryOnConflict(retry.DefaultRetry, func() error {
|
||||
cd, err := hr.hiveClientset.HiveV1().ClusterDeployments(doc.OpenShiftCluster.Properties.HiveProfile.Namespace).Get(ctx, ClusterDeploymentName, metav1.GetOptions{})
|
||||
cd, err := hr.GetClusterDeployment(ctx, doc)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -225,7 +234,6 @@ func (hr *clusterManager) ResetCorrelationData(ctx context.Context, doc *api.Ope
|
|||
return err
|
||||
}
|
||||
|
||||
_, err = hr.hiveClientset.HiveV1().ClusterDeployments(doc.OpenShiftCluster.Properties.HiveProfile.Namespace).Update(ctx, cd, metav1.UpdateOptions{})
|
||||
return err
|
||||
return hr.hiveClientset.Update(ctx, cd)
|
||||
})
|
||||
}
|
||||
|
|
|
@ -9,17 +9,17 @@ import (
|
|||
"testing"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
hivefake "github.com/openshift/hive/pkg/client/clientset/versioned/fake"
|
||||
"github.com/sirupsen/logrus"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
kruntime "k8s.io/apimachinery/pkg/runtime"
|
||||
kubernetesfake "k8s.io/client-go/kubernetes/fake"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client/fake"
|
||||
|
||||
"github.com/Azure/ARO-RP/pkg/api"
|
||||
"github.com/Azure/ARO-RP/pkg/util/cmp"
|
||||
"github.com/Azure/ARO-RP/pkg/util/uuid"
|
||||
"github.com/Azure/ARO-RP/pkg/util/uuid/fake"
|
||||
uuidfake "github.com/Azure/ARO-RP/pkg/util/uuid/fake"
|
||||
utilerror "github.com/Azure/ARO-RP/test/util/error"
|
||||
)
|
||||
|
||||
|
@ -148,12 +148,12 @@ func TestIsClusterDeploymentReady(t *testing.T) {
|
|||
},
|
||||
} {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
fakeClientset := hivefake.NewSimpleClientset()
|
||||
fakeClientBuilder := fake.NewClientBuilder()
|
||||
if tt.cd != nil {
|
||||
fakeClientset.Tracker().Add(tt.cd)
|
||||
fakeClientBuilder.WithRuntimeObjects(tt.cd)
|
||||
}
|
||||
c := clusterManager{
|
||||
hiveClientset: fakeClientset,
|
||||
hiveClientset: fakeClientBuilder.Build(),
|
||||
log: logrus.NewEntry(logrus.StandardLogger()),
|
||||
}
|
||||
|
||||
|
@ -248,12 +248,12 @@ func TestIsClusterInstallationComplete(t *testing.T) {
|
|||
},
|
||||
} {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
fakeClientset := hivefake.NewSimpleClientset()
|
||||
fakeClientBuilder := fake.NewClientBuilder()
|
||||
if tt.cd != nil {
|
||||
fakeClientset.Tracker().Add(tt.cd)
|
||||
fakeClientBuilder = fakeClientBuilder.WithRuntimeObjects(tt.cd)
|
||||
}
|
||||
c := clusterManager{
|
||||
hiveClientset: fakeClientset,
|
||||
hiveClientset: fakeClientBuilder.Build(),
|
||||
log: logrus.NewEntry(logrus.StandardLogger()),
|
||||
}
|
||||
|
||||
|
@ -308,19 +308,19 @@ func TestResetCorrelationData(t *testing.T) {
|
|||
},
|
||||
} {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
fakeClientset := hivefake.NewSimpleClientset()
|
||||
fakeClientBuilder := fake.NewClientBuilder()
|
||||
if tt.cd != nil {
|
||||
fakeClientset.Tracker().Add(tt.cd)
|
||||
fakeClientBuilder = fakeClientBuilder.WithRuntimeObjects(tt.cd)
|
||||
}
|
||||
c := clusterManager{
|
||||
hiveClientset: fakeClientset,
|
||||
hiveClientset: fakeClientBuilder.Build(),
|
||||
}
|
||||
|
||||
err := c.ResetCorrelationData(context.Background(), doc)
|
||||
utilerror.AssertErrorMessage(t, err, tt.wantErr)
|
||||
|
||||
if err == nil {
|
||||
cd, err := c.hiveClientset.HiveV1().ClusterDeployments(fakeNamespace).Get(context.Background(), ClusterDeploymentName, metav1.GetOptions{})
|
||||
cd, err := c.GetClusterDeployment(context.Background(), doc)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
@ -371,7 +371,7 @@ func TestCreateNamespace(t *testing.T) {
|
|||
}
|
||||
|
||||
if tc.useFakeGenerator {
|
||||
uuid.DefaultGenerator = fake.NewGenerator(tc.nsNames)
|
||||
uuid.DefaultGenerator = uuidfake.NewGenerator(tc.nsNames)
|
||||
}
|
||||
|
||||
ns, err := c.CreateNamespace(context.Background())
|
||||
|
@ -419,12 +419,12 @@ func TestGetClusterDeployment(t *testing.T) {
|
|||
{name: "cd does not exist err returned", wantErr: `clusterdeployments.hive.openshift.io "cluster" not found`},
|
||||
} {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
fakeClientset := hivefake.NewSimpleClientset()
|
||||
fakeClientBuilder := fake.NewClientBuilder()
|
||||
if tt.wantErr == "" {
|
||||
_ = fakeClientset.Tracker().Add(cd)
|
||||
fakeClientBuilder = fakeClientBuilder.WithRuntimeObjects(cd)
|
||||
}
|
||||
c := clusterManager{
|
||||
hiveClientset: fakeClientset,
|
||||
hiveClientset: fakeClientBuilder.Build(),
|
||||
log: logrus.NewEntry(logrus.StandardLogger()),
|
||||
}
|
||||
|
||||
|
|
|
@ -11,13 +11,13 @@ import (
|
|||
configv1 "github.com/openshift/api/config/v1"
|
||||
configclient "github.com/openshift/client-go/config/clientset/versioned"
|
||||
machineclient "github.com/openshift/client-go/machine/clientset/versioned"
|
||||
hiveclient "github.com/openshift/hive/pkg/client/clientset/versioned"
|
||||
mcoclient "github.com/openshift/machine-config-operator/pkg/generated/clientset/versioned"
|
||||
"github.com/sirupsen/logrus"
|
||||
appsv1 "k8s.io/api/apps/v1"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
"k8s.io/client-go/kubernetes"
|
||||
"k8s.io/client-go/rest"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/Azure/ARO-RP/pkg/api"
|
||||
"github.com/Azure/ARO-RP/pkg/metrics"
|
||||
|
@ -41,7 +41,7 @@ type Monitor struct {
|
|||
m metrics.Emitter
|
||||
arocli aroclient.Interface
|
||||
|
||||
hiveclientset hiveclient.Interface
|
||||
hiveclientset client.Client
|
||||
|
||||
// access below only via the helper functions in cache.go
|
||||
cache struct {
|
||||
|
@ -91,10 +91,10 @@ func NewMonitor(log *logrus.Entry, restConfig *rest.Config, oc *api.OpenShiftClu
|
|||
return nil, err
|
||||
}
|
||||
|
||||
var hiveclientset hiveclient.Interface
|
||||
var hiveclientset client.Client
|
||||
if hiveRestConfig != nil {
|
||||
var err error
|
||||
hiveclientset, err = hiveclient.NewForConfig(hiveRestConfig)
|
||||
hiveclientset, err = client.New(hiveRestConfig, client.Options{})
|
||||
if err != nil {
|
||||
// TODO(hive): Update to fail once we have Hive everywhere in prod and dev
|
||||
log.Error(err)
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/Azure/ARO-RP/pkg/hive"
|
||||
)
|
||||
|
@ -42,7 +42,11 @@ func (mon *Monitor) emitHiveRegistrationStatus(ctx context.Context) error {
|
|||
}
|
||||
|
||||
func (mon *Monitor) retrieveClusterDeployment(ctx context.Context) (*hivev1.ClusterDeployment, error) {
|
||||
cd, err := mon.hiveclientset.HiveV1().ClusterDeployments(mon.oc.Properties.HiveProfile.Namespace).Get(ctx, hive.ClusterDeploymentName, metav1.GetOptions{})
|
||||
cd := &hivev1.ClusterDeployment{}
|
||||
err := mon.hiveclientset.Get(ctx, client.ObjectKey{
|
||||
Namespace: mon.oc.Properties.HiveProfile.Namespace,
|
||||
Name: hive.ClusterDeploymentName,
|
||||
}, cd)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -10,14 +10,14 @@ import (
|
|||
|
||||
"github.com/golang/mock/gomock"
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
hiveclient "github.com/openshift/hive/pkg/client/clientset/versioned"
|
||||
hivefake "github.com/openshift/hive/pkg/client/clientset/versioned/fake"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/sirupsen/logrus/hooks/test"
|
||||
"github.com/stretchr/testify/assert"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
kruntime "k8s.io/apimachinery/pkg/runtime"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
fakeclient "sigs.k8s.io/controller-runtime/pkg/client/fake"
|
||||
|
||||
"github.com/Azure/ARO-RP/pkg/api"
|
||||
"github.com/Azure/ARO-RP/pkg/hive"
|
||||
|
@ -87,13 +87,13 @@ func TestEmitHiveRegistrationStatus(t *testing.T) {
|
|||
},
|
||||
} {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
var hiveclient hiveclient.Interface
|
||||
var hiveclient client.Client
|
||||
if tt.withClient {
|
||||
fakeclient := hivefake.NewSimpleClientset()
|
||||
fakeclient := fakeclient.NewClientBuilder()
|
||||
if tt.cd != nil {
|
||||
fakeclient.Tracker().Add(tt.cd)
|
||||
fakeclient = fakeclient.WithRuntimeObjects(tt.cd)
|
||||
}
|
||||
hiveclient = fakeclient
|
||||
hiveclient = fakeclient.Build()
|
||||
}
|
||||
|
||||
logger, hook := test.NewNullLogger()
|
||||
|
@ -136,13 +136,13 @@ func TestRetrieveClusterDeployment(t *testing.T) {
|
|||
wantErr: fmt.Sprintf("clusterdeployments.hive.openshift.io %q not found", hive.ClusterDeploymentName),
|
||||
}} {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
fakeclient := hivefake.NewSimpleClientset()
|
||||
fakeclient := fakeclient.NewClientBuilder()
|
||||
if tt.cd != nil {
|
||||
fakeclient.Tracker().Add(tt.cd)
|
||||
fakeclient = fakeclient.WithRuntimeObjects(tt.cd)
|
||||
}
|
||||
|
||||
mon := &Monitor{
|
||||
hiveclientset: fakeclient,
|
||||
hiveclientset: fakeclient.Build(),
|
||||
oc: &api.OpenShiftCluster{
|
||||
Name: "testcluster",
|
||||
Properties: api.OpenShiftClusterProperties{
|
||||
|
|
|
@ -12,7 +12,8 @@ import (
|
|||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/Azure/ARO-RP/pkg/api/admin"
|
||||
"github.com/Azure/ARO-RP/pkg/hive"
|
||||
|
@ -44,7 +45,11 @@ var _ = Describe("Hive-managed ARO cluster", func() {
|
|||
|
||||
It("has been properly created/adopted by Hive", func(ctx context.Context) {
|
||||
By("verifying that a corresponding ClusterDeployment object exists in the expected namespace in the Hive cluster")
|
||||
cd, err := clients.Hive.HiveV1().ClusterDeployments(adminAPICluster.Properties.HiveProfile.Namespace).Get(ctx, hive.ClusterDeploymentName, metav1.GetOptions{})
|
||||
cd := &hivev1.ClusterDeployment{}
|
||||
err := clients.Hive.Get(ctx, client.ObjectKey{
|
||||
Namespace: adminAPICluster.Properties.HiveProfile.Namespace,
|
||||
Name: hive.ClusterDeploymentName,
|
||||
}, cd)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
By("verifying that the ClusterDeployment object has the expected name and labels")
|
||||
|
|
|
@ -24,7 +24,6 @@ import (
|
|||
configclient "github.com/openshift/client-go/config/clientset/versioned"
|
||||
machineclient "github.com/openshift/client-go/machine/clientset/versioned"
|
||||
projectclient "github.com/openshift/client-go/project/clientset/versioned"
|
||||
hiveclient "github.com/openshift/hive/pkg/client/clientset/versioned"
|
||||
mcoclient "github.com/openshift/machine-config-operator/pkg/generated/clientset/versioned"
|
||||
monitoringclient "github.com/prometheus-operator/prometheus-operator/pkg/client/versioned"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
@ -34,6 +33,7 @@ import (
|
|||
"k8s.io/client-go/tools/clientcmd"
|
||||
"k8s.io/client-go/tools/clientcmd/api"
|
||||
"k8s.io/client-go/tools/clientcmd/api/latest"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
"github.com/Azure/ARO-RP/pkg/api/admin"
|
||||
"github.com/Azure/ARO-RP/pkg/env"
|
||||
|
@ -71,7 +71,7 @@ type clientSet struct {
|
|||
AROClusters aroclient.Interface
|
||||
ConfigClient configclient.Interface
|
||||
Project projectclient.Interface
|
||||
Hive hiveclient.Interface
|
||||
Hive client.Client
|
||||
HiveAKS kubernetes.Interface
|
||||
HiveClusterManager hive.ClusterManager
|
||||
}
|
||||
|
@ -327,7 +327,7 @@ func newClientSet(ctx context.Context) (*clientSet, error) {
|
|||
}
|
||||
|
||||
var hiveRestConfig *rest.Config
|
||||
var hiveClientSet *hiveclient.Clientset
|
||||
var hiveClientSet client.Client
|
||||
var hiveAKS *kubernetes.Clientset
|
||||
var hiveCM hive.ClusterManager
|
||||
|
||||
|
@ -343,7 +343,7 @@ func newClientSet(ctx context.Context) (*clientSet, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
hiveClientSet, err = hiveclient.NewForConfig(hiveRestConfig)
|
||||
hiveClientSet, err = client.New(hiveRestConfig, client.Options{})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -1,190 +0,0 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Copyright 2018 Red Hat, Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
152
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/clustersync_types.go
сгенерированный
поставляемый
152
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/clustersync_types.go
сгенерированный
поставляемый
|
@ -1,152 +0,0 @@
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// ClusterSync is the status of all of the SelectorSyncSets and SyncSets that apply to a ClusterDeployment.
|
||||
// +k8s:openapi-gen=true
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:resource:path=clustersyncs,shortName=csync,scope=Namespaced
|
||||
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.conditions[0].reason`
|
||||
// +kubebuilder:printcolumn:name="Message",type=string,priority=1,JSONPath=`.status.conditions[?(@.type=="Failed")].message`
|
||||
type ClusterSync struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
Spec ClusterSyncSpec `json:"spec,omitempty"`
|
||||
Status ClusterSyncStatus `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// ClusterSyncSpec defines the desired state of ClusterSync
|
||||
type ClusterSyncSpec struct{}
|
||||
|
||||
// ClusterSyncStatus defines the observed state of ClusterSync
|
||||
type ClusterSyncStatus struct {
|
||||
// SyncSets is the sync status of all of the SyncSets for the cluster.
|
||||
// +optional
|
||||
SyncSets []SyncStatus `json:"syncSets,omitempty"`
|
||||
|
||||
// SelectorSyncSets is the sync status of all of the SelectorSyncSets for the cluster.
|
||||
// +optional
|
||||
SelectorSyncSets []SyncStatus `json:"selectorSyncSets,omitempty"`
|
||||
|
||||
// Conditions is a list of conditions associated with syncing to the cluster.
|
||||
// +optional
|
||||
Conditions []ClusterSyncCondition `json:"conditions,omitempty"`
|
||||
|
||||
// FirstSuccessTime is the time we first successfully applied all (selector)syncsets to a cluster.
|
||||
// +optional
|
||||
FirstSuccessTime *metav1.Time `json:"firstSuccessTime,omitempty"`
|
||||
|
||||
// ControlledByReplica indicates which replica of the hive-clustersync StatefulSet is responsible
|
||||
// for (the CD related to) this clustersync. Note that this value indicates the replica that most
|
||||
// recently handled the ClusterSync. If the hive-clustersync statefulset is scaled up or down, the
|
||||
// controlling replica can change, potentially causing logs to be spread across multiple pods.
|
||||
ControlledByReplica *int64 `json:"controlledByReplica,omitempty"`
|
||||
}
|
||||
|
||||
// SyncStatus is the status of applying a specific SyncSet or SelectorSyncSet to the cluster.
|
||||
type SyncStatus struct {
|
||||
// Name is the name of the SyncSet or SelectorSyncSet.
|
||||
Name string `json:"name"`
|
||||
|
||||
// ObservedGeneration is the generation of the SyncSet or SelectorSyncSet that was last observed.
|
||||
ObservedGeneration int64 `json:"observedGeneration"`
|
||||
|
||||
// ResourcesToDelete is the list of resources in the cluster that should be deleted when the SyncSet or SelectorSyncSet
|
||||
// is deleted or is no longer matched to the cluster.
|
||||
// +optional
|
||||
ResourcesToDelete []SyncResourceReference `json:"resourcesToDelete,omitempty"`
|
||||
|
||||
// Result is the result of the last attempt to apply the SyncSet or SelectorSyncSet to the cluster.
|
||||
Result SyncSetResult `json:"result"`
|
||||
|
||||
// FailureMessage is a message describing why the SyncSet or SelectorSyncSet could not be applied. This is only
|
||||
// set when Result is Failure.
|
||||
// +optional
|
||||
FailureMessage string `json:"failureMessage,omitempty"`
|
||||
|
||||
// LastTransitionTime is the time when this status last changed.
|
||||
LastTransitionTime metav1.Time `json:"lastTransitionTime"`
|
||||
|
||||
// FirstSuccessTime is the time when the SyncSet or SelectorSyncSet was first successfully applied to the cluster.
|
||||
// +optional
|
||||
FirstSuccessTime *metav1.Time `json:"firstSuccessTime,omitempty"`
|
||||
}
|
||||
|
||||
// SyncResourceReference is a reference to a resource that is synced to a cluster via a SyncSet or SelectorSyncSet.
|
||||
type SyncResourceReference struct {
|
||||
// APIVersion is the Group and Version of the resource.
|
||||
APIVersion string `json:"apiVersion"`
|
||||
|
||||
// Kind is the Kind of the resource.
|
||||
// +optional
|
||||
Kind string `json:"kind"`
|
||||
|
||||
// Name is the name of the resource.
|
||||
Name string `json:"name"`
|
||||
|
||||
// Namespace is the namespace of the resource.
|
||||
// +optional
|
||||
Namespace string `json:"namespace,omitempty"`
|
||||
}
|
||||
|
||||
// SyncSetResult is the result of a sync attempt.
|
||||
// +kubebuilder:validation:Enum=Success;Failure
|
||||
type SyncSetResult string
|
||||
|
||||
const (
|
||||
// SuccessSyncSetResult is the result when the SyncSet or SelectorSyncSet was applied successfully to the cluster.
|
||||
SuccessSyncSetResult SyncSetResult = "Success"
|
||||
|
||||
// FailureSyncSetResult is the result when there was an error when attempting to apply the SyncSet or SelectorSyncSet
|
||||
// to the cluster
|
||||
FailureSyncSetResult SyncSetResult = "Failure"
|
||||
)
|
||||
|
||||
// ClusterSyncCondition contains details for the current condition of a ClusterSync
|
||||
type ClusterSyncCondition struct {
|
||||
// Type is the type of the condition.
|
||||
Type ClusterSyncConditionType `json:"type"`
|
||||
// Status is the status of the condition.
|
||||
Status corev1.ConditionStatus `json:"status"`
|
||||
// LastProbeTime is the last time we probed the condition.
|
||||
// +optional
|
||||
LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
|
||||
// LastTransitionTime is the last time the condition transitioned from one status to another.
|
||||
// +optional
|
||||
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||
// Reason is a unique, one-word, CamelCase reason for the condition's last transition.
|
||||
// +optional
|
||||
Reason string `json:"reason,omitempty"`
|
||||
// Message is a human-readable message indicating details about the last transition.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
// ClusterSyncConditionType is a valid value for ClusterSyncCondition.Type
|
||||
type ClusterSyncConditionType string
|
||||
|
||||
const (
|
||||
// ClusterSyncFailed is the type of condition used to indicate whether there are SyncSets or SelectorSyncSets which
|
||||
// have not been applied due to an error.
|
||||
ClusterSyncFailed ClusterSyncConditionType = "Failed"
|
||||
)
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// ClusterSyncList contains a list of ClusterSync
|
||||
type ClusterSyncList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []ClusterSync `json:"items"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
SchemeBuilder.Register(&ClusterSync{}, &ClusterSyncList{})
|
||||
}
|
37
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/clustersynclease_types.go
сгенерированный
поставляемый
37
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/clustersynclease_types.go
сгенерированный
поставляемый
|
@ -1,37 +0,0 @@
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// ClusterSyncLease is a record of the last time that SyncSets and SelectorSyncSets were applied to a cluster.
|
||||
// +k8s:openapi-gen=true
|
||||
// +kubebuilder:resource:path=clustersyncleases,shortName=csl,scope=Namespaced
|
||||
type ClusterSyncLease struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
Spec ClusterSyncLeaseSpec `json:"spec,omitempty"`
|
||||
}
|
||||
|
||||
// ClusterSyncLeaseSpec is the specification of a ClusterSyncLease.
|
||||
type ClusterSyncLeaseSpec struct {
|
||||
// RenewTime is the time when SyncSets and SelectorSyncSets were last applied to the cluster.
|
||||
RenewTime metav1.MicroTime `json:"renewTime"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// ClusterSyncLeaseList contains a list of ClusterSyncLeases.
|
||||
type ClusterSyncLeaseList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []ClusterSyncLease `json:"items"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
SchemeBuilder.Register(&ClusterSyncLease{}, &ClusterSyncLeaseList{})
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
// Package v1alpha1 contains API Schema definitions for the hiveinternal v1alpha1 API group
|
||||
// +k8s:openapi-gen=true
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
// +k8s:conversion-gen=github.com/openshift/hive/apis/hiveinternal
|
||||
// +k8s:defaulter-gen=TypeMeta
|
||||
// +groupName=hiveinternal.openshift.io
|
||||
package v1alpha1
|
56
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/fakeclusterinstall_types.go
сгенерированный
поставляемый
56
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/fakeclusterinstall_types.go
сгенерированный
поставляемый
|
@ -1,56 +0,0 @@
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// FakeClusterInstallSpec defines the desired state of the FakeClusterInstall.
|
||||
type FakeClusterInstallSpec struct {
|
||||
|
||||
// ImageSetRef is a reference to a ClusterImageSet. The release image specified in the ClusterImageSet will be used
|
||||
// to install the cluster.
|
||||
ImageSetRef hivev1.ClusterImageSetReference `json:"imageSetRef"`
|
||||
|
||||
// ClusterDeploymentRef is a reference to the ClusterDeployment associated with this AgentClusterInstall.
|
||||
ClusterDeploymentRef corev1.LocalObjectReference `json:"clusterDeploymentRef"`
|
||||
|
||||
// ClusterMetadata contains metadata information about the installed cluster. It should be populated once the cluster install is completed. (it can be populated sooner if desired, but Hive will not copy back to ClusterDeployment until the Installed condition goes True.
|
||||
ClusterMetadata *hivev1.ClusterMetadata `json:"clusterMetadata,omitempty"`
|
||||
}
|
||||
|
||||
// FakeClusterInstallStatus defines the observed state of the FakeClusterInstall.
|
||||
type FakeClusterInstallStatus struct {
|
||||
// Conditions includes more detailed status for the cluster install.
|
||||
// +optional
|
||||
Conditions []hivev1.ClusterInstallCondition `json:"conditions,omitempty"`
|
||||
}
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// FakeClusterInstall represents a fake request to provision an agent based cluster.
|
||||
//
|
||||
// +k8s:openapi-gen=true
|
||||
// +kubebuilder:subresource:status
|
||||
type FakeClusterInstall struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
|
||||
Spec FakeClusterInstallSpec `json:"spec"`
|
||||
Status FakeClusterInstallStatus `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// FakeClusterInstallList contains a list of FakeClusterInstall
|
||||
type FakeClusterInstallList struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ListMeta `json:"metadata,omitempty"`
|
||||
Items []FakeClusterInstall `json:"items"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
SchemeBuilder.Register(&FakeClusterInstall{}, &FakeClusterInstallList{})
|
||||
}
|
36
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/register.go
сгенерированный
поставляемый
36
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/register.go
сгенерированный
поставляемый
|
@ -1,36 +0,0 @@
|
|||
// NOTE: Boilerplate only. Ignore this file.
|
||||
|
||||
// Package v1alpha1 contains API Schema definitions for the hiveinternal v1alpha1 API group
|
||||
// +k8s:openapi-gen=true
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
// +k8s:conversion-gen=github.com/openshift/hive/apis/hiveinternal
|
||||
// +k8s:defaulter-gen=TypeMeta
|
||||
// +groupName=hiveinternal.openshift.io
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"github.com/openshift/hive/apis/scheme"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
var (
|
||||
// HiveInternalAPIGroup is the group that all hiveinternal objects belong to in the API server.
|
||||
HiveInternalAPIGroup = "hiveinternal.openshift.io"
|
||||
|
||||
// HiveInternalAPIVersion is the api version that all hiveinternal objects are currently at.
|
||||
HiveInternalAPIVersion = "v1alpha1"
|
||||
|
||||
// SchemeGroupVersion is group version used to register these objects
|
||||
SchemeGroupVersion = schema.GroupVersion{Group: HiveInternalAPIGroup, Version: HiveInternalAPIVersion}
|
||||
|
||||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
|
||||
SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
|
||||
|
||||
// AddToScheme is a shortcut for SchemeBuilder.AddToScheme
|
||||
AddToScheme = SchemeBuilder.AddToScheme
|
||||
)
|
||||
|
||||
// Resource takes an unqualified resource and returns a Group qualified GroupResource
|
||||
func Resource(resource string) schema.GroupResource {
|
||||
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
||||
}
|
378
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/zz_generated.deepcopy.go
сгенерированный
поставляемый
378
vendor/github.com/openshift/hive/apis/hiveinternal/v1alpha1/zz_generated.deepcopy.go
сгенерированный
поставляемый
|
@ -1,378 +0,0 @@
|
|||
//go:build !ignore_autogenerated
|
||||
// +build !ignore_autogenerated
|
||||
|
||||
// Code generated by deepcopy-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSync) DeepCopyInto(out *ClusterSync) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.Spec = in.Spec
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSync.
|
||||
func (in *ClusterSync) DeepCopy() *ClusterSync {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterSync)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ClusterSync) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSyncCondition) DeepCopyInto(out *ClusterSyncCondition) {
|
||||
*out = *in
|
||||
in.LastProbeTime.DeepCopyInto(&out.LastProbeTime)
|
||||
in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSyncCondition.
|
||||
func (in *ClusterSyncCondition) DeepCopy() *ClusterSyncCondition {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterSyncCondition)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSyncLease) DeepCopyInto(out *ClusterSyncLease) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSyncLease.
|
||||
func (in *ClusterSyncLease) DeepCopy() *ClusterSyncLease {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterSyncLease)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ClusterSyncLease) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSyncLeaseList) DeepCopyInto(out *ClusterSyncLeaseList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ClusterSyncLease, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSyncLeaseList.
|
||||
func (in *ClusterSyncLeaseList) DeepCopy() *ClusterSyncLeaseList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterSyncLeaseList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ClusterSyncLeaseList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSyncLeaseSpec) DeepCopyInto(out *ClusterSyncLeaseSpec) {
|
||||
*out = *in
|
||||
in.RenewTime.DeepCopyInto(&out.RenewTime)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSyncLeaseSpec.
|
||||
func (in *ClusterSyncLeaseSpec) DeepCopy() *ClusterSyncLeaseSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterSyncLeaseSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSyncList) DeepCopyInto(out *ClusterSyncList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ClusterSync, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSyncList.
|
||||
func (in *ClusterSyncList) DeepCopy() *ClusterSyncList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterSyncList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ClusterSyncList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSyncSpec) DeepCopyInto(out *ClusterSyncSpec) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSyncSpec.
|
||||
func (in *ClusterSyncSpec) DeepCopy() *ClusterSyncSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterSyncSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSyncStatus) DeepCopyInto(out *ClusterSyncStatus) {
|
||||
*out = *in
|
||||
if in.SyncSets != nil {
|
||||
in, out := &in.SyncSets, &out.SyncSets
|
||||
*out = make([]SyncStatus, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.SelectorSyncSets != nil {
|
||||
in, out := &in.SelectorSyncSets, &out.SelectorSyncSets
|
||||
*out = make([]SyncStatus, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]ClusterSyncCondition, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.FirstSuccessTime != nil {
|
||||
in, out := &in.FirstSuccessTime, &out.FirstSuccessTime
|
||||
*out = (*in).DeepCopy()
|
||||
}
|
||||
if in.ControlledByReplica != nil {
|
||||
in, out := &in.ControlledByReplica, &out.ControlledByReplica
|
||||
*out = new(int64)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSyncStatus.
|
||||
func (in *ClusterSyncStatus) DeepCopy() *ClusterSyncStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterSyncStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *FakeClusterInstall) DeepCopyInto(out *FakeClusterInstall) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FakeClusterInstall.
|
||||
func (in *FakeClusterInstall) DeepCopy() *FakeClusterInstall {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(FakeClusterInstall)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *FakeClusterInstall) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *FakeClusterInstallList) DeepCopyInto(out *FakeClusterInstallList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]FakeClusterInstall, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FakeClusterInstallList.
|
||||
func (in *FakeClusterInstallList) DeepCopy() *FakeClusterInstallList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(FakeClusterInstallList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *FakeClusterInstallList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *FakeClusterInstallSpec) DeepCopyInto(out *FakeClusterInstallSpec) {
|
||||
*out = *in
|
||||
out.ImageSetRef = in.ImageSetRef
|
||||
out.ClusterDeploymentRef = in.ClusterDeploymentRef
|
||||
if in.ClusterMetadata != nil {
|
||||
in, out := &in.ClusterMetadata, &out.ClusterMetadata
|
||||
*out = new(v1.ClusterMetadata)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FakeClusterInstallSpec.
|
||||
func (in *FakeClusterInstallSpec) DeepCopy() *FakeClusterInstallSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(FakeClusterInstallSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *FakeClusterInstallStatus) DeepCopyInto(out *FakeClusterInstallStatus) {
|
||||
*out = *in
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]v1.ClusterInstallCondition, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FakeClusterInstallStatus.
|
||||
func (in *FakeClusterInstallStatus) DeepCopy() *FakeClusterInstallStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(FakeClusterInstallStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *SyncResourceReference) DeepCopyInto(out *SyncResourceReference) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncResourceReference.
|
||||
func (in *SyncResourceReference) DeepCopy() *SyncResourceReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(SyncResourceReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *SyncStatus) DeepCopyInto(out *SyncStatus) {
|
||||
*out = *in
|
||||
if in.ResourcesToDelete != nil {
|
||||
in, out := &in.ResourcesToDelete, &out.ResourcesToDelete
|
||||
*out = make([]SyncResourceReference, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
|
||||
if in.FirstSuccessTime != nil {
|
||||
in, out := &in.FirstSuccessTime, &out.FirstSuccessTime
|
||||
*out = (*in).DeepCopy()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncStatus.
|
||||
func (in *SyncStatus) DeepCopy() *SyncStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(SyncStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
118
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/clientset.go
сгенерированный
поставляемый
118
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/clientset.go
сгенерированный
поставляемый
|
@ -1,118 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package versioned
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
hivev1 "github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1"
|
||||
hiveinternalv1alpha1 "github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1"
|
||||
discovery "k8s.io/client-go/discovery"
|
||||
rest "k8s.io/client-go/rest"
|
||||
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
||||
)
|
||||
|
||||
type Interface interface {
|
||||
Discovery() discovery.DiscoveryInterface
|
||||
HiveV1() hivev1.HiveV1Interface
|
||||
HiveinternalV1alpha1() hiveinternalv1alpha1.HiveinternalV1alpha1Interface
|
||||
}
|
||||
|
||||
// Clientset contains the clients for groups. Each group has exactly one
|
||||
// version included in a Clientset.
|
||||
type Clientset struct {
|
||||
*discovery.DiscoveryClient
|
||||
hiveV1 *hivev1.HiveV1Client
|
||||
hiveinternalV1alpha1 *hiveinternalv1alpha1.HiveinternalV1alpha1Client
|
||||
}
|
||||
|
||||
// HiveV1 retrieves the HiveV1Client
|
||||
func (c *Clientset) HiveV1() hivev1.HiveV1Interface {
|
||||
return c.hiveV1
|
||||
}
|
||||
|
||||
// HiveinternalV1alpha1 retrieves the HiveinternalV1alpha1Client
|
||||
func (c *Clientset) HiveinternalV1alpha1() hiveinternalv1alpha1.HiveinternalV1alpha1Interface {
|
||||
return c.hiveinternalV1alpha1
|
||||
}
|
||||
|
||||
// Discovery retrieves the DiscoveryClient
|
||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
return c.DiscoveryClient
|
||||
}
|
||||
|
||||
// NewForConfig creates a new Clientset for the given config.
|
||||
// If config's RateLimiter is not set and QPS and Burst are acceptable,
|
||||
// NewForConfig will generate a rate-limiter in configShallowCopy.
|
||||
// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
|
||||
// where httpClient was generated with rest.HTTPClientFor(c).
|
||||
func NewForConfig(c *rest.Config) (*Clientset, error) {
|
||||
configShallowCopy := *c
|
||||
|
||||
if configShallowCopy.UserAgent == "" {
|
||||
configShallowCopy.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||
}
|
||||
|
||||
// share the transport between all clients
|
||||
httpClient, err := rest.HTTPClientFor(&configShallowCopy)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return NewForConfigAndClient(&configShallowCopy, httpClient)
|
||||
}
|
||||
|
||||
// NewForConfigAndClient creates a new Clientset for the given config and http client.
|
||||
// Note the http client provided takes precedence over the configured transport values.
|
||||
// If config's RateLimiter is not set and QPS and Burst are acceptable,
|
||||
// NewForConfigAndClient will generate a rate-limiter in configShallowCopy.
|
||||
func NewForConfigAndClient(c *rest.Config, httpClient *http.Client) (*Clientset, error) {
|
||||
configShallowCopy := *c
|
||||
if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
|
||||
if configShallowCopy.Burst <= 0 {
|
||||
return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
|
||||
}
|
||||
configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
|
||||
}
|
||||
|
||||
var cs Clientset
|
||||
var err error
|
||||
cs.hiveV1, err = hivev1.NewForConfigAndClient(&configShallowCopy, httpClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cs.hiveinternalV1alpha1, err = hiveinternalv1alpha1.NewForConfigAndClient(&configShallowCopy, httpClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfigAndClient(&configShallowCopy, httpClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &cs, nil
|
||||
}
|
||||
|
||||
// NewForConfigOrDie creates a new Clientset for the given config and
|
||||
// panics if there is an error in the config.
|
||||
func NewForConfigOrDie(c *rest.Config) *Clientset {
|
||||
cs, err := NewForConfig(c)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return cs
|
||||
}
|
||||
|
||||
// New creates a new Clientset for the given RESTClient.
|
||||
func New(c rest.Interface) *Clientset {
|
||||
var cs Clientset
|
||||
cs.hiveV1 = hivev1.New(c)
|
||||
cs.hiveinternalV1alpha1 = hiveinternalv1alpha1.New(c)
|
||||
|
||||
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||
return &cs
|
||||
}
|
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package has the automatically generated clientset.
|
||||
package versioned
|
76
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/fake/clientset_generated.go
сгенерированный
поставляемый
76
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/fake/clientset_generated.go
сгенерированный
поставляемый
|
@ -1,76 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
clientset "github.com/openshift/hive/pkg/client/clientset/versioned"
|
||||
hivev1 "github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1"
|
||||
fakehivev1 "github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake"
|
||||
hiveinternalv1alpha1 "github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1"
|
||||
fakehiveinternalv1alpha1 "github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/watch"
|
||||
"k8s.io/client-go/discovery"
|
||||
fakediscovery "k8s.io/client-go/discovery/fake"
|
||||
"k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// NewSimpleClientset returns a clientset that will respond with the provided objects.
|
||||
// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
|
||||
// without applying any validations and/or defaults. It shouldn't be considered a replacement
|
||||
// for a real clientset and is mostly useful in simple unit tests.
|
||||
func NewSimpleClientset(objects ...runtime.Object) *Clientset {
|
||||
o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder())
|
||||
for _, obj := range objects {
|
||||
if err := o.Add(obj); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
cs := &Clientset{tracker: o}
|
||||
cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake}
|
||||
cs.AddReactor("*", "*", testing.ObjectReaction(o))
|
||||
cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
|
||||
gvr := action.GetResource()
|
||||
ns := action.GetNamespace()
|
||||
watch, err := o.Watch(gvr, ns)
|
||||
if err != nil {
|
||||
return false, nil, err
|
||||
}
|
||||
return true, watch, nil
|
||||
})
|
||||
|
||||
return cs
|
||||
}
|
||||
|
||||
// Clientset implements clientset.Interface. Meant to be embedded into a
|
||||
// struct to get a default implementation. This makes faking out just the method
|
||||
// you want to test easier.
|
||||
type Clientset struct {
|
||||
testing.Fake
|
||||
discovery *fakediscovery.FakeDiscovery
|
||||
tracker testing.ObjectTracker
|
||||
}
|
||||
|
||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
|
||||
return c.discovery
|
||||
}
|
||||
|
||||
func (c *Clientset) Tracker() testing.ObjectTracker {
|
||||
return c.tracker
|
||||
}
|
||||
|
||||
var (
|
||||
_ clientset.Interface = &Clientset{}
|
||||
_ testing.FakeClient = &Clientset{}
|
||||
)
|
||||
|
||||
// HiveV1 retrieves the HiveV1Client
|
||||
func (c *Clientset) HiveV1() hivev1.HiveV1Interface {
|
||||
return &fakehivev1.FakeHiveV1{Fake: &c.Fake}
|
||||
}
|
||||
|
||||
// HiveinternalV1alpha1 retrieves the HiveinternalV1alpha1Client
|
||||
func (c *Clientset) HiveinternalV1alpha1() hiveinternalv1alpha1.HiveinternalV1alpha1Interface {
|
||||
return &fakehiveinternalv1alpha1.FakeHiveinternalV1alpha1{Fake: &c.Fake}
|
||||
}
|
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/fake/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/fake/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package has the automatically generated fake clientset.
|
||||
package fake
|
42
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/fake/register.go
сгенерированный
поставляемый
42
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/fake/register.go
сгенерированный
поставляемый
|
@ -1,42 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
hiveinternalv1alpha1 "github.com/openshift/hive/apis/hiveinternal/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
||||
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
||||
)
|
||||
|
||||
var scheme = runtime.NewScheme()
|
||||
var codecs = serializer.NewCodecFactory(scheme)
|
||||
|
||||
var localSchemeBuilder = runtime.SchemeBuilder{
|
||||
hivev1.AddToScheme,
|
||||
hiveinternalv1alpha1.AddToScheme,
|
||||
}
|
||||
|
||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||
// of clientsets, like in:
|
||||
//
|
||||
// import (
|
||||
// "k8s.io/client-go/kubernetes"
|
||||
// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
|
||||
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
|
||||
// )
|
||||
//
|
||||
// kclientset, _ := kubernetes.NewForConfig(c)
|
||||
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
|
||||
//
|
||||
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
|
||||
// correctly.
|
||||
var AddToScheme = localSchemeBuilder.AddToScheme
|
||||
|
||||
func init() {
|
||||
v1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"})
|
||||
utilruntime.Must(AddToScheme(scheme))
|
||||
}
|
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/scheme/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/scheme/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package contains the scheme of the automatically generated clientset.
|
||||
package scheme
|
42
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/scheme/register.go
сгенерированный
поставляемый
42
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/scheme/register.go
сгенерированный
поставляемый
|
@ -1,42 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package scheme
|
||||
|
||||
import (
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
hiveinternalv1alpha1 "github.com/openshift/hive/apis/hiveinternal/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
||||
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
||||
)
|
||||
|
||||
var Scheme = runtime.NewScheme()
|
||||
var Codecs = serializer.NewCodecFactory(Scheme)
|
||||
var ParameterCodec = runtime.NewParameterCodec(Scheme)
|
||||
var localSchemeBuilder = runtime.SchemeBuilder{
|
||||
hivev1.AddToScheme,
|
||||
hiveinternalv1alpha1.AddToScheme,
|
||||
}
|
||||
|
||||
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
||||
// of clientsets, like in:
|
||||
//
|
||||
// import (
|
||||
// "k8s.io/client-go/kubernetes"
|
||||
// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
|
||||
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
|
||||
// )
|
||||
//
|
||||
// kclientset, _ := kubernetes.NewForConfig(c)
|
||||
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
|
||||
//
|
||||
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
|
||||
// correctly.
|
||||
var AddToScheme = localSchemeBuilder.AddToScheme
|
||||
|
||||
func init() {
|
||||
v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})
|
||||
utilruntime.Must(AddToScheme(Scheme))
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/checkpoint.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/checkpoint.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// CheckpointsGetter has a method to return a CheckpointInterface.
|
||||
// A group's client should implement this interface.
|
||||
type CheckpointsGetter interface {
|
||||
Checkpoints(namespace string) CheckpointInterface
|
||||
}
|
||||
|
||||
// CheckpointInterface has methods to work with Checkpoint resources.
|
||||
type CheckpointInterface interface {
|
||||
Create(ctx context.Context, checkpoint *v1.Checkpoint, opts metav1.CreateOptions) (*v1.Checkpoint, error)
|
||||
Update(ctx context.Context, checkpoint *v1.Checkpoint, opts metav1.UpdateOptions) (*v1.Checkpoint, error)
|
||||
UpdateStatus(ctx context.Context, checkpoint *v1.Checkpoint, opts metav1.UpdateOptions) (*v1.Checkpoint, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Checkpoint, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.CheckpointList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Checkpoint, err error)
|
||||
CheckpointExpansion
|
||||
}
|
||||
|
||||
// checkpoints implements CheckpointInterface
|
||||
type checkpoints struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newCheckpoints returns a Checkpoints
|
||||
func newCheckpoints(c *HiveV1Client, namespace string) *checkpoints {
|
||||
return &checkpoints{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the checkpoint, and returns the corresponding checkpoint object, and an error if there is any.
|
||||
func (c *checkpoints) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Checkpoint, err error) {
|
||||
result = &v1.Checkpoint{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("checkpoints").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of Checkpoints that match those selectors.
|
||||
func (c *checkpoints) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CheckpointList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.CheckpointList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("checkpoints").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested checkpoints.
|
||||
func (c *checkpoints) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("checkpoints").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a checkpoint and creates it. Returns the server's representation of the checkpoint, and an error, if there is any.
|
||||
func (c *checkpoints) Create(ctx context.Context, checkpoint *v1.Checkpoint, opts metav1.CreateOptions) (result *v1.Checkpoint, err error) {
|
||||
result = &v1.Checkpoint{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("checkpoints").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(checkpoint).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a checkpoint and updates it. Returns the server's representation of the checkpoint, and an error, if there is any.
|
||||
func (c *checkpoints) Update(ctx context.Context, checkpoint *v1.Checkpoint, opts metav1.UpdateOptions) (result *v1.Checkpoint, err error) {
|
||||
result = &v1.Checkpoint{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("checkpoints").
|
||||
Name(checkpoint.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(checkpoint).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *checkpoints) UpdateStatus(ctx context.Context, checkpoint *v1.Checkpoint, opts metav1.UpdateOptions) (result *v1.Checkpoint, err error) {
|
||||
result = &v1.Checkpoint{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("checkpoints").
|
||||
Name(checkpoint.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(checkpoint).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the checkpoint and deletes it. Returns an error if one occurs.
|
||||
func (c *checkpoints) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("checkpoints").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *checkpoints) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("checkpoints").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched checkpoint.
|
||||
func (c *checkpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Checkpoint, err error) {
|
||||
result = &v1.Checkpoint{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("checkpoints").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterclaim.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterclaim.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterClaimsGetter has a method to return a ClusterClaimInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterClaimsGetter interface {
|
||||
ClusterClaims(namespace string) ClusterClaimInterface
|
||||
}
|
||||
|
||||
// ClusterClaimInterface has methods to work with ClusterClaim resources.
|
||||
type ClusterClaimInterface interface {
|
||||
Create(ctx context.Context, clusterClaim *v1.ClusterClaim, opts metav1.CreateOptions) (*v1.ClusterClaim, error)
|
||||
Update(ctx context.Context, clusterClaim *v1.ClusterClaim, opts metav1.UpdateOptions) (*v1.ClusterClaim, error)
|
||||
UpdateStatus(ctx context.Context, clusterClaim *v1.ClusterClaim, opts metav1.UpdateOptions) (*v1.ClusterClaim, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterClaim, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterClaimList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterClaim, err error)
|
||||
ClusterClaimExpansion
|
||||
}
|
||||
|
||||
// clusterClaims implements ClusterClaimInterface
|
||||
type clusterClaims struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newClusterClaims returns a ClusterClaims
|
||||
func newClusterClaims(c *HiveV1Client, namespace string) *clusterClaims {
|
||||
return &clusterClaims{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterClaim, and returns the corresponding clusterClaim object, and an error if there is any.
|
||||
func (c *clusterClaims) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterClaim, err error) {
|
||||
result = &v1.ClusterClaim{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterclaims").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterClaims that match those selectors.
|
||||
func (c *clusterClaims) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterClaimList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ClusterClaimList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterclaims").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterClaims.
|
||||
func (c *clusterClaims) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterclaims").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterClaim and creates it. Returns the server's representation of the clusterClaim, and an error, if there is any.
|
||||
func (c *clusterClaims) Create(ctx context.Context, clusterClaim *v1.ClusterClaim, opts metav1.CreateOptions) (result *v1.ClusterClaim, err error) {
|
||||
result = &v1.ClusterClaim{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterclaims").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterClaim).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterClaim and updates it. Returns the server's representation of the clusterClaim, and an error, if there is any.
|
||||
func (c *clusterClaims) Update(ctx context.Context, clusterClaim *v1.ClusterClaim, opts metav1.UpdateOptions) (result *v1.ClusterClaim, err error) {
|
||||
result = &v1.ClusterClaim{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterclaims").
|
||||
Name(clusterClaim.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterClaim).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *clusterClaims) UpdateStatus(ctx context.Context, clusterClaim *v1.ClusterClaim, opts metav1.UpdateOptions) (result *v1.ClusterClaim, err error) {
|
||||
result = &v1.ClusterClaim{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterclaims").
|
||||
Name(clusterClaim.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterClaim).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterClaim and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterClaims) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterclaims").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterClaims) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterclaims").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterClaim.
|
||||
func (c *clusterClaims) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterClaim, err error) {
|
||||
result = &v1.ClusterClaim{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("clusterclaims").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterdeployment.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterdeployment.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterDeploymentsGetter has a method to return a ClusterDeploymentInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterDeploymentsGetter interface {
|
||||
ClusterDeployments(namespace string) ClusterDeploymentInterface
|
||||
}
|
||||
|
||||
// ClusterDeploymentInterface has methods to work with ClusterDeployment resources.
|
||||
type ClusterDeploymentInterface interface {
|
||||
Create(ctx context.Context, clusterDeployment *v1.ClusterDeployment, opts metav1.CreateOptions) (*v1.ClusterDeployment, error)
|
||||
Update(ctx context.Context, clusterDeployment *v1.ClusterDeployment, opts metav1.UpdateOptions) (*v1.ClusterDeployment, error)
|
||||
UpdateStatus(ctx context.Context, clusterDeployment *v1.ClusterDeployment, opts metav1.UpdateOptions) (*v1.ClusterDeployment, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterDeployment, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterDeploymentList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterDeployment, err error)
|
||||
ClusterDeploymentExpansion
|
||||
}
|
||||
|
||||
// clusterDeployments implements ClusterDeploymentInterface
|
||||
type clusterDeployments struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newClusterDeployments returns a ClusterDeployments
|
||||
func newClusterDeployments(c *HiveV1Client, namespace string) *clusterDeployments {
|
||||
return &clusterDeployments{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterDeployment, and returns the corresponding clusterDeployment object, and an error if there is any.
|
||||
func (c *clusterDeployments) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterDeployment, err error) {
|
||||
result = &v1.ClusterDeployment{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeployments").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterDeployments that match those selectors.
|
||||
func (c *clusterDeployments) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterDeploymentList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ClusterDeploymentList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeployments").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterDeployments.
|
||||
func (c *clusterDeployments) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeployments").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterDeployment and creates it. Returns the server's representation of the clusterDeployment, and an error, if there is any.
|
||||
func (c *clusterDeployments) Create(ctx context.Context, clusterDeployment *v1.ClusterDeployment, opts metav1.CreateOptions) (result *v1.ClusterDeployment, err error) {
|
||||
result = &v1.ClusterDeployment{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeployments").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterDeployment).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterDeployment and updates it. Returns the server's representation of the clusterDeployment, and an error, if there is any.
|
||||
func (c *clusterDeployments) Update(ctx context.Context, clusterDeployment *v1.ClusterDeployment, opts metav1.UpdateOptions) (result *v1.ClusterDeployment, err error) {
|
||||
result = &v1.ClusterDeployment{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeployments").
|
||||
Name(clusterDeployment.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterDeployment).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *clusterDeployments) UpdateStatus(ctx context.Context, clusterDeployment *v1.ClusterDeployment, opts metav1.UpdateOptions) (result *v1.ClusterDeployment, err error) {
|
||||
result = &v1.ClusterDeployment{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeployments").
|
||||
Name(clusterDeployment.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterDeployment).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterDeployment and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterDeployments) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeployments").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterDeployments) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeployments").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterDeployment.
|
||||
func (c *clusterDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterDeployment, err error) {
|
||||
result = &v1.ClusterDeployment{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeployments").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterdeprovision.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterdeprovision.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterDeprovisionsGetter has a method to return a ClusterDeprovisionInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterDeprovisionsGetter interface {
|
||||
ClusterDeprovisions(namespace string) ClusterDeprovisionInterface
|
||||
}
|
||||
|
||||
// ClusterDeprovisionInterface has methods to work with ClusterDeprovision resources.
|
||||
type ClusterDeprovisionInterface interface {
|
||||
Create(ctx context.Context, clusterDeprovision *v1.ClusterDeprovision, opts metav1.CreateOptions) (*v1.ClusterDeprovision, error)
|
||||
Update(ctx context.Context, clusterDeprovision *v1.ClusterDeprovision, opts metav1.UpdateOptions) (*v1.ClusterDeprovision, error)
|
||||
UpdateStatus(ctx context.Context, clusterDeprovision *v1.ClusterDeprovision, opts metav1.UpdateOptions) (*v1.ClusterDeprovision, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterDeprovision, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterDeprovisionList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterDeprovision, err error)
|
||||
ClusterDeprovisionExpansion
|
||||
}
|
||||
|
||||
// clusterDeprovisions implements ClusterDeprovisionInterface
|
||||
type clusterDeprovisions struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newClusterDeprovisions returns a ClusterDeprovisions
|
||||
func newClusterDeprovisions(c *HiveV1Client, namespace string) *clusterDeprovisions {
|
||||
return &clusterDeprovisions{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterDeprovision, and returns the corresponding clusterDeprovision object, and an error if there is any.
|
||||
func (c *clusterDeprovisions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterDeprovision, err error) {
|
||||
result = &v1.ClusterDeprovision{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeprovisions").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterDeprovisions that match those selectors.
|
||||
func (c *clusterDeprovisions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterDeprovisionList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ClusterDeprovisionList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeprovisions").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterDeprovisions.
|
||||
func (c *clusterDeprovisions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeprovisions").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterDeprovision and creates it. Returns the server's representation of the clusterDeprovision, and an error, if there is any.
|
||||
func (c *clusterDeprovisions) Create(ctx context.Context, clusterDeprovision *v1.ClusterDeprovision, opts metav1.CreateOptions) (result *v1.ClusterDeprovision, err error) {
|
||||
result = &v1.ClusterDeprovision{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeprovisions").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterDeprovision).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterDeprovision and updates it. Returns the server's representation of the clusterDeprovision, and an error, if there is any.
|
||||
func (c *clusterDeprovisions) Update(ctx context.Context, clusterDeprovision *v1.ClusterDeprovision, opts metav1.UpdateOptions) (result *v1.ClusterDeprovision, err error) {
|
||||
result = &v1.ClusterDeprovision{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeprovisions").
|
||||
Name(clusterDeprovision.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterDeprovision).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *clusterDeprovisions) UpdateStatus(ctx context.Context, clusterDeprovision *v1.ClusterDeprovision, opts metav1.UpdateOptions) (result *v1.ClusterDeprovision, err error) {
|
||||
result = &v1.ClusterDeprovision{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeprovisions").
|
||||
Name(clusterDeprovision.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterDeprovision).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterDeprovision and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterDeprovisions) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeprovisions").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterDeprovisions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeprovisions").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterDeprovision.
|
||||
func (c *clusterDeprovisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterDeprovision, err error) {
|
||||
result = &v1.ClusterDeprovision{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("clusterdeprovisions").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterimageset.go
сгенерированный
поставляемый
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterimageset.go
сгенерированный
поставляемый
|
@ -1,168 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterImageSetsGetter has a method to return a ClusterImageSetInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterImageSetsGetter interface {
|
||||
ClusterImageSets() ClusterImageSetInterface
|
||||
}
|
||||
|
||||
// ClusterImageSetInterface has methods to work with ClusterImageSet resources.
|
||||
type ClusterImageSetInterface interface {
|
||||
Create(ctx context.Context, clusterImageSet *v1.ClusterImageSet, opts metav1.CreateOptions) (*v1.ClusterImageSet, error)
|
||||
Update(ctx context.Context, clusterImageSet *v1.ClusterImageSet, opts metav1.UpdateOptions) (*v1.ClusterImageSet, error)
|
||||
UpdateStatus(ctx context.Context, clusterImageSet *v1.ClusterImageSet, opts metav1.UpdateOptions) (*v1.ClusterImageSet, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterImageSet, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterImageSetList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterImageSet, err error)
|
||||
ClusterImageSetExpansion
|
||||
}
|
||||
|
||||
// clusterImageSets implements ClusterImageSetInterface
|
||||
type clusterImageSets struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newClusterImageSets returns a ClusterImageSets
|
||||
func newClusterImageSets(c *HiveV1Client) *clusterImageSets {
|
||||
return &clusterImageSets{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterImageSet, and returns the corresponding clusterImageSet object, and an error if there is any.
|
||||
func (c *clusterImageSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterImageSet, err error) {
|
||||
result = &v1.ClusterImageSet{}
|
||||
err = c.client.Get().
|
||||
Resource("clusterimagesets").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterImageSets that match those selectors.
|
||||
func (c *clusterImageSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterImageSetList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ClusterImageSetList{}
|
||||
err = c.client.Get().
|
||||
Resource("clusterimagesets").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterImageSets.
|
||||
func (c *clusterImageSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("clusterimagesets").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterImageSet and creates it. Returns the server's representation of the clusterImageSet, and an error, if there is any.
|
||||
func (c *clusterImageSets) Create(ctx context.Context, clusterImageSet *v1.ClusterImageSet, opts metav1.CreateOptions) (result *v1.ClusterImageSet, err error) {
|
||||
result = &v1.ClusterImageSet{}
|
||||
err = c.client.Post().
|
||||
Resource("clusterimagesets").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterImageSet).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterImageSet and updates it. Returns the server's representation of the clusterImageSet, and an error, if there is any.
|
||||
func (c *clusterImageSets) Update(ctx context.Context, clusterImageSet *v1.ClusterImageSet, opts metav1.UpdateOptions) (result *v1.ClusterImageSet, err error) {
|
||||
result = &v1.ClusterImageSet{}
|
||||
err = c.client.Put().
|
||||
Resource("clusterimagesets").
|
||||
Name(clusterImageSet.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterImageSet).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *clusterImageSets) UpdateStatus(ctx context.Context, clusterImageSet *v1.ClusterImageSet, opts metav1.UpdateOptions) (result *v1.ClusterImageSet, err error) {
|
||||
result = &v1.ClusterImageSet{}
|
||||
err = c.client.Put().
|
||||
Resource("clusterimagesets").
|
||||
Name(clusterImageSet.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterImageSet).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterImageSet and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterImageSets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("clusterimagesets").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterImageSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("clusterimagesets").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterImageSet.
|
||||
func (c *clusterImageSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterImageSet, err error) {
|
||||
result = &v1.ClusterImageSet{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("clusterimagesets").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterpool.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterpool.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterPoolsGetter has a method to return a ClusterPoolInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterPoolsGetter interface {
|
||||
ClusterPools(namespace string) ClusterPoolInterface
|
||||
}
|
||||
|
||||
// ClusterPoolInterface has methods to work with ClusterPool resources.
|
||||
type ClusterPoolInterface interface {
|
||||
Create(ctx context.Context, clusterPool *v1.ClusterPool, opts metav1.CreateOptions) (*v1.ClusterPool, error)
|
||||
Update(ctx context.Context, clusterPool *v1.ClusterPool, opts metav1.UpdateOptions) (*v1.ClusterPool, error)
|
||||
UpdateStatus(ctx context.Context, clusterPool *v1.ClusterPool, opts metav1.UpdateOptions) (*v1.ClusterPool, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterPool, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterPoolList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterPool, err error)
|
||||
ClusterPoolExpansion
|
||||
}
|
||||
|
||||
// clusterPools implements ClusterPoolInterface
|
||||
type clusterPools struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newClusterPools returns a ClusterPools
|
||||
func newClusterPools(c *HiveV1Client, namespace string) *clusterPools {
|
||||
return &clusterPools{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterPool, and returns the corresponding clusterPool object, and an error if there is any.
|
||||
func (c *clusterPools) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterPool, err error) {
|
||||
result = &v1.ClusterPool{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterpools").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterPools that match those selectors.
|
||||
func (c *clusterPools) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterPoolList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ClusterPoolList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterpools").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterPools.
|
||||
func (c *clusterPools) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterpools").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterPool and creates it. Returns the server's representation of the clusterPool, and an error, if there is any.
|
||||
func (c *clusterPools) Create(ctx context.Context, clusterPool *v1.ClusterPool, opts metav1.CreateOptions) (result *v1.ClusterPool, err error) {
|
||||
result = &v1.ClusterPool{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterpools").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterPool).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterPool and updates it. Returns the server's representation of the clusterPool, and an error, if there is any.
|
||||
func (c *clusterPools) Update(ctx context.Context, clusterPool *v1.ClusterPool, opts metav1.UpdateOptions) (result *v1.ClusterPool, err error) {
|
||||
result = &v1.ClusterPool{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterpools").
|
||||
Name(clusterPool.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterPool).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *clusterPools) UpdateStatus(ctx context.Context, clusterPool *v1.ClusterPool, opts metav1.UpdateOptions) (result *v1.ClusterPool, err error) {
|
||||
result = &v1.ClusterPool{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterpools").
|
||||
Name(clusterPool.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterPool).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterPool and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterPools) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterpools").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterPools) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterpools").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterPool.
|
||||
func (c *clusterPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterPool, err error) {
|
||||
result = &v1.ClusterPool{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("clusterpools").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterprovision.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterprovision.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterProvisionsGetter has a method to return a ClusterProvisionInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterProvisionsGetter interface {
|
||||
ClusterProvisions(namespace string) ClusterProvisionInterface
|
||||
}
|
||||
|
||||
// ClusterProvisionInterface has methods to work with ClusterProvision resources.
|
||||
type ClusterProvisionInterface interface {
|
||||
Create(ctx context.Context, clusterProvision *v1.ClusterProvision, opts metav1.CreateOptions) (*v1.ClusterProvision, error)
|
||||
Update(ctx context.Context, clusterProvision *v1.ClusterProvision, opts metav1.UpdateOptions) (*v1.ClusterProvision, error)
|
||||
UpdateStatus(ctx context.Context, clusterProvision *v1.ClusterProvision, opts metav1.UpdateOptions) (*v1.ClusterProvision, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterProvision, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterProvisionList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterProvision, err error)
|
||||
ClusterProvisionExpansion
|
||||
}
|
||||
|
||||
// clusterProvisions implements ClusterProvisionInterface
|
||||
type clusterProvisions struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newClusterProvisions returns a ClusterProvisions
|
||||
func newClusterProvisions(c *HiveV1Client, namespace string) *clusterProvisions {
|
||||
return &clusterProvisions{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterProvision, and returns the corresponding clusterProvision object, and an error if there is any.
|
||||
func (c *clusterProvisions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterProvision, err error) {
|
||||
result = &v1.ClusterProvision{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterprovisions").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterProvisions that match those selectors.
|
||||
func (c *clusterProvisions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterProvisionList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ClusterProvisionList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterprovisions").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterProvisions.
|
||||
func (c *clusterProvisions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterprovisions").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterProvision and creates it. Returns the server's representation of the clusterProvision, and an error, if there is any.
|
||||
func (c *clusterProvisions) Create(ctx context.Context, clusterProvision *v1.ClusterProvision, opts metav1.CreateOptions) (result *v1.ClusterProvision, err error) {
|
||||
result = &v1.ClusterProvision{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterprovisions").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterProvision).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterProvision and updates it. Returns the server's representation of the clusterProvision, and an error, if there is any.
|
||||
func (c *clusterProvisions) Update(ctx context.Context, clusterProvision *v1.ClusterProvision, opts metav1.UpdateOptions) (result *v1.ClusterProvision, err error) {
|
||||
result = &v1.ClusterProvision{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterprovisions").
|
||||
Name(clusterProvision.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterProvision).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *clusterProvisions) UpdateStatus(ctx context.Context, clusterProvision *v1.ClusterProvision, opts metav1.UpdateOptions) (result *v1.ClusterProvision, err error) {
|
||||
result = &v1.ClusterProvision{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterprovisions").
|
||||
Name(clusterProvision.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterProvision).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterProvision and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterProvisions) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterprovisions").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterProvisions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterprovisions").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterProvision.
|
||||
func (c *clusterProvisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterProvision, err error) {
|
||||
result = &v1.ClusterProvision{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("clusterprovisions").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterrelocate.go
сгенерированный
поставляемый
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterrelocate.go
сгенерированный
поставляемый
|
@ -1,168 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterRelocatesGetter has a method to return a ClusterRelocateInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterRelocatesGetter interface {
|
||||
ClusterRelocates() ClusterRelocateInterface
|
||||
}
|
||||
|
||||
// ClusterRelocateInterface has methods to work with ClusterRelocate resources.
|
||||
type ClusterRelocateInterface interface {
|
||||
Create(ctx context.Context, clusterRelocate *v1.ClusterRelocate, opts metav1.CreateOptions) (*v1.ClusterRelocate, error)
|
||||
Update(ctx context.Context, clusterRelocate *v1.ClusterRelocate, opts metav1.UpdateOptions) (*v1.ClusterRelocate, error)
|
||||
UpdateStatus(ctx context.Context, clusterRelocate *v1.ClusterRelocate, opts metav1.UpdateOptions) (*v1.ClusterRelocate, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterRelocate, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterRelocateList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRelocate, err error)
|
||||
ClusterRelocateExpansion
|
||||
}
|
||||
|
||||
// clusterRelocates implements ClusterRelocateInterface
|
||||
type clusterRelocates struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newClusterRelocates returns a ClusterRelocates
|
||||
func newClusterRelocates(c *HiveV1Client) *clusterRelocates {
|
||||
return &clusterRelocates{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterRelocate, and returns the corresponding clusterRelocate object, and an error if there is any.
|
||||
func (c *clusterRelocates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRelocate, err error) {
|
||||
result = &v1.ClusterRelocate{}
|
||||
err = c.client.Get().
|
||||
Resource("clusterrelocates").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterRelocates that match those selectors.
|
||||
func (c *clusterRelocates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRelocateList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ClusterRelocateList{}
|
||||
err = c.client.Get().
|
||||
Resource("clusterrelocates").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterRelocates.
|
||||
func (c *clusterRelocates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("clusterrelocates").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterRelocate and creates it. Returns the server's representation of the clusterRelocate, and an error, if there is any.
|
||||
func (c *clusterRelocates) Create(ctx context.Context, clusterRelocate *v1.ClusterRelocate, opts metav1.CreateOptions) (result *v1.ClusterRelocate, err error) {
|
||||
result = &v1.ClusterRelocate{}
|
||||
err = c.client.Post().
|
||||
Resource("clusterrelocates").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterRelocate).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterRelocate and updates it. Returns the server's representation of the clusterRelocate, and an error, if there is any.
|
||||
func (c *clusterRelocates) Update(ctx context.Context, clusterRelocate *v1.ClusterRelocate, opts metav1.UpdateOptions) (result *v1.ClusterRelocate, err error) {
|
||||
result = &v1.ClusterRelocate{}
|
||||
err = c.client.Put().
|
||||
Resource("clusterrelocates").
|
||||
Name(clusterRelocate.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterRelocate).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *clusterRelocates) UpdateStatus(ctx context.Context, clusterRelocate *v1.ClusterRelocate, opts metav1.UpdateOptions) (result *v1.ClusterRelocate, err error) {
|
||||
result = &v1.ClusterRelocate{}
|
||||
err = c.client.Put().
|
||||
Resource("clusterrelocates").
|
||||
Name(clusterRelocate.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterRelocate).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterRelocate and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterRelocates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("clusterrelocates").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterRelocates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("clusterrelocates").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterRelocate.
|
||||
func (c *clusterRelocates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRelocate, err error) {
|
||||
result = &v1.ClusterRelocate{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("clusterrelocates").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterstate.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/clusterstate.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterStatesGetter has a method to return a ClusterStateInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterStatesGetter interface {
|
||||
ClusterStates(namespace string) ClusterStateInterface
|
||||
}
|
||||
|
||||
// ClusterStateInterface has methods to work with ClusterState resources.
|
||||
type ClusterStateInterface interface {
|
||||
Create(ctx context.Context, clusterState *v1.ClusterState, opts metav1.CreateOptions) (*v1.ClusterState, error)
|
||||
Update(ctx context.Context, clusterState *v1.ClusterState, opts metav1.UpdateOptions) (*v1.ClusterState, error)
|
||||
UpdateStatus(ctx context.Context, clusterState *v1.ClusterState, opts metav1.UpdateOptions) (*v1.ClusterState, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.ClusterState, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.ClusterStateList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterState, err error)
|
||||
ClusterStateExpansion
|
||||
}
|
||||
|
||||
// clusterStates implements ClusterStateInterface
|
||||
type clusterStates struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newClusterStates returns a ClusterStates
|
||||
func newClusterStates(c *HiveV1Client, namespace string) *clusterStates {
|
||||
return &clusterStates{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterState, and returns the corresponding clusterState object, and an error if there is any.
|
||||
func (c *clusterStates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterState, err error) {
|
||||
result = &v1.ClusterState{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterstates").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterStates that match those selectors.
|
||||
func (c *clusterStates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterStateList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.ClusterStateList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterstates").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterStates.
|
||||
func (c *clusterStates) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterstates").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterState and creates it. Returns the server's representation of the clusterState, and an error, if there is any.
|
||||
func (c *clusterStates) Create(ctx context.Context, clusterState *v1.ClusterState, opts metav1.CreateOptions) (result *v1.ClusterState, err error) {
|
||||
result = &v1.ClusterState{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterstates").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterState).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterState and updates it. Returns the server's representation of the clusterState, and an error, if there is any.
|
||||
func (c *clusterStates) Update(ctx context.Context, clusterState *v1.ClusterState, opts metav1.UpdateOptions) (result *v1.ClusterState, err error) {
|
||||
result = &v1.ClusterState{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterstates").
|
||||
Name(clusterState.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterState).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *clusterStates) UpdateStatus(ctx context.Context, clusterState *v1.ClusterState, opts metav1.UpdateOptions) (result *v1.ClusterState, err error) {
|
||||
result = &v1.ClusterState{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterstates").
|
||||
Name(clusterState.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterState).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterState and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterStates) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterstates").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterStates) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clusterstates").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterState.
|
||||
func (c *clusterStates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterState, err error) {
|
||||
result = &v1.ClusterState{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("clusterstates").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/dnszone.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/dnszone.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// DNSZonesGetter has a method to return a DNSZoneInterface.
|
||||
// A group's client should implement this interface.
|
||||
type DNSZonesGetter interface {
|
||||
DNSZones(namespace string) DNSZoneInterface
|
||||
}
|
||||
|
||||
// DNSZoneInterface has methods to work with DNSZone resources.
|
||||
type DNSZoneInterface interface {
|
||||
Create(ctx context.Context, dNSZone *v1.DNSZone, opts metav1.CreateOptions) (*v1.DNSZone, error)
|
||||
Update(ctx context.Context, dNSZone *v1.DNSZone, opts metav1.UpdateOptions) (*v1.DNSZone, error)
|
||||
UpdateStatus(ctx context.Context, dNSZone *v1.DNSZone, opts metav1.UpdateOptions) (*v1.DNSZone, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.DNSZone, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.DNSZoneList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DNSZone, err error)
|
||||
DNSZoneExpansion
|
||||
}
|
||||
|
||||
// dNSZones implements DNSZoneInterface
|
||||
type dNSZones struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newDNSZones returns a DNSZones
|
||||
func newDNSZones(c *HiveV1Client, namespace string) *dNSZones {
|
||||
return &dNSZones{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the dNSZone, and returns the corresponding dNSZone object, and an error if there is any.
|
||||
func (c *dNSZones) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DNSZone, err error) {
|
||||
result = &v1.DNSZone{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("dnszones").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of DNSZones that match those selectors.
|
||||
func (c *dNSZones) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DNSZoneList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.DNSZoneList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("dnszones").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested dNSZones.
|
||||
func (c *dNSZones) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("dnszones").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a dNSZone and creates it. Returns the server's representation of the dNSZone, and an error, if there is any.
|
||||
func (c *dNSZones) Create(ctx context.Context, dNSZone *v1.DNSZone, opts metav1.CreateOptions) (result *v1.DNSZone, err error) {
|
||||
result = &v1.DNSZone{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("dnszones").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(dNSZone).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a dNSZone and updates it. Returns the server's representation of the dNSZone, and an error, if there is any.
|
||||
func (c *dNSZones) Update(ctx context.Context, dNSZone *v1.DNSZone, opts metav1.UpdateOptions) (result *v1.DNSZone, err error) {
|
||||
result = &v1.DNSZone{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("dnszones").
|
||||
Name(dNSZone.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(dNSZone).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *dNSZones) UpdateStatus(ctx context.Context, dNSZone *v1.DNSZone, opts metav1.UpdateOptions) (result *v1.DNSZone, err error) {
|
||||
result = &v1.DNSZone{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("dnszones").
|
||||
Name(dNSZone.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(dNSZone).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the dNSZone and deletes it. Returns an error if one occurs.
|
||||
func (c *dNSZones) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("dnszones").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *dNSZones) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("dnszones").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched dNSZone.
|
||||
func (c *dNSZones) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.DNSZone, err error) {
|
||||
result = &v1.DNSZone{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("dnszones").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package has the automatically generated typed clients.
|
||||
package v1
|
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// Package fake has the automatically generated clients.
|
||||
package fake
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_checkpoint.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_checkpoint.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeCheckpoints implements CheckpointInterface
|
||||
type FakeCheckpoints struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var checkpointsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "checkpoints"}
|
||||
|
||||
var checkpointsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "Checkpoint"}
|
||||
|
||||
// Get takes name of the checkpoint, and returns the corresponding checkpoint object, and an error if there is any.
|
||||
func (c *FakeCheckpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.Checkpoint, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(checkpointsResource, c.ns, name), &hivev1.Checkpoint{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.Checkpoint), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of Checkpoints that match those selectors.
|
||||
func (c *FakeCheckpoints) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.CheckpointList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(checkpointsResource, checkpointsKind, c.ns, opts), &hivev1.CheckpointList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.CheckpointList{ListMeta: obj.(*hivev1.CheckpointList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.CheckpointList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested checkpoints.
|
||||
func (c *FakeCheckpoints) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(checkpointsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a checkpoint and creates it. Returns the server's representation of the checkpoint, and an error, if there is any.
|
||||
func (c *FakeCheckpoints) Create(ctx context.Context, checkpoint *hivev1.Checkpoint, opts v1.CreateOptions) (result *hivev1.Checkpoint, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(checkpointsResource, c.ns, checkpoint), &hivev1.Checkpoint{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.Checkpoint), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a checkpoint and updates it. Returns the server's representation of the checkpoint, and an error, if there is any.
|
||||
func (c *FakeCheckpoints) Update(ctx context.Context, checkpoint *hivev1.Checkpoint, opts v1.UpdateOptions) (result *hivev1.Checkpoint, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(checkpointsResource, c.ns, checkpoint), &hivev1.Checkpoint{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.Checkpoint), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeCheckpoints) UpdateStatus(ctx context.Context, checkpoint *hivev1.Checkpoint, opts v1.UpdateOptions) (*hivev1.Checkpoint, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(checkpointsResource, "status", c.ns, checkpoint), &hivev1.Checkpoint{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.Checkpoint), err
|
||||
}
|
||||
|
||||
// Delete takes name of the checkpoint and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeCheckpoints) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(checkpointsResource, c.ns, name, opts), &hivev1.Checkpoint{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeCheckpoints) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(checkpointsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.CheckpointList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched checkpoint.
|
||||
func (c *FakeCheckpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.Checkpoint, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(checkpointsResource, c.ns, name, pt, data, subresources...), &hivev1.Checkpoint{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.Checkpoint), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterclaim.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterclaim.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterClaims implements ClusterClaimInterface
|
||||
type FakeClusterClaims struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var clusterclaimsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "clusterclaims"}
|
||||
|
||||
var clusterclaimsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "ClusterClaim"}
|
||||
|
||||
// Get takes name of the clusterClaim, and returns the corresponding clusterClaim object, and an error if there is any.
|
||||
func (c *FakeClusterClaims) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.ClusterClaim, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(clusterclaimsResource, c.ns, name), &hivev1.ClusterClaim{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterClaim), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterClaims that match those selectors.
|
||||
func (c *FakeClusterClaims) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.ClusterClaimList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(clusterclaimsResource, clusterclaimsKind, c.ns, opts), &hivev1.ClusterClaimList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.ClusterClaimList{ListMeta: obj.(*hivev1.ClusterClaimList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.ClusterClaimList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterClaims.
|
||||
func (c *FakeClusterClaims) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(clusterclaimsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterClaim and creates it. Returns the server's representation of the clusterClaim, and an error, if there is any.
|
||||
func (c *FakeClusterClaims) Create(ctx context.Context, clusterClaim *hivev1.ClusterClaim, opts v1.CreateOptions) (result *hivev1.ClusterClaim, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(clusterclaimsResource, c.ns, clusterClaim), &hivev1.ClusterClaim{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterClaim), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterClaim and updates it. Returns the server's representation of the clusterClaim, and an error, if there is any.
|
||||
func (c *FakeClusterClaims) Update(ctx context.Context, clusterClaim *hivev1.ClusterClaim, opts v1.UpdateOptions) (result *hivev1.ClusterClaim, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(clusterclaimsResource, c.ns, clusterClaim), &hivev1.ClusterClaim{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterClaim), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeClusterClaims) UpdateStatus(ctx context.Context, clusterClaim *hivev1.ClusterClaim, opts v1.UpdateOptions) (*hivev1.ClusterClaim, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(clusterclaimsResource, "status", c.ns, clusterClaim), &hivev1.ClusterClaim{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterClaim), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterClaim and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterClaims) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(clusterclaimsResource, c.ns, name, opts), &hivev1.ClusterClaim{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterClaims) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(clusterclaimsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.ClusterClaimList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterClaim.
|
||||
func (c *FakeClusterClaims) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.ClusterClaim, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(clusterclaimsResource, c.ns, name, pt, data, subresources...), &hivev1.ClusterClaim{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterClaim), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterdeployment.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterdeployment.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterDeployments implements ClusterDeploymentInterface
|
||||
type FakeClusterDeployments struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var clusterdeploymentsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "clusterdeployments"}
|
||||
|
||||
var clusterdeploymentsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "ClusterDeployment"}
|
||||
|
||||
// Get takes name of the clusterDeployment, and returns the corresponding clusterDeployment object, and an error if there is any.
|
||||
func (c *FakeClusterDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.ClusterDeployment, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(clusterdeploymentsResource, c.ns, name), &hivev1.ClusterDeployment{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeployment), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterDeployments that match those selectors.
|
||||
func (c *FakeClusterDeployments) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.ClusterDeploymentList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(clusterdeploymentsResource, clusterdeploymentsKind, c.ns, opts), &hivev1.ClusterDeploymentList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.ClusterDeploymentList{ListMeta: obj.(*hivev1.ClusterDeploymentList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.ClusterDeploymentList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterDeployments.
|
||||
func (c *FakeClusterDeployments) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(clusterdeploymentsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterDeployment and creates it. Returns the server's representation of the clusterDeployment, and an error, if there is any.
|
||||
func (c *FakeClusterDeployments) Create(ctx context.Context, clusterDeployment *hivev1.ClusterDeployment, opts v1.CreateOptions) (result *hivev1.ClusterDeployment, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(clusterdeploymentsResource, c.ns, clusterDeployment), &hivev1.ClusterDeployment{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeployment), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterDeployment and updates it. Returns the server's representation of the clusterDeployment, and an error, if there is any.
|
||||
func (c *FakeClusterDeployments) Update(ctx context.Context, clusterDeployment *hivev1.ClusterDeployment, opts v1.UpdateOptions) (result *hivev1.ClusterDeployment, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(clusterdeploymentsResource, c.ns, clusterDeployment), &hivev1.ClusterDeployment{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeployment), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeClusterDeployments) UpdateStatus(ctx context.Context, clusterDeployment *hivev1.ClusterDeployment, opts v1.UpdateOptions) (*hivev1.ClusterDeployment, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(clusterdeploymentsResource, "status", c.ns, clusterDeployment), &hivev1.ClusterDeployment{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeployment), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterDeployment and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterDeployments) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(clusterdeploymentsResource, c.ns, name, opts), &hivev1.ClusterDeployment{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterDeployments) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(clusterdeploymentsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.ClusterDeploymentList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterDeployment.
|
||||
func (c *FakeClusterDeployments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.ClusterDeployment, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(clusterdeploymentsResource, c.ns, name, pt, data, subresources...), &hivev1.ClusterDeployment{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeployment), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterdeprovision.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterdeprovision.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterDeprovisions implements ClusterDeprovisionInterface
|
||||
type FakeClusterDeprovisions struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var clusterdeprovisionsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "clusterdeprovisions"}
|
||||
|
||||
var clusterdeprovisionsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "ClusterDeprovision"}
|
||||
|
||||
// Get takes name of the clusterDeprovision, and returns the corresponding clusterDeprovision object, and an error if there is any.
|
||||
func (c *FakeClusterDeprovisions) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.ClusterDeprovision, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(clusterdeprovisionsResource, c.ns, name), &hivev1.ClusterDeprovision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeprovision), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterDeprovisions that match those selectors.
|
||||
func (c *FakeClusterDeprovisions) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.ClusterDeprovisionList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(clusterdeprovisionsResource, clusterdeprovisionsKind, c.ns, opts), &hivev1.ClusterDeprovisionList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.ClusterDeprovisionList{ListMeta: obj.(*hivev1.ClusterDeprovisionList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.ClusterDeprovisionList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterDeprovisions.
|
||||
func (c *FakeClusterDeprovisions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(clusterdeprovisionsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterDeprovision and creates it. Returns the server's representation of the clusterDeprovision, and an error, if there is any.
|
||||
func (c *FakeClusterDeprovisions) Create(ctx context.Context, clusterDeprovision *hivev1.ClusterDeprovision, opts v1.CreateOptions) (result *hivev1.ClusterDeprovision, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(clusterdeprovisionsResource, c.ns, clusterDeprovision), &hivev1.ClusterDeprovision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeprovision), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterDeprovision and updates it. Returns the server's representation of the clusterDeprovision, and an error, if there is any.
|
||||
func (c *FakeClusterDeprovisions) Update(ctx context.Context, clusterDeprovision *hivev1.ClusterDeprovision, opts v1.UpdateOptions) (result *hivev1.ClusterDeprovision, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(clusterdeprovisionsResource, c.ns, clusterDeprovision), &hivev1.ClusterDeprovision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeprovision), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeClusterDeprovisions) UpdateStatus(ctx context.Context, clusterDeprovision *hivev1.ClusterDeprovision, opts v1.UpdateOptions) (*hivev1.ClusterDeprovision, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(clusterdeprovisionsResource, "status", c.ns, clusterDeprovision), &hivev1.ClusterDeprovision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeprovision), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterDeprovision and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterDeprovisions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(clusterdeprovisionsResource, c.ns, name, opts), &hivev1.ClusterDeprovision{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterDeprovisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(clusterdeprovisionsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.ClusterDeprovisionList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterDeprovision.
|
||||
func (c *FakeClusterDeprovisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.ClusterDeprovision, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(clusterdeprovisionsResource, c.ns, name, pt, data, subresources...), &hivev1.ClusterDeprovision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterDeprovision), err
|
||||
}
|
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterimageset.go
сгенерированный
поставляемый
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterimageset.go
сгенерированный
поставляемый
|
@ -1,117 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterImageSets implements ClusterImageSetInterface
|
||||
type FakeClusterImageSets struct {
|
||||
Fake *FakeHiveV1
|
||||
}
|
||||
|
||||
var clusterimagesetsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "clusterimagesets"}
|
||||
|
||||
var clusterimagesetsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "ClusterImageSet"}
|
||||
|
||||
// Get takes name of the clusterImageSet, and returns the corresponding clusterImageSet object, and an error if there is any.
|
||||
func (c *FakeClusterImageSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.ClusterImageSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(clusterimagesetsResource, name), &hivev1.ClusterImageSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterImageSet), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterImageSets that match those selectors.
|
||||
func (c *FakeClusterImageSets) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.ClusterImageSetList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(clusterimagesetsResource, clusterimagesetsKind, opts), &hivev1.ClusterImageSetList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.ClusterImageSetList{ListMeta: obj.(*hivev1.ClusterImageSetList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.ClusterImageSetList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterImageSets.
|
||||
func (c *FakeClusterImageSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(clusterimagesetsResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterImageSet and creates it. Returns the server's representation of the clusterImageSet, and an error, if there is any.
|
||||
func (c *FakeClusterImageSets) Create(ctx context.Context, clusterImageSet *hivev1.ClusterImageSet, opts v1.CreateOptions) (result *hivev1.ClusterImageSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(clusterimagesetsResource, clusterImageSet), &hivev1.ClusterImageSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterImageSet), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterImageSet and updates it. Returns the server's representation of the clusterImageSet, and an error, if there is any.
|
||||
func (c *FakeClusterImageSets) Update(ctx context.Context, clusterImageSet *hivev1.ClusterImageSet, opts v1.UpdateOptions) (result *hivev1.ClusterImageSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(clusterimagesetsResource, clusterImageSet), &hivev1.ClusterImageSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterImageSet), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeClusterImageSets) UpdateStatus(ctx context.Context, clusterImageSet *hivev1.ClusterImageSet, opts v1.UpdateOptions) (*hivev1.ClusterImageSet, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateSubresourceAction(clusterimagesetsResource, "status", clusterImageSet), &hivev1.ClusterImageSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterImageSet), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterImageSet and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterImageSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(clusterimagesetsResource, name, opts), &hivev1.ClusterImageSet{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterImageSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(clusterimagesetsResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.ClusterImageSetList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterImageSet.
|
||||
func (c *FakeClusterImageSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.ClusterImageSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(clusterimagesetsResource, name, pt, data, subresources...), &hivev1.ClusterImageSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterImageSet), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterpool.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterpool.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterPools implements ClusterPoolInterface
|
||||
type FakeClusterPools struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var clusterpoolsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "clusterpools"}
|
||||
|
||||
var clusterpoolsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "ClusterPool"}
|
||||
|
||||
// Get takes name of the clusterPool, and returns the corresponding clusterPool object, and an error if there is any.
|
||||
func (c *FakeClusterPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.ClusterPool, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(clusterpoolsResource, c.ns, name), &hivev1.ClusterPool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterPool), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterPools that match those selectors.
|
||||
func (c *FakeClusterPools) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.ClusterPoolList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(clusterpoolsResource, clusterpoolsKind, c.ns, opts), &hivev1.ClusterPoolList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.ClusterPoolList{ListMeta: obj.(*hivev1.ClusterPoolList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.ClusterPoolList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterPools.
|
||||
func (c *FakeClusterPools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(clusterpoolsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterPool and creates it. Returns the server's representation of the clusterPool, and an error, if there is any.
|
||||
func (c *FakeClusterPools) Create(ctx context.Context, clusterPool *hivev1.ClusterPool, opts v1.CreateOptions) (result *hivev1.ClusterPool, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(clusterpoolsResource, c.ns, clusterPool), &hivev1.ClusterPool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterPool), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterPool and updates it. Returns the server's representation of the clusterPool, and an error, if there is any.
|
||||
func (c *FakeClusterPools) Update(ctx context.Context, clusterPool *hivev1.ClusterPool, opts v1.UpdateOptions) (result *hivev1.ClusterPool, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(clusterpoolsResource, c.ns, clusterPool), &hivev1.ClusterPool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterPool), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeClusterPools) UpdateStatus(ctx context.Context, clusterPool *hivev1.ClusterPool, opts v1.UpdateOptions) (*hivev1.ClusterPool, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(clusterpoolsResource, "status", c.ns, clusterPool), &hivev1.ClusterPool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterPool), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterPool and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterPools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(clusterpoolsResource, c.ns, name, opts), &hivev1.ClusterPool{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterPools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(clusterpoolsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.ClusterPoolList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterPool.
|
||||
func (c *FakeClusterPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.ClusterPool, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(clusterpoolsResource, c.ns, name, pt, data, subresources...), &hivev1.ClusterPool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterPool), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterprovision.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterprovision.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterProvisions implements ClusterProvisionInterface
|
||||
type FakeClusterProvisions struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var clusterprovisionsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "clusterprovisions"}
|
||||
|
||||
var clusterprovisionsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "ClusterProvision"}
|
||||
|
||||
// Get takes name of the clusterProvision, and returns the corresponding clusterProvision object, and an error if there is any.
|
||||
func (c *FakeClusterProvisions) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.ClusterProvision, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(clusterprovisionsResource, c.ns, name), &hivev1.ClusterProvision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterProvision), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterProvisions that match those selectors.
|
||||
func (c *FakeClusterProvisions) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.ClusterProvisionList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(clusterprovisionsResource, clusterprovisionsKind, c.ns, opts), &hivev1.ClusterProvisionList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.ClusterProvisionList{ListMeta: obj.(*hivev1.ClusterProvisionList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.ClusterProvisionList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterProvisions.
|
||||
func (c *FakeClusterProvisions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(clusterprovisionsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterProvision and creates it. Returns the server's representation of the clusterProvision, and an error, if there is any.
|
||||
func (c *FakeClusterProvisions) Create(ctx context.Context, clusterProvision *hivev1.ClusterProvision, opts v1.CreateOptions) (result *hivev1.ClusterProvision, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(clusterprovisionsResource, c.ns, clusterProvision), &hivev1.ClusterProvision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterProvision), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterProvision and updates it. Returns the server's representation of the clusterProvision, and an error, if there is any.
|
||||
func (c *FakeClusterProvisions) Update(ctx context.Context, clusterProvision *hivev1.ClusterProvision, opts v1.UpdateOptions) (result *hivev1.ClusterProvision, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(clusterprovisionsResource, c.ns, clusterProvision), &hivev1.ClusterProvision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterProvision), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeClusterProvisions) UpdateStatus(ctx context.Context, clusterProvision *hivev1.ClusterProvision, opts v1.UpdateOptions) (*hivev1.ClusterProvision, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(clusterprovisionsResource, "status", c.ns, clusterProvision), &hivev1.ClusterProvision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterProvision), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterProvision and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterProvisions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(clusterprovisionsResource, c.ns, name, opts), &hivev1.ClusterProvision{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterProvisions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(clusterprovisionsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.ClusterProvisionList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterProvision.
|
||||
func (c *FakeClusterProvisions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.ClusterProvision, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(clusterprovisionsResource, c.ns, name, pt, data, subresources...), &hivev1.ClusterProvision{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterProvision), err
|
||||
}
|
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterrelocate.go
сгенерированный
поставляемый
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterrelocate.go
сгенерированный
поставляемый
|
@ -1,117 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterRelocates implements ClusterRelocateInterface
|
||||
type FakeClusterRelocates struct {
|
||||
Fake *FakeHiveV1
|
||||
}
|
||||
|
||||
var clusterrelocatesResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "clusterrelocates"}
|
||||
|
||||
var clusterrelocatesKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "ClusterRelocate"}
|
||||
|
||||
// Get takes name of the clusterRelocate, and returns the corresponding clusterRelocate object, and an error if there is any.
|
||||
func (c *FakeClusterRelocates) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.ClusterRelocate, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(clusterrelocatesResource, name), &hivev1.ClusterRelocate{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterRelocate), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterRelocates that match those selectors.
|
||||
func (c *FakeClusterRelocates) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.ClusterRelocateList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(clusterrelocatesResource, clusterrelocatesKind, opts), &hivev1.ClusterRelocateList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.ClusterRelocateList{ListMeta: obj.(*hivev1.ClusterRelocateList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.ClusterRelocateList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterRelocates.
|
||||
func (c *FakeClusterRelocates) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(clusterrelocatesResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterRelocate and creates it. Returns the server's representation of the clusterRelocate, and an error, if there is any.
|
||||
func (c *FakeClusterRelocates) Create(ctx context.Context, clusterRelocate *hivev1.ClusterRelocate, opts v1.CreateOptions) (result *hivev1.ClusterRelocate, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(clusterrelocatesResource, clusterRelocate), &hivev1.ClusterRelocate{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterRelocate), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterRelocate and updates it. Returns the server's representation of the clusterRelocate, and an error, if there is any.
|
||||
func (c *FakeClusterRelocates) Update(ctx context.Context, clusterRelocate *hivev1.ClusterRelocate, opts v1.UpdateOptions) (result *hivev1.ClusterRelocate, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(clusterrelocatesResource, clusterRelocate), &hivev1.ClusterRelocate{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterRelocate), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeClusterRelocates) UpdateStatus(ctx context.Context, clusterRelocate *hivev1.ClusterRelocate, opts v1.UpdateOptions) (*hivev1.ClusterRelocate, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateSubresourceAction(clusterrelocatesResource, "status", clusterRelocate), &hivev1.ClusterRelocate{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterRelocate), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterRelocate and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterRelocates) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(clusterrelocatesResource, name, opts), &hivev1.ClusterRelocate{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterRelocates) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(clusterrelocatesResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.ClusterRelocateList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterRelocate.
|
||||
func (c *FakeClusterRelocates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.ClusterRelocate, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(clusterrelocatesResource, name, pt, data, subresources...), &hivev1.ClusterRelocate{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterRelocate), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterstate.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_clusterstate.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterStates implements ClusterStateInterface
|
||||
type FakeClusterStates struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var clusterstatesResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "clusterstates"}
|
||||
|
||||
var clusterstatesKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "ClusterState"}
|
||||
|
||||
// Get takes name of the clusterState, and returns the corresponding clusterState object, and an error if there is any.
|
||||
func (c *FakeClusterStates) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.ClusterState, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(clusterstatesResource, c.ns, name), &hivev1.ClusterState{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterState), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterStates that match those selectors.
|
||||
func (c *FakeClusterStates) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.ClusterStateList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(clusterstatesResource, clusterstatesKind, c.ns, opts), &hivev1.ClusterStateList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.ClusterStateList{ListMeta: obj.(*hivev1.ClusterStateList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.ClusterStateList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterStates.
|
||||
func (c *FakeClusterStates) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(clusterstatesResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterState and creates it. Returns the server's representation of the clusterState, and an error, if there is any.
|
||||
func (c *FakeClusterStates) Create(ctx context.Context, clusterState *hivev1.ClusterState, opts v1.CreateOptions) (result *hivev1.ClusterState, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(clusterstatesResource, c.ns, clusterState), &hivev1.ClusterState{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterState), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterState and updates it. Returns the server's representation of the clusterState, and an error, if there is any.
|
||||
func (c *FakeClusterStates) Update(ctx context.Context, clusterState *hivev1.ClusterState, opts v1.UpdateOptions) (result *hivev1.ClusterState, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(clusterstatesResource, c.ns, clusterState), &hivev1.ClusterState{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterState), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeClusterStates) UpdateStatus(ctx context.Context, clusterState *hivev1.ClusterState, opts v1.UpdateOptions) (*hivev1.ClusterState, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(clusterstatesResource, "status", c.ns, clusterState), &hivev1.ClusterState{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterState), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterState and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterStates) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(clusterstatesResource, c.ns, name, opts), &hivev1.ClusterState{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterStates) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(clusterstatesResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.ClusterStateList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterState.
|
||||
func (c *FakeClusterStates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.ClusterState, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(clusterstatesResource, c.ns, name, pt, data, subresources...), &hivev1.ClusterState{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.ClusterState), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_dnszone.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_dnszone.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeDNSZones implements DNSZoneInterface
|
||||
type FakeDNSZones struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var dnszonesResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "dnszones"}
|
||||
|
||||
var dnszonesKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "DNSZone"}
|
||||
|
||||
// Get takes name of the dNSZone, and returns the corresponding dNSZone object, and an error if there is any.
|
||||
func (c *FakeDNSZones) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.DNSZone, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(dnszonesResource, c.ns, name), &hivev1.DNSZone{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.DNSZone), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of DNSZones that match those selectors.
|
||||
func (c *FakeDNSZones) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.DNSZoneList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(dnszonesResource, dnszonesKind, c.ns, opts), &hivev1.DNSZoneList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.DNSZoneList{ListMeta: obj.(*hivev1.DNSZoneList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.DNSZoneList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested dNSZones.
|
||||
func (c *FakeDNSZones) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(dnszonesResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a dNSZone and creates it. Returns the server's representation of the dNSZone, and an error, if there is any.
|
||||
func (c *FakeDNSZones) Create(ctx context.Context, dNSZone *hivev1.DNSZone, opts v1.CreateOptions) (result *hivev1.DNSZone, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(dnszonesResource, c.ns, dNSZone), &hivev1.DNSZone{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.DNSZone), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a dNSZone and updates it. Returns the server's representation of the dNSZone, and an error, if there is any.
|
||||
func (c *FakeDNSZones) Update(ctx context.Context, dNSZone *hivev1.DNSZone, opts v1.UpdateOptions) (result *hivev1.DNSZone, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(dnszonesResource, c.ns, dNSZone), &hivev1.DNSZone{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.DNSZone), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeDNSZones) UpdateStatus(ctx context.Context, dNSZone *hivev1.DNSZone, opts v1.UpdateOptions) (*hivev1.DNSZone, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(dnszonesResource, "status", c.ns, dNSZone), &hivev1.DNSZone{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.DNSZone), err
|
||||
}
|
||||
|
||||
// Delete takes name of the dNSZone and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeDNSZones) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(dnszonesResource, c.ns, name, opts), &hivev1.DNSZone{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeDNSZones) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(dnszonesResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.DNSZoneList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched dNSZone.
|
||||
func (c *FakeDNSZones) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.DNSZone, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(dnszonesResource, c.ns, name, pt, data, subresources...), &hivev1.DNSZone{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.DNSZone), err
|
||||
}
|
88
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_hive_client.go
сгенерированный
поставляемый
88
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_hive_client.go
сгенерированный
поставляемый
|
@ -1,88 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
v1 "github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1"
|
||||
rest "k8s.io/client-go/rest"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
type FakeHiveV1 struct {
|
||||
*testing.Fake
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) Checkpoints(namespace string) v1.CheckpointInterface {
|
||||
return &FakeCheckpoints{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) ClusterClaims(namespace string) v1.ClusterClaimInterface {
|
||||
return &FakeClusterClaims{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) ClusterDeployments(namespace string) v1.ClusterDeploymentInterface {
|
||||
return &FakeClusterDeployments{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) ClusterDeprovisions(namespace string) v1.ClusterDeprovisionInterface {
|
||||
return &FakeClusterDeprovisions{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) ClusterImageSets() v1.ClusterImageSetInterface {
|
||||
return &FakeClusterImageSets{c}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) ClusterPools(namespace string) v1.ClusterPoolInterface {
|
||||
return &FakeClusterPools{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) ClusterProvisions(namespace string) v1.ClusterProvisionInterface {
|
||||
return &FakeClusterProvisions{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) ClusterRelocates() v1.ClusterRelocateInterface {
|
||||
return &FakeClusterRelocates{c}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) ClusterStates(namespace string) v1.ClusterStateInterface {
|
||||
return &FakeClusterStates{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) DNSZones(namespace string) v1.DNSZoneInterface {
|
||||
return &FakeDNSZones{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) HiveConfigs() v1.HiveConfigInterface {
|
||||
return &FakeHiveConfigs{c}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) MachinePools(namespace string) v1.MachinePoolInterface {
|
||||
return &FakeMachinePools{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) MachinePoolNameLeases(namespace string) v1.MachinePoolNameLeaseInterface {
|
||||
return &FakeMachinePoolNameLeases{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) SelectorSyncIdentityProviders() v1.SelectorSyncIdentityProviderInterface {
|
||||
return &FakeSelectorSyncIdentityProviders{c}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) SelectorSyncSets() v1.SelectorSyncSetInterface {
|
||||
return &FakeSelectorSyncSets{c}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) SyncIdentityProviders(namespace string) v1.SyncIdentityProviderInterface {
|
||||
return &FakeSyncIdentityProviders{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveV1) SyncSets(namespace string) v1.SyncSetInterface {
|
||||
return &FakeSyncSets{c, namespace}
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate
|
||||
// with API server by this client implementation.
|
||||
func (c *FakeHiveV1) RESTClient() rest.Interface {
|
||||
var ret *rest.RESTClient
|
||||
return ret
|
||||
}
|
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_hiveconfig.go
сгенерированный
поставляемый
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_hiveconfig.go
сгенерированный
поставляемый
|
@ -1,117 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeHiveConfigs implements HiveConfigInterface
|
||||
type FakeHiveConfigs struct {
|
||||
Fake *FakeHiveV1
|
||||
}
|
||||
|
||||
var hiveconfigsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "hiveconfigs"}
|
||||
|
||||
var hiveconfigsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "HiveConfig"}
|
||||
|
||||
// Get takes name of the hiveConfig, and returns the corresponding hiveConfig object, and an error if there is any.
|
||||
func (c *FakeHiveConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.HiveConfig, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(hiveconfigsResource, name), &hivev1.HiveConfig{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.HiveConfig), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of HiveConfigs that match those selectors.
|
||||
func (c *FakeHiveConfigs) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.HiveConfigList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(hiveconfigsResource, hiveconfigsKind, opts), &hivev1.HiveConfigList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.HiveConfigList{ListMeta: obj.(*hivev1.HiveConfigList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.HiveConfigList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested hiveConfigs.
|
||||
func (c *FakeHiveConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(hiveconfigsResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a hiveConfig and creates it. Returns the server's representation of the hiveConfig, and an error, if there is any.
|
||||
func (c *FakeHiveConfigs) Create(ctx context.Context, hiveConfig *hivev1.HiveConfig, opts v1.CreateOptions) (result *hivev1.HiveConfig, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(hiveconfigsResource, hiveConfig), &hivev1.HiveConfig{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.HiveConfig), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a hiveConfig and updates it. Returns the server's representation of the hiveConfig, and an error, if there is any.
|
||||
func (c *FakeHiveConfigs) Update(ctx context.Context, hiveConfig *hivev1.HiveConfig, opts v1.UpdateOptions) (result *hivev1.HiveConfig, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(hiveconfigsResource, hiveConfig), &hivev1.HiveConfig{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.HiveConfig), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeHiveConfigs) UpdateStatus(ctx context.Context, hiveConfig *hivev1.HiveConfig, opts v1.UpdateOptions) (*hivev1.HiveConfig, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateSubresourceAction(hiveconfigsResource, "status", hiveConfig), &hivev1.HiveConfig{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.HiveConfig), err
|
||||
}
|
||||
|
||||
// Delete takes name of the hiveConfig and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeHiveConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(hiveconfigsResource, name, opts), &hivev1.HiveConfig{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeHiveConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(hiveconfigsResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.HiveConfigList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched hiveConfig.
|
||||
func (c *FakeHiveConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.HiveConfig, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(hiveconfigsResource, name, pt, data, subresources...), &hivev1.HiveConfig{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.HiveConfig), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_machinepool.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_machinepool.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeMachinePools implements MachinePoolInterface
|
||||
type FakeMachinePools struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var machinepoolsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "machinepools"}
|
||||
|
||||
var machinepoolsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "MachinePool"}
|
||||
|
||||
// Get takes name of the machinePool, and returns the corresponding machinePool object, and an error if there is any.
|
||||
func (c *FakeMachinePools) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.MachinePool, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(machinepoolsResource, c.ns, name), &hivev1.MachinePool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePool), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of MachinePools that match those selectors.
|
||||
func (c *FakeMachinePools) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.MachinePoolList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(machinepoolsResource, machinepoolsKind, c.ns, opts), &hivev1.MachinePoolList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.MachinePoolList{ListMeta: obj.(*hivev1.MachinePoolList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.MachinePoolList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested machinePools.
|
||||
func (c *FakeMachinePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(machinepoolsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a machinePool and creates it. Returns the server's representation of the machinePool, and an error, if there is any.
|
||||
func (c *FakeMachinePools) Create(ctx context.Context, machinePool *hivev1.MachinePool, opts v1.CreateOptions) (result *hivev1.MachinePool, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(machinepoolsResource, c.ns, machinePool), &hivev1.MachinePool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePool), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a machinePool and updates it. Returns the server's representation of the machinePool, and an error, if there is any.
|
||||
func (c *FakeMachinePools) Update(ctx context.Context, machinePool *hivev1.MachinePool, opts v1.UpdateOptions) (result *hivev1.MachinePool, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(machinepoolsResource, c.ns, machinePool), &hivev1.MachinePool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePool), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeMachinePools) UpdateStatus(ctx context.Context, machinePool *hivev1.MachinePool, opts v1.UpdateOptions) (*hivev1.MachinePool, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(machinepoolsResource, "status", c.ns, machinePool), &hivev1.MachinePool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePool), err
|
||||
}
|
||||
|
||||
// Delete takes name of the machinePool and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeMachinePools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(machinepoolsResource, c.ns, name, opts), &hivev1.MachinePool{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeMachinePools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(machinepoolsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.MachinePoolList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched machinePool.
|
||||
func (c *FakeMachinePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.MachinePool, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(machinepoolsResource, c.ns, name, pt, data, subresources...), &hivev1.MachinePool{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePool), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_machinepoolnamelease.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_machinepoolnamelease.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeMachinePoolNameLeases implements MachinePoolNameLeaseInterface
|
||||
type FakeMachinePoolNameLeases struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var machinepoolnameleasesResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "machinepoolnameleases"}
|
||||
|
||||
var machinepoolnameleasesKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "MachinePoolNameLease"}
|
||||
|
||||
// Get takes name of the machinePoolNameLease, and returns the corresponding machinePoolNameLease object, and an error if there is any.
|
||||
func (c *FakeMachinePoolNameLeases) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.MachinePoolNameLease, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(machinepoolnameleasesResource, c.ns, name), &hivev1.MachinePoolNameLease{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePoolNameLease), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of MachinePoolNameLeases that match those selectors.
|
||||
func (c *FakeMachinePoolNameLeases) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.MachinePoolNameLeaseList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(machinepoolnameleasesResource, machinepoolnameleasesKind, c.ns, opts), &hivev1.MachinePoolNameLeaseList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.MachinePoolNameLeaseList{ListMeta: obj.(*hivev1.MachinePoolNameLeaseList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.MachinePoolNameLeaseList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested machinePoolNameLeases.
|
||||
func (c *FakeMachinePoolNameLeases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(machinepoolnameleasesResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a machinePoolNameLease and creates it. Returns the server's representation of the machinePoolNameLease, and an error, if there is any.
|
||||
func (c *FakeMachinePoolNameLeases) Create(ctx context.Context, machinePoolNameLease *hivev1.MachinePoolNameLease, opts v1.CreateOptions) (result *hivev1.MachinePoolNameLease, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(machinepoolnameleasesResource, c.ns, machinePoolNameLease), &hivev1.MachinePoolNameLease{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePoolNameLease), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a machinePoolNameLease and updates it. Returns the server's representation of the machinePoolNameLease, and an error, if there is any.
|
||||
func (c *FakeMachinePoolNameLeases) Update(ctx context.Context, machinePoolNameLease *hivev1.MachinePoolNameLease, opts v1.UpdateOptions) (result *hivev1.MachinePoolNameLease, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(machinepoolnameleasesResource, c.ns, machinePoolNameLease), &hivev1.MachinePoolNameLease{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePoolNameLease), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeMachinePoolNameLeases) UpdateStatus(ctx context.Context, machinePoolNameLease *hivev1.MachinePoolNameLease, opts v1.UpdateOptions) (*hivev1.MachinePoolNameLease, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(machinepoolnameleasesResource, "status", c.ns, machinePoolNameLease), &hivev1.MachinePoolNameLease{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePoolNameLease), err
|
||||
}
|
||||
|
||||
// Delete takes name of the machinePoolNameLease and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeMachinePoolNameLeases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(machinepoolnameleasesResource, c.ns, name, opts), &hivev1.MachinePoolNameLease{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeMachinePoolNameLeases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(machinepoolnameleasesResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.MachinePoolNameLeaseList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched machinePoolNameLease.
|
||||
func (c *FakeMachinePoolNameLeases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.MachinePoolNameLease, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(machinepoolnameleasesResource, c.ns, name, pt, data, subresources...), &hivev1.MachinePoolNameLease{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.MachinePoolNameLease), err
|
||||
}
|
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_selectorsyncidentityprovider.go
сгенерированный
поставляемый
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_selectorsyncidentityprovider.go
сгенерированный
поставляемый
|
@ -1,117 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeSelectorSyncIdentityProviders implements SelectorSyncIdentityProviderInterface
|
||||
type FakeSelectorSyncIdentityProviders struct {
|
||||
Fake *FakeHiveV1
|
||||
}
|
||||
|
||||
var selectorsyncidentityprovidersResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "selectorsyncidentityproviders"}
|
||||
|
||||
var selectorsyncidentityprovidersKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "SelectorSyncIdentityProvider"}
|
||||
|
||||
// Get takes name of the selectorSyncIdentityProvider, and returns the corresponding selectorSyncIdentityProvider object, and an error if there is any.
|
||||
func (c *FakeSelectorSyncIdentityProviders) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.SelectorSyncIdentityProvider, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(selectorsyncidentityprovidersResource, name), &hivev1.SelectorSyncIdentityProvider{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncIdentityProvider), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of SelectorSyncIdentityProviders that match those selectors.
|
||||
func (c *FakeSelectorSyncIdentityProviders) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.SelectorSyncIdentityProviderList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(selectorsyncidentityprovidersResource, selectorsyncidentityprovidersKind, opts), &hivev1.SelectorSyncIdentityProviderList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.SelectorSyncIdentityProviderList{ListMeta: obj.(*hivev1.SelectorSyncIdentityProviderList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.SelectorSyncIdentityProviderList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested selectorSyncIdentityProviders.
|
||||
func (c *FakeSelectorSyncIdentityProviders) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(selectorsyncidentityprovidersResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a selectorSyncIdentityProvider and creates it. Returns the server's representation of the selectorSyncIdentityProvider, and an error, if there is any.
|
||||
func (c *FakeSelectorSyncIdentityProviders) Create(ctx context.Context, selectorSyncIdentityProvider *hivev1.SelectorSyncIdentityProvider, opts v1.CreateOptions) (result *hivev1.SelectorSyncIdentityProvider, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(selectorsyncidentityprovidersResource, selectorSyncIdentityProvider), &hivev1.SelectorSyncIdentityProvider{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncIdentityProvider), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a selectorSyncIdentityProvider and updates it. Returns the server's representation of the selectorSyncIdentityProvider, and an error, if there is any.
|
||||
func (c *FakeSelectorSyncIdentityProviders) Update(ctx context.Context, selectorSyncIdentityProvider *hivev1.SelectorSyncIdentityProvider, opts v1.UpdateOptions) (result *hivev1.SelectorSyncIdentityProvider, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(selectorsyncidentityprovidersResource, selectorSyncIdentityProvider), &hivev1.SelectorSyncIdentityProvider{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncIdentityProvider), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeSelectorSyncIdentityProviders) UpdateStatus(ctx context.Context, selectorSyncIdentityProvider *hivev1.SelectorSyncIdentityProvider, opts v1.UpdateOptions) (*hivev1.SelectorSyncIdentityProvider, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateSubresourceAction(selectorsyncidentityprovidersResource, "status", selectorSyncIdentityProvider), &hivev1.SelectorSyncIdentityProvider{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncIdentityProvider), err
|
||||
}
|
||||
|
||||
// Delete takes name of the selectorSyncIdentityProvider and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeSelectorSyncIdentityProviders) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(selectorsyncidentityprovidersResource, name, opts), &hivev1.SelectorSyncIdentityProvider{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeSelectorSyncIdentityProviders) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(selectorsyncidentityprovidersResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.SelectorSyncIdentityProviderList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched selectorSyncIdentityProvider.
|
||||
func (c *FakeSelectorSyncIdentityProviders) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.SelectorSyncIdentityProvider, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(selectorsyncidentityprovidersResource, name, pt, data, subresources...), &hivev1.SelectorSyncIdentityProvider{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncIdentityProvider), err
|
||||
}
|
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_selectorsyncset.go
сгенерированный
поставляемый
117
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_selectorsyncset.go
сгенерированный
поставляемый
|
@ -1,117 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeSelectorSyncSets implements SelectorSyncSetInterface
|
||||
type FakeSelectorSyncSets struct {
|
||||
Fake *FakeHiveV1
|
||||
}
|
||||
|
||||
var selectorsyncsetsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "selectorsyncsets"}
|
||||
|
||||
var selectorsyncsetsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "SelectorSyncSet"}
|
||||
|
||||
// Get takes name of the selectorSyncSet, and returns the corresponding selectorSyncSet object, and an error if there is any.
|
||||
func (c *FakeSelectorSyncSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.SelectorSyncSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootGetAction(selectorsyncsetsResource, name), &hivev1.SelectorSyncSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncSet), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of SelectorSyncSets that match those selectors.
|
||||
func (c *FakeSelectorSyncSets) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.SelectorSyncSetList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootListAction(selectorsyncsetsResource, selectorsyncsetsKind, opts), &hivev1.SelectorSyncSetList{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.SelectorSyncSetList{ListMeta: obj.(*hivev1.SelectorSyncSetList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.SelectorSyncSetList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested selectorSyncSets.
|
||||
func (c *FakeSelectorSyncSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewRootWatchAction(selectorsyncsetsResource, opts))
|
||||
}
|
||||
|
||||
// Create takes the representation of a selectorSyncSet and creates it. Returns the server's representation of the selectorSyncSet, and an error, if there is any.
|
||||
func (c *FakeSelectorSyncSets) Create(ctx context.Context, selectorSyncSet *hivev1.SelectorSyncSet, opts v1.CreateOptions) (result *hivev1.SelectorSyncSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootCreateAction(selectorsyncsetsResource, selectorSyncSet), &hivev1.SelectorSyncSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncSet), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a selectorSyncSet and updates it. Returns the server's representation of the selectorSyncSet, and an error, if there is any.
|
||||
func (c *FakeSelectorSyncSets) Update(ctx context.Context, selectorSyncSet *hivev1.SelectorSyncSet, opts v1.UpdateOptions) (result *hivev1.SelectorSyncSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateAction(selectorsyncsetsResource, selectorSyncSet), &hivev1.SelectorSyncSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncSet), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeSelectorSyncSets) UpdateStatus(ctx context.Context, selectorSyncSet *hivev1.SelectorSyncSet, opts v1.UpdateOptions) (*hivev1.SelectorSyncSet, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootUpdateSubresourceAction(selectorsyncsetsResource, "status", selectorSyncSet), &hivev1.SelectorSyncSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncSet), err
|
||||
}
|
||||
|
||||
// Delete takes name of the selectorSyncSet and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeSelectorSyncSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewRootDeleteActionWithOptions(selectorsyncsetsResource, name, opts), &hivev1.SelectorSyncSet{})
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeSelectorSyncSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewRootDeleteCollectionAction(selectorsyncsetsResource, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.SelectorSyncSetList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched selectorSyncSet.
|
||||
func (c *FakeSelectorSyncSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.SelectorSyncSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewRootPatchSubresourceAction(selectorsyncsetsResource, name, pt, data, subresources...), &hivev1.SelectorSyncSet{})
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SelectorSyncSet), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_syncidentityprovider.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_syncidentityprovider.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeSyncIdentityProviders implements SyncIdentityProviderInterface
|
||||
type FakeSyncIdentityProviders struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var syncidentityprovidersResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "syncidentityproviders"}
|
||||
|
||||
var syncidentityprovidersKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "SyncIdentityProvider"}
|
||||
|
||||
// Get takes name of the syncIdentityProvider, and returns the corresponding syncIdentityProvider object, and an error if there is any.
|
||||
func (c *FakeSyncIdentityProviders) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.SyncIdentityProvider, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(syncidentityprovidersResource, c.ns, name), &hivev1.SyncIdentityProvider{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncIdentityProvider), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of SyncIdentityProviders that match those selectors.
|
||||
func (c *FakeSyncIdentityProviders) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.SyncIdentityProviderList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(syncidentityprovidersResource, syncidentityprovidersKind, c.ns, opts), &hivev1.SyncIdentityProviderList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.SyncIdentityProviderList{ListMeta: obj.(*hivev1.SyncIdentityProviderList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.SyncIdentityProviderList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested syncIdentityProviders.
|
||||
func (c *FakeSyncIdentityProviders) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(syncidentityprovidersResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a syncIdentityProvider and creates it. Returns the server's representation of the syncIdentityProvider, and an error, if there is any.
|
||||
func (c *FakeSyncIdentityProviders) Create(ctx context.Context, syncIdentityProvider *hivev1.SyncIdentityProvider, opts v1.CreateOptions) (result *hivev1.SyncIdentityProvider, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(syncidentityprovidersResource, c.ns, syncIdentityProvider), &hivev1.SyncIdentityProvider{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncIdentityProvider), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a syncIdentityProvider and updates it. Returns the server's representation of the syncIdentityProvider, and an error, if there is any.
|
||||
func (c *FakeSyncIdentityProviders) Update(ctx context.Context, syncIdentityProvider *hivev1.SyncIdentityProvider, opts v1.UpdateOptions) (result *hivev1.SyncIdentityProvider, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(syncidentityprovidersResource, c.ns, syncIdentityProvider), &hivev1.SyncIdentityProvider{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncIdentityProvider), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeSyncIdentityProviders) UpdateStatus(ctx context.Context, syncIdentityProvider *hivev1.SyncIdentityProvider, opts v1.UpdateOptions) (*hivev1.SyncIdentityProvider, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(syncidentityprovidersResource, "status", c.ns, syncIdentityProvider), &hivev1.SyncIdentityProvider{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncIdentityProvider), err
|
||||
}
|
||||
|
||||
// Delete takes name of the syncIdentityProvider and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeSyncIdentityProviders) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(syncidentityprovidersResource, c.ns, name, opts), &hivev1.SyncIdentityProvider{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeSyncIdentityProviders) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(syncidentityprovidersResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.SyncIdentityProviderList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched syncIdentityProvider.
|
||||
func (c *FakeSyncIdentityProviders) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.SyncIdentityProvider, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(syncidentityprovidersResource, c.ns, name, pt, data, subresources...), &hivev1.SyncIdentityProvider{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncIdentityProvider), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_syncset.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake/fake_syncset.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
hivev1 "github.com/openshift/hive/apis/hive/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeSyncSets implements SyncSetInterface
|
||||
type FakeSyncSets struct {
|
||||
Fake *FakeHiveV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var syncsetsResource = schema.GroupVersionResource{Group: "hive.openshift.io", Version: "v1", Resource: "syncsets"}
|
||||
|
||||
var syncsetsKind = schema.GroupVersionKind{Group: "hive.openshift.io", Version: "v1", Kind: "SyncSet"}
|
||||
|
||||
// Get takes name of the syncSet, and returns the corresponding syncSet object, and an error if there is any.
|
||||
func (c *FakeSyncSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *hivev1.SyncSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(syncsetsResource, c.ns, name), &hivev1.SyncSet{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncSet), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of SyncSets that match those selectors.
|
||||
func (c *FakeSyncSets) List(ctx context.Context, opts v1.ListOptions) (result *hivev1.SyncSetList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(syncsetsResource, syncsetsKind, c.ns, opts), &hivev1.SyncSetList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &hivev1.SyncSetList{ListMeta: obj.(*hivev1.SyncSetList).ListMeta}
|
||||
for _, item := range obj.(*hivev1.SyncSetList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested syncSets.
|
||||
func (c *FakeSyncSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(syncsetsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a syncSet and creates it. Returns the server's representation of the syncSet, and an error, if there is any.
|
||||
func (c *FakeSyncSets) Create(ctx context.Context, syncSet *hivev1.SyncSet, opts v1.CreateOptions) (result *hivev1.SyncSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(syncsetsResource, c.ns, syncSet), &hivev1.SyncSet{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncSet), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a syncSet and updates it. Returns the server's representation of the syncSet, and an error, if there is any.
|
||||
func (c *FakeSyncSets) Update(ctx context.Context, syncSet *hivev1.SyncSet, opts v1.UpdateOptions) (result *hivev1.SyncSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(syncsetsResource, c.ns, syncSet), &hivev1.SyncSet{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncSet), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeSyncSets) UpdateStatus(ctx context.Context, syncSet *hivev1.SyncSet, opts v1.UpdateOptions) (*hivev1.SyncSet, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(syncsetsResource, "status", c.ns, syncSet), &hivev1.SyncSet{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncSet), err
|
||||
}
|
||||
|
||||
// Delete takes name of the syncSet and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeSyncSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(syncsetsResource, c.ns, name, opts), &hivev1.SyncSet{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeSyncSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(syncsetsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &hivev1.SyncSetList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched syncSet.
|
||||
func (c *FakeSyncSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *hivev1.SyncSet, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(syncsetsResource, c.ns, name, pt, data, subresources...), &hivev1.SyncSet{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*hivev1.SyncSet), err
|
||||
}
|
37
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/generated_expansion.go
сгенерированный
поставляемый
37
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/generated_expansion.go
сгенерированный
поставляемый
|
@ -1,37 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
type CheckpointExpansion interface{}
|
||||
|
||||
type ClusterClaimExpansion interface{}
|
||||
|
||||
type ClusterDeploymentExpansion interface{}
|
||||
|
||||
type ClusterDeprovisionExpansion interface{}
|
||||
|
||||
type ClusterImageSetExpansion interface{}
|
||||
|
||||
type ClusterPoolExpansion interface{}
|
||||
|
||||
type ClusterProvisionExpansion interface{}
|
||||
|
||||
type ClusterRelocateExpansion interface{}
|
||||
|
||||
type ClusterStateExpansion interface{}
|
||||
|
||||
type DNSZoneExpansion interface{}
|
||||
|
||||
type HiveConfigExpansion interface{}
|
||||
|
||||
type MachinePoolExpansion interface{}
|
||||
|
||||
type MachinePoolNameLeaseExpansion interface{}
|
||||
|
||||
type SelectorSyncIdentityProviderExpansion interface{}
|
||||
|
||||
type SelectorSyncSetExpansion interface{}
|
||||
|
||||
type SyncIdentityProviderExpansion interface{}
|
||||
|
||||
type SyncSetExpansion interface{}
|
171
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/hive_client.go
сгенерированный
поставляемый
171
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/hive_client.go
сгенерированный
поставляемый
|
@ -1,171 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
"github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
type HiveV1Interface interface {
|
||||
RESTClient() rest.Interface
|
||||
CheckpointsGetter
|
||||
ClusterClaimsGetter
|
||||
ClusterDeploymentsGetter
|
||||
ClusterDeprovisionsGetter
|
||||
ClusterImageSetsGetter
|
||||
ClusterPoolsGetter
|
||||
ClusterProvisionsGetter
|
||||
ClusterRelocatesGetter
|
||||
ClusterStatesGetter
|
||||
DNSZonesGetter
|
||||
HiveConfigsGetter
|
||||
MachinePoolsGetter
|
||||
MachinePoolNameLeasesGetter
|
||||
SelectorSyncIdentityProvidersGetter
|
||||
SelectorSyncSetsGetter
|
||||
SyncIdentityProvidersGetter
|
||||
SyncSetsGetter
|
||||
}
|
||||
|
||||
// HiveV1Client is used to interact with features provided by the hive.openshift.io group.
|
||||
type HiveV1Client struct {
|
||||
restClient rest.Interface
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) Checkpoints(namespace string) CheckpointInterface {
|
||||
return newCheckpoints(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) ClusterClaims(namespace string) ClusterClaimInterface {
|
||||
return newClusterClaims(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) ClusterDeployments(namespace string) ClusterDeploymentInterface {
|
||||
return newClusterDeployments(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) ClusterDeprovisions(namespace string) ClusterDeprovisionInterface {
|
||||
return newClusterDeprovisions(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) ClusterImageSets() ClusterImageSetInterface {
|
||||
return newClusterImageSets(c)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) ClusterPools(namespace string) ClusterPoolInterface {
|
||||
return newClusterPools(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) ClusterProvisions(namespace string) ClusterProvisionInterface {
|
||||
return newClusterProvisions(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) ClusterRelocates() ClusterRelocateInterface {
|
||||
return newClusterRelocates(c)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) ClusterStates(namespace string) ClusterStateInterface {
|
||||
return newClusterStates(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) DNSZones(namespace string) DNSZoneInterface {
|
||||
return newDNSZones(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) HiveConfigs() HiveConfigInterface {
|
||||
return newHiveConfigs(c)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) MachinePools(namespace string) MachinePoolInterface {
|
||||
return newMachinePools(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) MachinePoolNameLeases(namespace string) MachinePoolNameLeaseInterface {
|
||||
return newMachinePoolNameLeases(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) SelectorSyncIdentityProviders() SelectorSyncIdentityProviderInterface {
|
||||
return newSelectorSyncIdentityProviders(c)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) SelectorSyncSets() SelectorSyncSetInterface {
|
||||
return newSelectorSyncSets(c)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) SyncIdentityProviders(namespace string) SyncIdentityProviderInterface {
|
||||
return newSyncIdentityProviders(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveV1Client) SyncSets(namespace string) SyncSetInterface {
|
||||
return newSyncSets(c, namespace)
|
||||
}
|
||||
|
||||
// NewForConfig creates a new HiveV1Client for the given config.
|
||||
// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
|
||||
// where httpClient was generated with rest.HTTPClientFor(c).
|
||||
func NewForConfig(c *rest.Config) (*HiveV1Client, error) {
|
||||
config := *c
|
||||
if err := setConfigDefaults(&config); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpClient, err := rest.HTTPClientFor(&config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return NewForConfigAndClient(&config, httpClient)
|
||||
}
|
||||
|
||||
// NewForConfigAndClient creates a new HiveV1Client for the given config and http client.
|
||||
// Note the http client provided takes precedence over the configured transport values.
|
||||
func NewForConfigAndClient(c *rest.Config, h *http.Client) (*HiveV1Client, error) {
|
||||
config := *c
|
||||
if err := setConfigDefaults(&config); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client, err := rest.RESTClientForConfigAndClient(&config, h)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &HiveV1Client{client}, nil
|
||||
}
|
||||
|
||||
// NewForConfigOrDie creates a new HiveV1Client for the given config and
|
||||
// panics if there is an error in the config.
|
||||
func NewForConfigOrDie(c *rest.Config) *HiveV1Client {
|
||||
client, err := NewForConfig(c)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return client
|
||||
}
|
||||
|
||||
// New creates a new HiveV1Client for the given RESTClient.
|
||||
func New(c rest.Interface) *HiveV1Client {
|
||||
return &HiveV1Client{c}
|
||||
}
|
||||
|
||||
func setConfigDefaults(config *rest.Config) error {
|
||||
gv := v1.SchemeGroupVersion
|
||||
config.GroupVersion = &gv
|
||||
config.APIPath = "/apis"
|
||||
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
|
||||
|
||||
if config.UserAgent == "" {
|
||||
config.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate
|
||||
// with API server by this client implementation.
|
||||
func (c *HiveV1Client) RESTClient() rest.Interface {
|
||||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
return c.restClient
|
||||
}
|
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/hiveconfig.go
сгенерированный
поставляемый
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/hiveconfig.go
сгенерированный
поставляемый
|
@ -1,168 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// HiveConfigsGetter has a method to return a HiveConfigInterface.
|
||||
// A group's client should implement this interface.
|
||||
type HiveConfigsGetter interface {
|
||||
HiveConfigs() HiveConfigInterface
|
||||
}
|
||||
|
||||
// HiveConfigInterface has methods to work with HiveConfig resources.
|
||||
type HiveConfigInterface interface {
|
||||
Create(ctx context.Context, hiveConfig *v1.HiveConfig, opts metav1.CreateOptions) (*v1.HiveConfig, error)
|
||||
Update(ctx context.Context, hiveConfig *v1.HiveConfig, opts metav1.UpdateOptions) (*v1.HiveConfig, error)
|
||||
UpdateStatus(ctx context.Context, hiveConfig *v1.HiveConfig, opts metav1.UpdateOptions) (*v1.HiveConfig, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.HiveConfig, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.HiveConfigList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HiveConfig, err error)
|
||||
HiveConfigExpansion
|
||||
}
|
||||
|
||||
// hiveConfigs implements HiveConfigInterface
|
||||
type hiveConfigs struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newHiveConfigs returns a HiveConfigs
|
||||
func newHiveConfigs(c *HiveV1Client) *hiveConfigs {
|
||||
return &hiveConfigs{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the hiveConfig, and returns the corresponding hiveConfig object, and an error if there is any.
|
||||
func (c *hiveConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HiveConfig, err error) {
|
||||
result = &v1.HiveConfig{}
|
||||
err = c.client.Get().
|
||||
Resource("hiveconfigs").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of HiveConfigs that match those selectors.
|
||||
func (c *hiveConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HiveConfigList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.HiveConfigList{}
|
||||
err = c.client.Get().
|
||||
Resource("hiveconfigs").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested hiveConfigs.
|
||||
func (c *hiveConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("hiveconfigs").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a hiveConfig and creates it. Returns the server's representation of the hiveConfig, and an error, if there is any.
|
||||
func (c *hiveConfigs) Create(ctx context.Context, hiveConfig *v1.HiveConfig, opts metav1.CreateOptions) (result *v1.HiveConfig, err error) {
|
||||
result = &v1.HiveConfig{}
|
||||
err = c.client.Post().
|
||||
Resource("hiveconfigs").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(hiveConfig).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a hiveConfig and updates it. Returns the server's representation of the hiveConfig, and an error, if there is any.
|
||||
func (c *hiveConfigs) Update(ctx context.Context, hiveConfig *v1.HiveConfig, opts metav1.UpdateOptions) (result *v1.HiveConfig, err error) {
|
||||
result = &v1.HiveConfig{}
|
||||
err = c.client.Put().
|
||||
Resource("hiveconfigs").
|
||||
Name(hiveConfig.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(hiveConfig).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *hiveConfigs) UpdateStatus(ctx context.Context, hiveConfig *v1.HiveConfig, opts metav1.UpdateOptions) (result *v1.HiveConfig, err error) {
|
||||
result = &v1.HiveConfig{}
|
||||
err = c.client.Put().
|
||||
Resource("hiveconfigs").
|
||||
Name(hiveConfig.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(hiveConfig).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the hiveConfig and deletes it. Returns an error if one occurs.
|
||||
func (c *hiveConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("hiveconfigs").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *hiveConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("hiveconfigs").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched hiveConfig.
|
||||
func (c *hiveConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HiveConfig, err error) {
|
||||
result = &v1.HiveConfig{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("hiveconfigs").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/machinepool.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/machinepool.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// MachinePoolsGetter has a method to return a MachinePoolInterface.
|
||||
// A group's client should implement this interface.
|
||||
type MachinePoolsGetter interface {
|
||||
MachinePools(namespace string) MachinePoolInterface
|
||||
}
|
||||
|
||||
// MachinePoolInterface has methods to work with MachinePool resources.
|
||||
type MachinePoolInterface interface {
|
||||
Create(ctx context.Context, machinePool *v1.MachinePool, opts metav1.CreateOptions) (*v1.MachinePool, error)
|
||||
Update(ctx context.Context, machinePool *v1.MachinePool, opts metav1.UpdateOptions) (*v1.MachinePool, error)
|
||||
UpdateStatus(ctx context.Context, machinePool *v1.MachinePool, opts metav1.UpdateOptions) (*v1.MachinePool, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MachinePool, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.MachinePoolList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachinePool, err error)
|
||||
MachinePoolExpansion
|
||||
}
|
||||
|
||||
// machinePools implements MachinePoolInterface
|
||||
type machinePools struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newMachinePools returns a MachinePools
|
||||
func newMachinePools(c *HiveV1Client, namespace string) *machinePools {
|
||||
return &machinePools{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the machinePool, and returns the corresponding machinePool object, and an error if there is any.
|
||||
func (c *machinePools) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MachinePool, err error) {
|
||||
result = &v1.MachinePool{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepools").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of MachinePools that match those selectors.
|
||||
func (c *machinePools) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MachinePoolList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.MachinePoolList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepools").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested machinePools.
|
||||
func (c *machinePools) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepools").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a machinePool and creates it. Returns the server's representation of the machinePool, and an error, if there is any.
|
||||
func (c *machinePools) Create(ctx context.Context, machinePool *v1.MachinePool, opts metav1.CreateOptions) (result *v1.MachinePool, err error) {
|
||||
result = &v1.MachinePool{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepools").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(machinePool).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a machinePool and updates it. Returns the server's representation of the machinePool, and an error, if there is any.
|
||||
func (c *machinePools) Update(ctx context.Context, machinePool *v1.MachinePool, opts metav1.UpdateOptions) (result *v1.MachinePool, err error) {
|
||||
result = &v1.MachinePool{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepools").
|
||||
Name(machinePool.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(machinePool).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *machinePools) UpdateStatus(ctx context.Context, machinePool *v1.MachinePool, opts metav1.UpdateOptions) (result *v1.MachinePool, err error) {
|
||||
result = &v1.MachinePool{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepools").
|
||||
Name(machinePool.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(machinePool).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the machinePool and deletes it. Returns an error if one occurs.
|
||||
func (c *machinePools) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepools").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *machinePools) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepools").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched machinePool.
|
||||
func (c *machinePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachinePool, err error) {
|
||||
result = &v1.MachinePool{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("machinepools").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/machinepoolnamelease.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/machinepoolnamelease.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// MachinePoolNameLeasesGetter has a method to return a MachinePoolNameLeaseInterface.
|
||||
// A group's client should implement this interface.
|
||||
type MachinePoolNameLeasesGetter interface {
|
||||
MachinePoolNameLeases(namespace string) MachinePoolNameLeaseInterface
|
||||
}
|
||||
|
||||
// MachinePoolNameLeaseInterface has methods to work with MachinePoolNameLease resources.
|
||||
type MachinePoolNameLeaseInterface interface {
|
||||
Create(ctx context.Context, machinePoolNameLease *v1.MachinePoolNameLease, opts metav1.CreateOptions) (*v1.MachinePoolNameLease, error)
|
||||
Update(ctx context.Context, machinePoolNameLease *v1.MachinePoolNameLease, opts metav1.UpdateOptions) (*v1.MachinePoolNameLease, error)
|
||||
UpdateStatus(ctx context.Context, machinePoolNameLease *v1.MachinePoolNameLease, opts metav1.UpdateOptions) (*v1.MachinePoolNameLease, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MachinePoolNameLease, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.MachinePoolNameLeaseList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachinePoolNameLease, err error)
|
||||
MachinePoolNameLeaseExpansion
|
||||
}
|
||||
|
||||
// machinePoolNameLeases implements MachinePoolNameLeaseInterface
|
||||
type machinePoolNameLeases struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newMachinePoolNameLeases returns a MachinePoolNameLeases
|
||||
func newMachinePoolNameLeases(c *HiveV1Client, namespace string) *machinePoolNameLeases {
|
||||
return &machinePoolNameLeases{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the machinePoolNameLease, and returns the corresponding machinePoolNameLease object, and an error if there is any.
|
||||
func (c *machinePoolNameLeases) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MachinePoolNameLease, err error) {
|
||||
result = &v1.MachinePoolNameLease{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepoolnameleases").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of MachinePoolNameLeases that match those selectors.
|
||||
func (c *machinePoolNameLeases) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MachinePoolNameLeaseList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.MachinePoolNameLeaseList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepoolnameleases").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested machinePoolNameLeases.
|
||||
func (c *machinePoolNameLeases) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepoolnameleases").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a machinePoolNameLease and creates it. Returns the server's representation of the machinePoolNameLease, and an error, if there is any.
|
||||
func (c *machinePoolNameLeases) Create(ctx context.Context, machinePoolNameLease *v1.MachinePoolNameLease, opts metav1.CreateOptions) (result *v1.MachinePoolNameLease, err error) {
|
||||
result = &v1.MachinePoolNameLease{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepoolnameleases").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(machinePoolNameLease).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a machinePoolNameLease and updates it. Returns the server's representation of the machinePoolNameLease, and an error, if there is any.
|
||||
func (c *machinePoolNameLeases) Update(ctx context.Context, machinePoolNameLease *v1.MachinePoolNameLease, opts metav1.UpdateOptions) (result *v1.MachinePoolNameLease, err error) {
|
||||
result = &v1.MachinePoolNameLease{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepoolnameleases").
|
||||
Name(machinePoolNameLease.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(machinePoolNameLease).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *machinePoolNameLeases) UpdateStatus(ctx context.Context, machinePoolNameLease *v1.MachinePoolNameLease, opts metav1.UpdateOptions) (result *v1.MachinePoolNameLease, err error) {
|
||||
result = &v1.MachinePoolNameLease{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepoolnameleases").
|
||||
Name(machinePoolNameLease.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(machinePoolNameLease).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the machinePoolNameLease and deletes it. Returns an error if one occurs.
|
||||
func (c *machinePoolNameLeases) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepoolnameleases").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *machinePoolNameLeases) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("machinepoolnameleases").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched machinePoolNameLease.
|
||||
func (c *machinePoolNameLeases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MachinePoolNameLease, err error) {
|
||||
result = &v1.MachinePoolNameLease{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("machinepoolnameleases").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/selectorsyncidentityprovider.go
сгенерированный
поставляемый
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/selectorsyncidentityprovider.go
сгенерированный
поставляемый
|
@ -1,168 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// SelectorSyncIdentityProvidersGetter has a method to return a SelectorSyncIdentityProviderInterface.
|
||||
// A group's client should implement this interface.
|
||||
type SelectorSyncIdentityProvidersGetter interface {
|
||||
SelectorSyncIdentityProviders() SelectorSyncIdentityProviderInterface
|
||||
}
|
||||
|
||||
// SelectorSyncIdentityProviderInterface has methods to work with SelectorSyncIdentityProvider resources.
|
||||
type SelectorSyncIdentityProviderInterface interface {
|
||||
Create(ctx context.Context, selectorSyncIdentityProvider *v1.SelectorSyncIdentityProvider, opts metav1.CreateOptions) (*v1.SelectorSyncIdentityProvider, error)
|
||||
Update(ctx context.Context, selectorSyncIdentityProvider *v1.SelectorSyncIdentityProvider, opts metav1.UpdateOptions) (*v1.SelectorSyncIdentityProvider, error)
|
||||
UpdateStatus(ctx context.Context, selectorSyncIdentityProvider *v1.SelectorSyncIdentityProvider, opts metav1.UpdateOptions) (*v1.SelectorSyncIdentityProvider, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SelectorSyncIdentityProvider, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.SelectorSyncIdentityProviderList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SelectorSyncIdentityProvider, err error)
|
||||
SelectorSyncIdentityProviderExpansion
|
||||
}
|
||||
|
||||
// selectorSyncIdentityProviders implements SelectorSyncIdentityProviderInterface
|
||||
type selectorSyncIdentityProviders struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newSelectorSyncIdentityProviders returns a SelectorSyncIdentityProviders
|
||||
func newSelectorSyncIdentityProviders(c *HiveV1Client) *selectorSyncIdentityProviders {
|
||||
return &selectorSyncIdentityProviders{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the selectorSyncIdentityProvider, and returns the corresponding selectorSyncIdentityProvider object, and an error if there is any.
|
||||
func (c *selectorSyncIdentityProviders) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SelectorSyncIdentityProvider, err error) {
|
||||
result = &v1.SelectorSyncIdentityProvider{}
|
||||
err = c.client.Get().
|
||||
Resource("selectorsyncidentityproviders").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of SelectorSyncIdentityProviders that match those selectors.
|
||||
func (c *selectorSyncIdentityProviders) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SelectorSyncIdentityProviderList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.SelectorSyncIdentityProviderList{}
|
||||
err = c.client.Get().
|
||||
Resource("selectorsyncidentityproviders").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested selectorSyncIdentityProviders.
|
||||
func (c *selectorSyncIdentityProviders) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("selectorsyncidentityproviders").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a selectorSyncIdentityProvider and creates it. Returns the server's representation of the selectorSyncIdentityProvider, and an error, if there is any.
|
||||
func (c *selectorSyncIdentityProviders) Create(ctx context.Context, selectorSyncIdentityProvider *v1.SelectorSyncIdentityProvider, opts metav1.CreateOptions) (result *v1.SelectorSyncIdentityProvider, err error) {
|
||||
result = &v1.SelectorSyncIdentityProvider{}
|
||||
err = c.client.Post().
|
||||
Resource("selectorsyncidentityproviders").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(selectorSyncIdentityProvider).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a selectorSyncIdentityProvider and updates it. Returns the server's representation of the selectorSyncIdentityProvider, and an error, if there is any.
|
||||
func (c *selectorSyncIdentityProviders) Update(ctx context.Context, selectorSyncIdentityProvider *v1.SelectorSyncIdentityProvider, opts metav1.UpdateOptions) (result *v1.SelectorSyncIdentityProvider, err error) {
|
||||
result = &v1.SelectorSyncIdentityProvider{}
|
||||
err = c.client.Put().
|
||||
Resource("selectorsyncidentityproviders").
|
||||
Name(selectorSyncIdentityProvider.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(selectorSyncIdentityProvider).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *selectorSyncIdentityProviders) UpdateStatus(ctx context.Context, selectorSyncIdentityProvider *v1.SelectorSyncIdentityProvider, opts metav1.UpdateOptions) (result *v1.SelectorSyncIdentityProvider, err error) {
|
||||
result = &v1.SelectorSyncIdentityProvider{}
|
||||
err = c.client.Put().
|
||||
Resource("selectorsyncidentityproviders").
|
||||
Name(selectorSyncIdentityProvider.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(selectorSyncIdentityProvider).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the selectorSyncIdentityProvider and deletes it. Returns an error if one occurs.
|
||||
func (c *selectorSyncIdentityProviders) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("selectorsyncidentityproviders").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *selectorSyncIdentityProviders) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("selectorsyncidentityproviders").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched selectorSyncIdentityProvider.
|
||||
func (c *selectorSyncIdentityProviders) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SelectorSyncIdentityProvider, err error) {
|
||||
result = &v1.SelectorSyncIdentityProvider{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("selectorsyncidentityproviders").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/selectorsyncset.go
сгенерированный
поставляемый
168
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/selectorsyncset.go
сгенерированный
поставляемый
|
@ -1,168 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// SelectorSyncSetsGetter has a method to return a SelectorSyncSetInterface.
|
||||
// A group's client should implement this interface.
|
||||
type SelectorSyncSetsGetter interface {
|
||||
SelectorSyncSets() SelectorSyncSetInterface
|
||||
}
|
||||
|
||||
// SelectorSyncSetInterface has methods to work with SelectorSyncSet resources.
|
||||
type SelectorSyncSetInterface interface {
|
||||
Create(ctx context.Context, selectorSyncSet *v1.SelectorSyncSet, opts metav1.CreateOptions) (*v1.SelectorSyncSet, error)
|
||||
Update(ctx context.Context, selectorSyncSet *v1.SelectorSyncSet, opts metav1.UpdateOptions) (*v1.SelectorSyncSet, error)
|
||||
UpdateStatus(ctx context.Context, selectorSyncSet *v1.SelectorSyncSet, opts metav1.UpdateOptions) (*v1.SelectorSyncSet, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SelectorSyncSet, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.SelectorSyncSetList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SelectorSyncSet, err error)
|
||||
SelectorSyncSetExpansion
|
||||
}
|
||||
|
||||
// selectorSyncSets implements SelectorSyncSetInterface
|
||||
type selectorSyncSets struct {
|
||||
client rest.Interface
|
||||
}
|
||||
|
||||
// newSelectorSyncSets returns a SelectorSyncSets
|
||||
func newSelectorSyncSets(c *HiveV1Client) *selectorSyncSets {
|
||||
return &selectorSyncSets{
|
||||
client: c.RESTClient(),
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the selectorSyncSet, and returns the corresponding selectorSyncSet object, and an error if there is any.
|
||||
func (c *selectorSyncSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SelectorSyncSet, err error) {
|
||||
result = &v1.SelectorSyncSet{}
|
||||
err = c.client.Get().
|
||||
Resource("selectorsyncsets").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of SelectorSyncSets that match those selectors.
|
||||
func (c *selectorSyncSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SelectorSyncSetList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.SelectorSyncSetList{}
|
||||
err = c.client.Get().
|
||||
Resource("selectorsyncsets").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested selectorSyncSets.
|
||||
func (c *selectorSyncSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Resource("selectorsyncsets").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a selectorSyncSet and creates it. Returns the server's representation of the selectorSyncSet, and an error, if there is any.
|
||||
func (c *selectorSyncSets) Create(ctx context.Context, selectorSyncSet *v1.SelectorSyncSet, opts metav1.CreateOptions) (result *v1.SelectorSyncSet, err error) {
|
||||
result = &v1.SelectorSyncSet{}
|
||||
err = c.client.Post().
|
||||
Resource("selectorsyncsets").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(selectorSyncSet).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a selectorSyncSet and updates it. Returns the server's representation of the selectorSyncSet, and an error, if there is any.
|
||||
func (c *selectorSyncSets) Update(ctx context.Context, selectorSyncSet *v1.SelectorSyncSet, opts metav1.UpdateOptions) (result *v1.SelectorSyncSet, err error) {
|
||||
result = &v1.SelectorSyncSet{}
|
||||
err = c.client.Put().
|
||||
Resource("selectorsyncsets").
|
||||
Name(selectorSyncSet.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(selectorSyncSet).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *selectorSyncSets) UpdateStatus(ctx context.Context, selectorSyncSet *v1.SelectorSyncSet, opts metav1.UpdateOptions) (result *v1.SelectorSyncSet, err error) {
|
||||
result = &v1.SelectorSyncSet{}
|
||||
err = c.client.Put().
|
||||
Resource("selectorsyncsets").
|
||||
Name(selectorSyncSet.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(selectorSyncSet).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the selectorSyncSet and deletes it. Returns an error if one occurs.
|
||||
func (c *selectorSyncSets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Resource("selectorsyncsets").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *selectorSyncSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Resource("selectorsyncsets").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched selectorSyncSet.
|
||||
func (c *selectorSyncSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SelectorSyncSet, err error) {
|
||||
result = &v1.SelectorSyncSet{}
|
||||
err = c.client.Patch(pt).
|
||||
Resource("selectorsyncsets").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/syncidentityprovider.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/syncidentityprovider.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// SyncIdentityProvidersGetter has a method to return a SyncIdentityProviderInterface.
|
||||
// A group's client should implement this interface.
|
||||
type SyncIdentityProvidersGetter interface {
|
||||
SyncIdentityProviders(namespace string) SyncIdentityProviderInterface
|
||||
}
|
||||
|
||||
// SyncIdentityProviderInterface has methods to work with SyncIdentityProvider resources.
|
||||
type SyncIdentityProviderInterface interface {
|
||||
Create(ctx context.Context, syncIdentityProvider *v1.SyncIdentityProvider, opts metav1.CreateOptions) (*v1.SyncIdentityProvider, error)
|
||||
Update(ctx context.Context, syncIdentityProvider *v1.SyncIdentityProvider, opts metav1.UpdateOptions) (*v1.SyncIdentityProvider, error)
|
||||
UpdateStatus(ctx context.Context, syncIdentityProvider *v1.SyncIdentityProvider, opts metav1.UpdateOptions) (*v1.SyncIdentityProvider, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SyncIdentityProvider, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.SyncIdentityProviderList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SyncIdentityProvider, err error)
|
||||
SyncIdentityProviderExpansion
|
||||
}
|
||||
|
||||
// syncIdentityProviders implements SyncIdentityProviderInterface
|
||||
type syncIdentityProviders struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newSyncIdentityProviders returns a SyncIdentityProviders
|
||||
func newSyncIdentityProviders(c *HiveV1Client, namespace string) *syncIdentityProviders {
|
||||
return &syncIdentityProviders{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the syncIdentityProvider, and returns the corresponding syncIdentityProvider object, and an error if there is any.
|
||||
func (c *syncIdentityProviders) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SyncIdentityProvider, err error) {
|
||||
result = &v1.SyncIdentityProvider{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("syncidentityproviders").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of SyncIdentityProviders that match those selectors.
|
||||
func (c *syncIdentityProviders) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SyncIdentityProviderList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.SyncIdentityProviderList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("syncidentityproviders").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested syncIdentityProviders.
|
||||
func (c *syncIdentityProviders) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("syncidentityproviders").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a syncIdentityProvider and creates it. Returns the server's representation of the syncIdentityProvider, and an error, if there is any.
|
||||
func (c *syncIdentityProviders) Create(ctx context.Context, syncIdentityProvider *v1.SyncIdentityProvider, opts metav1.CreateOptions) (result *v1.SyncIdentityProvider, err error) {
|
||||
result = &v1.SyncIdentityProvider{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("syncidentityproviders").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(syncIdentityProvider).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a syncIdentityProvider and updates it. Returns the server's representation of the syncIdentityProvider, and an error, if there is any.
|
||||
func (c *syncIdentityProviders) Update(ctx context.Context, syncIdentityProvider *v1.SyncIdentityProvider, opts metav1.UpdateOptions) (result *v1.SyncIdentityProvider, err error) {
|
||||
result = &v1.SyncIdentityProvider{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("syncidentityproviders").
|
||||
Name(syncIdentityProvider.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(syncIdentityProvider).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *syncIdentityProviders) UpdateStatus(ctx context.Context, syncIdentityProvider *v1.SyncIdentityProvider, opts metav1.UpdateOptions) (result *v1.SyncIdentityProvider, err error) {
|
||||
result = &v1.SyncIdentityProvider{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("syncidentityproviders").
|
||||
Name(syncIdentityProvider.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(syncIdentityProvider).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the syncIdentityProvider and deletes it. Returns an error if one occurs.
|
||||
func (c *syncIdentityProviders) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("syncidentityproviders").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *syncIdentityProviders) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("syncidentityproviders").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched syncIdentityProvider.
|
||||
func (c *syncIdentityProviders) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SyncIdentityProvider, err error) {
|
||||
result = &v1.SyncIdentityProvider{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("syncidentityproviders").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/syncset.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/syncset.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1 "github.com/openshift/hive/apis/hive/v1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// SyncSetsGetter has a method to return a SyncSetInterface.
|
||||
// A group's client should implement this interface.
|
||||
type SyncSetsGetter interface {
|
||||
SyncSets(namespace string) SyncSetInterface
|
||||
}
|
||||
|
||||
// SyncSetInterface has methods to work with SyncSet resources.
|
||||
type SyncSetInterface interface {
|
||||
Create(ctx context.Context, syncSet *v1.SyncSet, opts metav1.CreateOptions) (*v1.SyncSet, error)
|
||||
Update(ctx context.Context, syncSet *v1.SyncSet, opts metav1.UpdateOptions) (*v1.SyncSet, error)
|
||||
UpdateStatus(ctx context.Context, syncSet *v1.SyncSet, opts metav1.UpdateOptions) (*v1.SyncSet, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.SyncSet, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.SyncSetList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SyncSet, err error)
|
||||
SyncSetExpansion
|
||||
}
|
||||
|
||||
// syncSets implements SyncSetInterface
|
||||
type syncSets struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newSyncSets returns a SyncSets
|
||||
func newSyncSets(c *HiveV1Client, namespace string) *syncSets {
|
||||
return &syncSets{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the syncSet, and returns the corresponding syncSet object, and an error if there is any.
|
||||
func (c *syncSets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SyncSet, err error) {
|
||||
result = &v1.SyncSet{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("syncsets").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of SyncSets that match those selectors.
|
||||
func (c *syncSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SyncSetList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1.SyncSetList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("syncsets").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested syncSets.
|
||||
func (c *syncSets) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("syncsets").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a syncSet and creates it. Returns the server's representation of the syncSet, and an error, if there is any.
|
||||
func (c *syncSets) Create(ctx context.Context, syncSet *v1.SyncSet, opts metav1.CreateOptions) (result *v1.SyncSet, err error) {
|
||||
result = &v1.SyncSet{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("syncsets").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(syncSet).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a syncSet and updates it. Returns the server's representation of the syncSet, and an error, if there is any.
|
||||
func (c *syncSets) Update(ctx context.Context, syncSet *v1.SyncSet, opts metav1.UpdateOptions) (result *v1.SyncSet, err error) {
|
||||
result = &v1.SyncSet{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("syncsets").
|
||||
Name(syncSet.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(syncSet).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *syncSets) UpdateStatus(ctx context.Context, syncSet *v1.SyncSet, opts metav1.UpdateOptions) (result *v1.SyncSet, err error) {
|
||||
result = &v1.SyncSet{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("syncsets").
|
||||
Name(syncSet.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(syncSet).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the syncSet and deletes it. Returns an error if one occurs.
|
||||
func (c *syncSets) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("syncsets").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *syncSets) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("syncsets").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched syncSet.
|
||||
func (c *syncSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SyncSet, err error) {
|
||||
result = &v1.SyncSet{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("syncsets").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/clustersync.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/clustersync.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1alpha1 "github.com/openshift/hive/apis/hiveinternal/v1alpha1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterSyncsGetter has a method to return a ClusterSyncInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterSyncsGetter interface {
|
||||
ClusterSyncs(namespace string) ClusterSyncInterface
|
||||
}
|
||||
|
||||
// ClusterSyncInterface has methods to work with ClusterSync resources.
|
||||
type ClusterSyncInterface interface {
|
||||
Create(ctx context.Context, clusterSync *v1alpha1.ClusterSync, opts v1.CreateOptions) (*v1alpha1.ClusterSync, error)
|
||||
Update(ctx context.Context, clusterSync *v1alpha1.ClusterSync, opts v1.UpdateOptions) (*v1alpha1.ClusterSync, error)
|
||||
UpdateStatus(ctx context.Context, clusterSync *v1alpha1.ClusterSync, opts v1.UpdateOptions) (*v1alpha1.ClusterSync, error)
|
||||
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ClusterSync, error)
|
||||
List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ClusterSyncList, error)
|
||||
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterSync, err error)
|
||||
ClusterSyncExpansion
|
||||
}
|
||||
|
||||
// clusterSyncs implements ClusterSyncInterface
|
||||
type clusterSyncs struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newClusterSyncs returns a ClusterSyncs
|
||||
func newClusterSyncs(c *HiveinternalV1alpha1Client, namespace string) *clusterSyncs {
|
||||
return &clusterSyncs{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterSync, and returns the corresponding clusterSync object, and an error if there is any.
|
||||
func (c *clusterSyncs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterSync, err error) {
|
||||
result = &v1alpha1.ClusterSync{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncs").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterSyncs that match those selectors.
|
||||
func (c *clusterSyncs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterSyncList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1alpha1.ClusterSyncList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncs").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterSyncs.
|
||||
func (c *clusterSyncs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncs").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterSync and creates it. Returns the server's representation of the clusterSync, and an error, if there is any.
|
||||
func (c *clusterSyncs) Create(ctx context.Context, clusterSync *v1alpha1.ClusterSync, opts v1.CreateOptions) (result *v1alpha1.ClusterSync, err error) {
|
||||
result = &v1alpha1.ClusterSync{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncs").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterSync).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterSync and updates it. Returns the server's representation of the clusterSync, and an error, if there is any.
|
||||
func (c *clusterSyncs) Update(ctx context.Context, clusterSync *v1alpha1.ClusterSync, opts v1.UpdateOptions) (result *v1alpha1.ClusterSync, err error) {
|
||||
result = &v1alpha1.ClusterSync{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncs").
|
||||
Name(clusterSync.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterSync).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *clusterSyncs) UpdateStatus(ctx context.Context, clusterSync *v1alpha1.ClusterSync, opts v1.UpdateOptions) (result *v1alpha1.ClusterSync, err error) {
|
||||
result = &v1alpha1.ClusterSync{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncs").
|
||||
Name(clusterSync.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterSync).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterSync and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterSyncs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncs").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterSyncs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncs").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterSync.
|
||||
func (c *clusterSyncs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterSync, err error) {
|
||||
result = &v1alpha1.ClusterSync{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncs").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
162
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/clustersynclease.go
сгенерированный
поставляемый
162
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/clustersynclease.go
сгенерированный
поставляемый
|
@ -1,162 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1alpha1 "github.com/openshift/hive/apis/hiveinternal/v1alpha1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// ClusterSyncLeasesGetter has a method to return a ClusterSyncLeaseInterface.
|
||||
// A group's client should implement this interface.
|
||||
type ClusterSyncLeasesGetter interface {
|
||||
ClusterSyncLeases(namespace string) ClusterSyncLeaseInterface
|
||||
}
|
||||
|
||||
// ClusterSyncLeaseInterface has methods to work with ClusterSyncLease resources.
|
||||
type ClusterSyncLeaseInterface interface {
|
||||
Create(ctx context.Context, clusterSyncLease *v1alpha1.ClusterSyncLease, opts v1.CreateOptions) (*v1alpha1.ClusterSyncLease, error)
|
||||
Update(ctx context.Context, clusterSyncLease *v1alpha1.ClusterSyncLease, opts v1.UpdateOptions) (*v1alpha1.ClusterSyncLease, error)
|
||||
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.ClusterSyncLease, error)
|
||||
List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.ClusterSyncLeaseList, error)
|
||||
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterSyncLease, err error)
|
||||
ClusterSyncLeaseExpansion
|
||||
}
|
||||
|
||||
// clusterSyncLeases implements ClusterSyncLeaseInterface
|
||||
type clusterSyncLeases struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newClusterSyncLeases returns a ClusterSyncLeases
|
||||
func newClusterSyncLeases(c *HiveinternalV1alpha1Client, namespace string) *clusterSyncLeases {
|
||||
return &clusterSyncLeases{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the clusterSyncLease, and returns the corresponding clusterSyncLease object, and an error if there is any.
|
||||
func (c *clusterSyncLeases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterSyncLease, err error) {
|
||||
result = &v1alpha1.ClusterSyncLease{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncleases").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterSyncLeases that match those selectors.
|
||||
func (c *clusterSyncLeases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterSyncLeaseList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1alpha1.ClusterSyncLeaseList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncleases").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterSyncLeases.
|
||||
func (c *clusterSyncLeases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncleases").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterSyncLease and creates it. Returns the server's representation of the clusterSyncLease, and an error, if there is any.
|
||||
func (c *clusterSyncLeases) Create(ctx context.Context, clusterSyncLease *v1alpha1.ClusterSyncLease, opts v1.CreateOptions) (result *v1alpha1.ClusterSyncLease, err error) {
|
||||
result = &v1alpha1.ClusterSyncLease{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncleases").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterSyncLease).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterSyncLease and updates it. Returns the server's representation of the clusterSyncLease, and an error, if there is any.
|
||||
func (c *clusterSyncLeases) Update(ctx context.Context, clusterSyncLease *v1alpha1.ClusterSyncLease, opts v1.UpdateOptions) (result *v1alpha1.ClusterSyncLease, err error) {
|
||||
result = &v1alpha1.ClusterSyncLease{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncleases").
|
||||
Name(clusterSyncLease.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(clusterSyncLease).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterSyncLease and deletes it. Returns an error if one occurs.
|
||||
func (c *clusterSyncLeases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncleases").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *clusterSyncLeases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncleases").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterSyncLease.
|
||||
func (c *clusterSyncLeases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterSyncLease, err error) {
|
||||
result = &v1alpha1.ClusterSyncLease{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("clustersyncleases").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// This package has the automatically generated typed clients.
|
||||
package v1alpha1
|
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/doc.go
сгенерированный
поставляемый
4
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/doc.go
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
// Package fake has the automatically generated clients.
|
||||
package fake
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/fake_clustersync.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/fake_clustersync.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/openshift/hive/apis/hiveinternal/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterSyncs implements ClusterSyncInterface
|
||||
type FakeClusterSyncs struct {
|
||||
Fake *FakeHiveinternalV1alpha1
|
||||
ns string
|
||||
}
|
||||
|
||||
var clustersyncsResource = schema.GroupVersionResource{Group: "hiveinternal.openshift.io", Version: "v1alpha1", Resource: "clustersyncs"}
|
||||
|
||||
var clustersyncsKind = schema.GroupVersionKind{Group: "hiveinternal.openshift.io", Version: "v1alpha1", Kind: "ClusterSync"}
|
||||
|
||||
// Get takes name of the clusterSync, and returns the corresponding clusterSync object, and an error if there is any.
|
||||
func (c *FakeClusterSyncs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterSync, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(clustersyncsResource, c.ns, name), &v1alpha1.ClusterSync{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ClusterSync), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterSyncs that match those selectors.
|
||||
func (c *FakeClusterSyncs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterSyncList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(clustersyncsResource, clustersyncsKind, c.ns, opts), &v1alpha1.ClusterSyncList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1alpha1.ClusterSyncList{ListMeta: obj.(*v1alpha1.ClusterSyncList).ListMeta}
|
||||
for _, item := range obj.(*v1alpha1.ClusterSyncList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterSyncs.
|
||||
func (c *FakeClusterSyncs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(clustersyncsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterSync and creates it. Returns the server's representation of the clusterSync, and an error, if there is any.
|
||||
func (c *FakeClusterSyncs) Create(ctx context.Context, clusterSync *v1alpha1.ClusterSync, opts v1.CreateOptions) (result *v1alpha1.ClusterSync, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(clustersyncsResource, c.ns, clusterSync), &v1alpha1.ClusterSync{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ClusterSync), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterSync and updates it. Returns the server's representation of the clusterSync, and an error, if there is any.
|
||||
func (c *FakeClusterSyncs) Update(ctx context.Context, clusterSync *v1alpha1.ClusterSync, opts v1.UpdateOptions) (result *v1alpha1.ClusterSync, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(clustersyncsResource, c.ns, clusterSync), &v1alpha1.ClusterSync{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ClusterSync), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeClusterSyncs) UpdateStatus(ctx context.Context, clusterSync *v1alpha1.ClusterSync, opts v1.UpdateOptions) (*v1alpha1.ClusterSync, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(clustersyncsResource, "status", c.ns, clusterSync), &v1alpha1.ClusterSync{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ClusterSync), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterSync and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterSyncs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(clustersyncsResource, c.ns, name, opts), &v1alpha1.ClusterSync{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterSyncs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(clustersyncsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1alpha1.ClusterSyncList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterSync.
|
||||
func (c *FakeClusterSyncs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterSync, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(clustersyncsResource, c.ns, name, pt, data, subresources...), &v1alpha1.ClusterSync{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ClusterSync), err
|
||||
}
|
114
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/fake_clustersynclease.go
сгенерированный
поставляемый
114
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/fake_clustersynclease.go
сгенерированный
поставляемый
|
@ -1,114 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/openshift/hive/apis/hiveinternal/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeClusterSyncLeases implements ClusterSyncLeaseInterface
|
||||
type FakeClusterSyncLeases struct {
|
||||
Fake *FakeHiveinternalV1alpha1
|
||||
ns string
|
||||
}
|
||||
|
||||
var clustersyncleasesResource = schema.GroupVersionResource{Group: "hiveinternal.openshift.io", Version: "v1alpha1", Resource: "clustersyncleases"}
|
||||
|
||||
var clustersyncleasesKind = schema.GroupVersionKind{Group: "hiveinternal.openshift.io", Version: "v1alpha1", Kind: "ClusterSyncLease"}
|
||||
|
||||
// Get takes name of the clusterSyncLease, and returns the corresponding clusterSyncLease object, and an error if there is any.
|
||||
func (c *FakeClusterSyncLeases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterSyncLease, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(clustersyncleasesResource, c.ns, name), &v1alpha1.ClusterSyncLease{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ClusterSyncLease), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of ClusterSyncLeases that match those selectors.
|
||||
func (c *FakeClusterSyncLeases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterSyncLeaseList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(clustersyncleasesResource, clustersyncleasesKind, c.ns, opts), &v1alpha1.ClusterSyncLeaseList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1alpha1.ClusterSyncLeaseList{ListMeta: obj.(*v1alpha1.ClusterSyncLeaseList).ListMeta}
|
||||
for _, item := range obj.(*v1alpha1.ClusterSyncLeaseList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested clusterSyncLeases.
|
||||
func (c *FakeClusterSyncLeases) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(clustersyncleasesResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a clusterSyncLease and creates it. Returns the server's representation of the clusterSyncLease, and an error, if there is any.
|
||||
func (c *FakeClusterSyncLeases) Create(ctx context.Context, clusterSyncLease *v1alpha1.ClusterSyncLease, opts v1.CreateOptions) (result *v1alpha1.ClusterSyncLease, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(clustersyncleasesResource, c.ns, clusterSyncLease), &v1alpha1.ClusterSyncLease{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ClusterSyncLease), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a clusterSyncLease and updates it. Returns the server's representation of the clusterSyncLease, and an error, if there is any.
|
||||
func (c *FakeClusterSyncLeases) Update(ctx context.Context, clusterSyncLease *v1alpha1.ClusterSyncLease, opts v1.UpdateOptions) (result *v1alpha1.ClusterSyncLease, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(clustersyncleasesResource, c.ns, clusterSyncLease), &v1alpha1.ClusterSyncLease{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ClusterSyncLease), err
|
||||
}
|
||||
|
||||
// Delete takes name of the clusterSyncLease and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeClusterSyncLeases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(clustersyncleasesResource, c.ns, name, opts), &v1alpha1.ClusterSyncLease{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeClusterSyncLeases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(clustersyncleasesResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1alpha1.ClusterSyncLeaseList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched clusterSyncLease.
|
||||
func (c *FakeClusterSyncLeases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ClusterSyncLease, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(clustersyncleasesResource, c.ns, name, pt, data, subresources...), &v1alpha1.ClusterSyncLease{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.ClusterSyncLease), err
|
||||
}
|
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/fake_fakeclusterinstall.go
сгенерированный
поставляемый
126
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/fake_fakeclusterinstall.go
сгенерированный
поставляемый
|
@ -1,126 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/openshift/hive/apis/hiveinternal/v1alpha1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
// FakeFakeClusterInstalls implements FakeClusterInstallInterface
|
||||
type FakeFakeClusterInstalls struct {
|
||||
Fake *FakeHiveinternalV1alpha1
|
||||
ns string
|
||||
}
|
||||
|
||||
var fakeclusterinstallsResource = schema.GroupVersionResource{Group: "hiveinternal.openshift.io", Version: "v1alpha1", Resource: "fakeclusterinstalls"}
|
||||
|
||||
var fakeclusterinstallsKind = schema.GroupVersionKind{Group: "hiveinternal.openshift.io", Version: "v1alpha1", Kind: "FakeClusterInstall"}
|
||||
|
||||
// Get takes name of the fakeClusterInstall, and returns the corresponding fakeClusterInstall object, and an error if there is any.
|
||||
func (c *FakeFakeClusterInstalls) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FakeClusterInstall, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetAction(fakeclusterinstallsResource, c.ns, name), &v1alpha1.FakeClusterInstall{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.FakeClusterInstall), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of FakeClusterInstalls that match those selectors.
|
||||
func (c *FakeFakeClusterInstalls) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FakeClusterInstallList, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListAction(fakeclusterinstallsResource, fakeclusterinstallsKind, c.ns, opts), &v1alpha1.FakeClusterInstallList{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1alpha1.FakeClusterInstallList{ListMeta: obj.(*v1alpha1.FakeClusterInstallList).ListMeta}
|
||||
for _, item := range obj.(*v1alpha1.FakeClusterInstallList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested fakeClusterInstalls.
|
||||
func (c *FakeFakeClusterInstalls) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchAction(fakeclusterinstallsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a fakeClusterInstall and creates it. Returns the server's representation of the fakeClusterInstall, and an error, if there is any.
|
||||
func (c *FakeFakeClusterInstalls) Create(ctx context.Context, fakeClusterInstall *v1alpha1.FakeClusterInstall, opts v1.CreateOptions) (result *v1alpha1.FakeClusterInstall, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateAction(fakeclusterinstallsResource, c.ns, fakeClusterInstall), &v1alpha1.FakeClusterInstall{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.FakeClusterInstall), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a fakeClusterInstall and updates it. Returns the server's representation of the fakeClusterInstall, and an error, if there is any.
|
||||
func (c *FakeFakeClusterInstalls) Update(ctx context.Context, fakeClusterInstall *v1alpha1.FakeClusterInstall, opts v1.UpdateOptions) (result *v1alpha1.FakeClusterInstall, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateAction(fakeclusterinstallsResource, c.ns, fakeClusterInstall), &v1alpha1.FakeClusterInstall{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.FakeClusterInstall), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeFakeClusterInstalls) UpdateStatus(ctx context.Context, fakeClusterInstall *v1alpha1.FakeClusterInstall, opts v1.UpdateOptions) (*v1alpha1.FakeClusterInstall, error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceAction(fakeclusterinstallsResource, "status", c.ns, fakeClusterInstall), &v1alpha1.FakeClusterInstall{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.FakeClusterInstall), err
|
||||
}
|
||||
|
||||
// Delete takes name of the fakeClusterInstall and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeFakeClusterInstalls) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(fakeclusterinstallsResource, c.ns, name, opts), &v1alpha1.FakeClusterInstall{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeFakeClusterInstalls) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionAction(fakeclusterinstallsResource, c.ns, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1alpha1.FakeClusterInstallList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched fakeClusterInstall.
|
||||
func (c *FakeFakeClusterInstalls) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FakeClusterInstall, err error) {
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceAction(fakeclusterinstallsResource, c.ns, name, pt, data, subresources...), &v1alpha1.FakeClusterInstall{})
|
||||
|
||||
if obj == nil {
|
||||
return nil, err
|
||||
}
|
||||
return obj.(*v1alpha1.FakeClusterInstall), err
|
||||
}
|
32
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/fake_hiveinternal_client.go
сгенерированный
поставляемый
32
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake/fake_hiveinternal_client.go
сгенерированный
поставляемый
|
@ -1,32 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package fake
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1"
|
||||
rest "k8s.io/client-go/rest"
|
||||
testing "k8s.io/client-go/testing"
|
||||
)
|
||||
|
||||
type FakeHiveinternalV1alpha1 struct {
|
||||
*testing.Fake
|
||||
}
|
||||
|
||||
func (c *FakeHiveinternalV1alpha1) ClusterSyncs(namespace string) v1alpha1.ClusterSyncInterface {
|
||||
return &FakeClusterSyncs{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveinternalV1alpha1) ClusterSyncLeases(namespace string) v1alpha1.ClusterSyncLeaseInterface {
|
||||
return &FakeClusterSyncLeases{c, namespace}
|
||||
}
|
||||
|
||||
func (c *FakeHiveinternalV1alpha1) FakeClusterInstalls(namespace string) v1alpha1.FakeClusterInstallInterface {
|
||||
return &FakeFakeClusterInstalls{c, namespace}
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate
|
||||
// with API server by this client implementation.
|
||||
func (c *FakeHiveinternalV1alpha1) RESTClient() rest.Interface {
|
||||
var ret *rest.RESTClient
|
||||
return ret
|
||||
}
|
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fakeclusterinstall.go
сгенерированный
поставляемый
179
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fakeclusterinstall.go
сгенерированный
поставляемый
|
@ -1,179 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
v1alpha1 "github.com/openshift/hive/apis/hiveinternal/v1alpha1"
|
||||
scheme "github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
// FakeClusterInstallsGetter has a method to return a FakeClusterInstallInterface.
|
||||
// A group's client should implement this interface.
|
||||
type FakeClusterInstallsGetter interface {
|
||||
FakeClusterInstalls(namespace string) FakeClusterInstallInterface
|
||||
}
|
||||
|
||||
// FakeClusterInstallInterface has methods to work with FakeClusterInstall resources.
|
||||
type FakeClusterInstallInterface interface {
|
||||
Create(ctx context.Context, fakeClusterInstall *v1alpha1.FakeClusterInstall, opts v1.CreateOptions) (*v1alpha1.FakeClusterInstall, error)
|
||||
Update(ctx context.Context, fakeClusterInstall *v1alpha1.FakeClusterInstall, opts v1.UpdateOptions) (*v1alpha1.FakeClusterInstall, error)
|
||||
UpdateStatus(ctx context.Context, fakeClusterInstall *v1alpha1.FakeClusterInstall, opts v1.UpdateOptions) (*v1alpha1.FakeClusterInstall, error)
|
||||
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.FakeClusterInstall, error)
|
||||
List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.FakeClusterInstallList, error)
|
||||
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FakeClusterInstall, err error)
|
||||
FakeClusterInstallExpansion
|
||||
}
|
||||
|
||||
// fakeClusterInstalls implements FakeClusterInstallInterface
|
||||
type fakeClusterInstalls struct {
|
||||
client rest.Interface
|
||||
ns string
|
||||
}
|
||||
|
||||
// newFakeClusterInstalls returns a FakeClusterInstalls
|
||||
func newFakeClusterInstalls(c *HiveinternalV1alpha1Client, namespace string) *fakeClusterInstalls {
|
||||
return &fakeClusterInstalls{
|
||||
client: c.RESTClient(),
|
||||
ns: namespace,
|
||||
}
|
||||
}
|
||||
|
||||
// Get takes name of the fakeClusterInstall, and returns the corresponding fakeClusterInstall object, and an error if there is any.
|
||||
func (c *fakeClusterInstalls) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FakeClusterInstall, err error) {
|
||||
result = &v1alpha1.FakeClusterInstall{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("fakeclusterinstalls").
|
||||
Name(name).
|
||||
VersionedParams(&options, scheme.ParameterCodec).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of FakeClusterInstalls that match those selectors.
|
||||
func (c *fakeClusterInstalls) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FakeClusterInstallList, err error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
result = &v1alpha1.FakeClusterInstallList{}
|
||||
err = c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("fakeclusterinstalls").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested fakeClusterInstalls.
|
||||
func (c *fakeClusterInstalls) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
||||
var timeout time.Duration
|
||||
if opts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
opts.Watch = true
|
||||
return c.client.Get().
|
||||
Namespace(c.ns).
|
||||
Resource("fakeclusterinstalls").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Watch(ctx)
|
||||
}
|
||||
|
||||
// Create takes the representation of a fakeClusterInstall and creates it. Returns the server's representation of the fakeClusterInstall, and an error, if there is any.
|
||||
func (c *fakeClusterInstalls) Create(ctx context.Context, fakeClusterInstall *v1alpha1.FakeClusterInstall, opts v1.CreateOptions) (result *v1alpha1.FakeClusterInstall, err error) {
|
||||
result = &v1alpha1.FakeClusterInstall{}
|
||||
err = c.client.Post().
|
||||
Namespace(c.ns).
|
||||
Resource("fakeclusterinstalls").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(fakeClusterInstall).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Update takes the representation of a fakeClusterInstall and updates it. Returns the server's representation of the fakeClusterInstall, and an error, if there is any.
|
||||
func (c *fakeClusterInstalls) Update(ctx context.Context, fakeClusterInstall *v1alpha1.FakeClusterInstall, opts v1.UpdateOptions) (result *v1alpha1.FakeClusterInstall, err error) {
|
||||
result = &v1alpha1.FakeClusterInstall{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("fakeclusterinstalls").
|
||||
Name(fakeClusterInstall.Name).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(fakeClusterInstall).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *fakeClusterInstalls) UpdateStatus(ctx context.Context, fakeClusterInstall *v1alpha1.FakeClusterInstall, opts v1.UpdateOptions) (result *v1alpha1.FakeClusterInstall, err error) {
|
||||
result = &v1alpha1.FakeClusterInstall{}
|
||||
err = c.client.Put().
|
||||
Namespace(c.ns).
|
||||
Resource("fakeclusterinstalls").
|
||||
Name(fakeClusterInstall.Name).
|
||||
SubResource("status").
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(fakeClusterInstall).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
||||
|
||||
// Delete takes name of the fakeClusterInstall and deletes it. Returns an error if one occurs.
|
||||
func (c *fakeClusterInstalls) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("fakeclusterinstalls").
|
||||
Name(name).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *fakeClusterInstalls) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
||||
var timeout time.Duration
|
||||
if listOpts.TimeoutSeconds != nil {
|
||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
||||
}
|
||||
return c.client.Delete().
|
||||
Namespace(c.ns).
|
||||
Resource("fakeclusterinstalls").
|
||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
||||
Timeout(timeout).
|
||||
Body(&opts).
|
||||
Do(ctx).
|
||||
Error()
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched fakeClusterInstall.
|
||||
func (c *fakeClusterInstalls) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FakeClusterInstall, err error) {
|
||||
result = &v1alpha1.FakeClusterInstall{}
|
||||
err = c.client.Patch(pt).
|
||||
Namespace(c.ns).
|
||||
Resource("fakeclusterinstalls").
|
||||
Name(name).
|
||||
SubResource(subresources...).
|
||||
VersionedParams(&opts, scheme.ParameterCodec).
|
||||
Body(data).
|
||||
Do(ctx).
|
||||
Into(result)
|
||||
return
|
||||
}
|
9
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/generated_expansion.go
сгенерированный
поставляемый
9
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/generated_expansion.go
сгенерированный
поставляемый
|
@ -1,9 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
type ClusterSyncExpansion interface{}
|
||||
|
||||
type ClusterSyncLeaseExpansion interface{}
|
||||
|
||||
type FakeClusterInstallExpansion interface{}
|
101
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/hiveinternal_client.go
сгенерированный
поставляемый
101
vendor/github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/hiveinternal_client.go
сгенерированный
поставляемый
|
@ -1,101 +0,0 @@
|
|||
// Code generated by client-gen. DO NOT EDIT.
|
||||
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
v1alpha1 "github.com/openshift/hive/apis/hiveinternal/v1alpha1"
|
||||
"github.com/openshift/hive/pkg/client/clientset/versioned/scheme"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
type HiveinternalV1alpha1Interface interface {
|
||||
RESTClient() rest.Interface
|
||||
ClusterSyncsGetter
|
||||
ClusterSyncLeasesGetter
|
||||
FakeClusterInstallsGetter
|
||||
}
|
||||
|
||||
// HiveinternalV1alpha1Client is used to interact with features provided by the hiveinternal.openshift.io group.
|
||||
type HiveinternalV1alpha1Client struct {
|
||||
restClient rest.Interface
|
||||
}
|
||||
|
||||
func (c *HiveinternalV1alpha1Client) ClusterSyncs(namespace string) ClusterSyncInterface {
|
||||
return newClusterSyncs(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveinternalV1alpha1Client) ClusterSyncLeases(namespace string) ClusterSyncLeaseInterface {
|
||||
return newClusterSyncLeases(c, namespace)
|
||||
}
|
||||
|
||||
func (c *HiveinternalV1alpha1Client) FakeClusterInstalls(namespace string) FakeClusterInstallInterface {
|
||||
return newFakeClusterInstalls(c, namespace)
|
||||
}
|
||||
|
||||
// NewForConfig creates a new HiveinternalV1alpha1Client for the given config.
|
||||
// NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
|
||||
// where httpClient was generated with rest.HTTPClientFor(c).
|
||||
func NewForConfig(c *rest.Config) (*HiveinternalV1alpha1Client, error) {
|
||||
config := *c
|
||||
if err := setConfigDefaults(&config); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
httpClient, err := rest.HTTPClientFor(&config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return NewForConfigAndClient(&config, httpClient)
|
||||
}
|
||||
|
||||
// NewForConfigAndClient creates a new HiveinternalV1alpha1Client for the given config and http client.
|
||||
// Note the http client provided takes precedence over the configured transport values.
|
||||
func NewForConfigAndClient(c *rest.Config, h *http.Client) (*HiveinternalV1alpha1Client, error) {
|
||||
config := *c
|
||||
if err := setConfigDefaults(&config); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client, err := rest.RESTClientForConfigAndClient(&config, h)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &HiveinternalV1alpha1Client{client}, nil
|
||||
}
|
||||
|
||||
// NewForConfigOrDie creates a new HiveinternalV1alpha1Client for the given config and
|
||||
// panics if there is an error in the config.
|
||||
func NewForConfigOrDie(c *rest.Config) *HiveinternalV1alpha1Client {
|
||||
client, err := NewForConfig(c)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return client
|
||||
}
|
||||
|
||||
// New creates a new HiveinternalV1alpha1Client for the given RESTClient.
|
||||
func New(c rest.Interface) *HiveinternalV1alpha1Client {
|
||||
return &HiveinternalV1alpha1Client{c}
|
||||
}
|
||||
|
||||
func setConfigDefaults(config *rest.Config) error {
|
||||
gv := v1alpha1.SchemeGroupVersion
|
||||
config.GroupVersion = &gv
|
||||
config.APIPath = "/apis"
|
||||
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
|
||||
|
||||
if config.UserAgent == "" {
|
||||
config.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate
|
||||
// with API server by this client implementation.
|
||||
func (c *HiveinternalV1alpha1Client) RESTClient() rest.Interface {
|
||||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
return c.restClient
|
||||
}
|
|
@ -942,15 +942,6 @@ github.com/openshift/cluster-api-provider-ovirt/pkg/apis/ovirtprovider/v1beta1
|
|||
# github.com/openshift/console-operator v0.0.0-20220407014945-45d37e70e0c2 => github.com/openshift/console-operator v0.0.0-20220318130441-e44516b9c315
|
||||
## explicit; go 1.16
|
||||
github.com/openshift/console-operator/pkg/api
|
||||
# github.com/openshift/hive v1.1.16 => github.com/openshift/hive v1.1.17-0.20220719141355-c63c9b0281d8
|
||||
## explicit; go 1.18
|
||||
github.com/openshift/hive/pkg/client/clientset/versioned
|
||||
github.com/openshift/hive/pkg/client/clientset/versioned/fake
|
||||
github.com/openshift/hive/pkg/client/clientset/versioned/scheme
|
||||
github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1
|
||||
github.com/openshift/hive/pkg/client/clientset/versioned/typed/hive/v1/fake
|
||||
github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1
|
||||
github.com/openshift/hive/pkg/client/clientset/versioned/typed/hiveinternal/v1alpha1/fake
|
||||
# github.com/openshift/hive/apis v0.0.0 => github.com/openshift/hive/apis v0.0.0-20220719141355-c63c9b0281d8
|
||||
## explicit; go 1.18
|
||||
github.com/openshift/hive/apis/hive/v1
|
||||
|
@ -966,7 +957,6 @@ github.com/openshift/hive/apis/hive/v1/none
|
|||
github.com/openshift/hive/apis/hive/v1/openstack
|
||||
github.com/openshift/hive/apis/hive/v1/ovirt
|
||||
github.com/openshift/hive/apis/hive/v1/vsphere
|
||||
github.com/openshift/hive/apis/hiveinternal/v1alpha1
|
||||
github.com/openshift/hive/apis/scheme
|
||||
# github.com/openshift/installer v0.16.1 => github.com/jewzaam/installer-aro v0.9.0-master.0.20220524230743-7e2aa7a0cc1a
|
||||
## explicit; go 1.17
|
||||
|
@ -1194,6 +1184,8 @@ github.com/stefanberger/go-pkcs11uri
|
|||
# github.com/stoewer/go-strcase v1.2.0
|
||||
## explicit; go 1.11
|
||||
github.com/stoewer/go-strcase
|
||||
# github.com/stretchr/objx v0.3.0
|
||||
## explicit; go 1.12
|
||||
# github.com/stretchr/testify v1.7.1
|
||||
## explicit; go 1.13
|
||||
github.com/stretchr/testify/assert
|
||||
|
@ -1297,6 +1289,8 @@ go.starlark.net/resolve
|
|||
go.starlark.net/starlark
|
||||
go.starlark.net/starlarkstruct
|
||||
go.starlark.net/syntax
|
||||
# go.uber.org/atomic v1.8.0
|
||||
## explicit; go 1.13
|
||||
# golang.org/x/crypto v0.9.0
|
||||
## explicit; go 1.17
|
||||
golang.org/x/crypto/bcrypt
|
||||
|
|
Загрузка…
Ссылка в новой задаче