wrangler/pkg/summary/client/interface.go

25 lines
630 B
Go

package client
import (
"context"
"github.com/rancher/wrangler/v3/pkg/summary"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/watch"
)
type Interface interface {
Resource(resource schema.GroupVersionResource) NamespaceableResourceInterface
}
type ResourceInterface interface {
List(ctx context.Context, opts metav1.ListOptions) (*summary.SummarizedObjectList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
}
type NamespaceableResourceInterface interface {
Namespace(string) ResourceInterface
ResourceInterface
}