ptproxy

package
v0.0.0-...-8540621 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotAvailable is he error produced when vizier is not yet available.
	ErrNotAvailable = status.Error(codes.Unavailable, "cluster is not in a healthy state")
	// ErrCredentialFetch occurs when we can't fetch credentials for a vizier.
	ErrCredentialFetch = status.Error(codes.Internal, "failed to fetch creds for cluster")
	// ErrCredentialGenerate occurs when we can't generate new credentials using the cluster key.
	ErrCredentialGenerate = status.Error(codes.Internal, "failed to generate creds for cluster")
	// ErrPermissionDenied occurs when permission is denied to the cluster.
	ErrPermissionDenied = status.Error(codes.PermissionDenied, "permission denied for access to cluster")
)

Functions

This section is empty.

Types

type ClusterIDer

type ClusterIDer interface {
	GetClusterID() string
}

ClusterIDer is used to get cluster ID from request.

type VizierPassThroughProxy

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

VizierPassThroughProxy implements the VizierAPI and allows proxying the data to the actual vizier cluster.

func NewVizierPassThroughProxy

func NewVizierPassThroughProxy(nc *nats.Conn, vc vzmgrClient) *VizierPassThroughProxy

NewVizierPassThroughProxy creates a new passthrough proxy.

func (*VizierPassThroughProxy) DebugLog

DebugLog is the GRPC stream method to fetch debug logs from vizier.

func (*VizierPassThroughProxy) DebugPods

DebugPods is the GRPC method to fetch the list of Vizier pods (and statuses) from a cluster.

func (*VizierPassThroughProxy) ExecuteScript

ExecuteScript is the GRPC stream method.

func (*VizierPassThroughProxy) GenerateOTelScript

GenerateOTelScript is the GRPC method to generate an OTel script from a DataFrame script.

func (*VizierPassThroughProxy) HealthCheck

HealthCheck is the GRPC stream method.

Jump to

Keyboard shortcuts

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