Documentation ¶
Index ¶
- func NewResourceServer(k8sCache client.Client, clusterCache cache.ClusterCache, ...) pbv1.ResourceServiceServer
- func NewServer(logger logr.Logger, resourceServer pbv1.ResourceServiceServer) *server
- type ResourceServer
- func (r ResourceServer) Events(ctx context.Context, req *pbv1.EventsRequest) (*pbv1.EventsResponse, error)
- func (r ResourceServer) Get(ctx context.Context, req *pbv1.GetResourceRequest) (*pbv1.Resource, error)
- func (r ResourceServer) GetResourceHealthAndMessage(resource *cache.Resource) (string, string)
- func (r ResourceServer) Logs(context.Context, *pbv1.LogsRequest) (*pbv1.LogsResponse, error)
- func (r ResourceServer) Manifest(ctx context.Context, req *pbv1.GetResourceRequest) (*pbv1.ManifestResponse, error)
- func (r ResourceServer) Tree(ctx context.Context, request *pbv1.TreeRequest) (*pbv1.TreeResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResourceServer ¶
func NewResourceServer( k8sCache client.Client, clusterCache cache.ClusterCache, kubernetesClient *kubernetes.Clientset, dynamicClient dynamic.Interface, ) pbv1.ResourceServiceServer
Types ¶
type ResourceServer ¶
type ResourceServer struct {
// contains filtered or unexported fields
}
func (ResourceServer) Events ¶
func (r ResourceServer) Events(ctx context.Context, req *pbv1.EventsRequest) (*pbv1.EventsResponse, error)
Events implements v1.ResourceServiceServer
func (ResourceServer) Get ¶
func (r ResourceServer) Get(ctx context.Context, req *pbv1.GetResourceRequest) (*pbv1.Resource, error)
Get implements v1.ResourceServiceServer
func (ResourceServer) GetResourceHealthAndMessage ¶
func (r ResourceServer) GetResourceHealthAndMessage(resource *cache.Resource) (string, string)
func (ResourceServer) Logs ¶
func (r ResourceServer) Logs(context.Context, *pbv1.LogsRequest) (*pbv1.LogsResponse, error)
Logs implements v1.ResourceServiceServer
func (ResourceServer) Manifest ¶
func (r ResourceServer) Manifest(ctx context.Context, req *pbv1.GetResourceRequest) (*pbv1.ManifestResponse, error)
func (ResourceServer) Tree ¶
func (r ResourceServer) Tree(ctx context.Context, request *pbv1.TreeRequest) (*pbv1.TreeResponse, error)
Click to show internal directories.
Click to hide internal directories.