server

package
v0.0.0-...-3794c23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCircleServer

func NewCircleServer(
	clusterCache cache.ClusterCache,
	k8sCache client.Client,
	circleManager circlemanager.CircleManager,
) pbv1.CircleServiceServer

func NewResourceServer

func NewResourceServer(
	k8sCache client.Client,
	clusterCache cache.ClusterCache,
	kubernetesClient *kubernetes.Clientset,
	dynamicClient dynamic.Interface,
) pbv1.ResourceServiceServer

func NewServer

func NewServer(
	logger logr.Logger,
	circleServer pbv1.CircleServiceServer,
	resourceServer pbv1.ResourceServiceServer,
) *server

Types

type CircleServer

type CircleServer struct {
	// contains filtered or unexported fields
}

func (CircleServer) Status

func (s CircleServer) Status(ctx context.Context, request *pbv1.GetCircle) (*pbv1.StatusResponse, error)

func (CircleServer) Sync

func (s CircleServer) Sync(ctx context.Context, request *pbv1.GetCircle) (*anypb.Any, error)

Tree implements v1.CircleServiceServer

type ResourceServer

type ResourceServer struct {
	// contains filtered or unexported fields
}

func (ResourceServer) Events

Events implements v1.ResourceServiceServer

func (ResourceServer) Get

Get implements v1.ResourceServiceServer

func (ResourceServer) GetResourceHealthAndMessage

func (r ResourceServer) GetResourceHealthAndMessage(resource *cache.Resource) (string, string)

func (ResourceServer) Logs

Logs implements v1.ResourceServiceServer

func (ResourceServer) Manifest

func (ResourceServer) Tree

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL