mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 22:05:25 +00:00
Some checks failed
Run the E2E test on kind / build (push) Failing after 5m43s
Run the E2E test on kind / setup-test-matrix (push) Successful in 2s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
build-image / Build (push) Failing after 8s
Main CI / Build (push) Failing after 33s
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
28 lines
862 B
Go
28 lines
862 B
Go
package kube
|
|
|
|
import (
|
|
"k8s.io/apimachinery/pkg/api/meta"
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
"sigs.k8s.io/controller-runtime/pkg/client"
|
|
)
|
|
|
|
// Client knows how to perform CRUD operations on Kubernetes objects.
|
|
//
|
|
//go:generate mockery --name=Client
|
|
type Client interface {
|
|
client.Reader
|
|
client.Writer
|
|
client.StatusClient
|
|
client.SubResourceClientConstructor
|
|
|
|
// Scheme returns the scheme this client is using.
|
|
Scheme() *runtime.Scheme
|
|
// RESTMapper returns the rest this client is using.
|
|
RESTMapper() meta.RESTMapper
|
|
// GroupVersionKindFor returns the GroupVersionKind for the given object.
|
|
GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
|
|
// IsObjectNamespaced returns true if the GroupVersionKind of the object is namespaced.
|
|
IsObjectNamespaced(obj runtime.Object) (bool, error)
|
|
}
|