Documentation ¶
Index ¶
- Constants
- type PtyHandler
- type Runtime
- func (r Runtime) BuildCreate(ctx context.Context, req types.Build, ...) error
- func (r Runtime) BuildGet(ctx context.Context, namespace, buildName string) (types.Build, error)
- func (r Runtime) BuildList(ctx context.Context, namespace string) ([]types.Build, error)
- func (r Runtime) InferenceCreate(ctx context.Context, req types.InferenceDeployment, ...) error
- func (r Runtime) InferenceDelete(ctx context.Context, namespace, inferenceName, ingressNamespace, event string) error
- func (r Runtime) InferenceExec(ctx *gin.Context, namespace, instance string, commands []string, tty bool) error
- func (r Runtime) InferenceGet(namespace, inferenceName string) (*types.InferenceDeployment, error)
- func (r Runtime) InferenceInstanceList(namespace, inferenceName string) ([]types.InferenceDeploymentInstance, error)
- func (r Runtime) InferenceList(namespace string) ([]types.InferenceDeployment, error)
- func (r Runtime) InferenceScale(ctx context.Context, namespace string, req types.ScaleServiceRequest) (err error)
- func (r Runtime) InferenceUpdate(ctx context.Context, namespace string, req types.InferenceDeployment, ...) (err error)
- func (r Runtime) NamespaceCreate(ctx context.Context, name string) error
- func (r Runtime) NamespaceList(ctx context.Context) ([]string, error)
- func (r Runtime) ServerLabelCreate(ctx context.Context, name string, spec types.ServerSpec) error
- func (r Runtime) ServerList(ctx context.Context) ([]types.Server, error)
- type TerminalMessage
- type TerminalSession
Constants ¶
View Source
const (
AnnotationDomain = "ai.tensorchord.domain"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PtyHandler ¶
type PtyHandler interface { io.Reader io.Writer remotecommand.TerminalSizeQueue }
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func New ¶
func New(clientConfig *rest.Config, endpointsInformer corev1.EndpointsInformer, deploymentInformer appsv1.DeploymentInformer, inferenceInformer modelzv2alpha1.InferenceInformer, podInformer corev1.PodInformer, kubeClient kubernetes.Interface, ingressClient ingressclient.Interface, inferenceClient clientset.Interface, eventRecorder event.Interface, ingressEnabled, eventEnabled bool, ingressAnyIPToDomain bool, ) (Runtime, error)
func (Runtime) BuildCreate ¶
func (Runtime) InferenceCreate ¶
func (Runtime) InferenceDelete ¶
func (Runtime) InferenceExec ¶
func (Runtime) InferenceGet ¶
func (r Runtime) InferenceGet(namespace, inferenceName string) ( *types.InferenceDeployment, error)
func (Runtime) InferenceInstanceList ¶
func (r Runtime) InferenceInstanceList(namespace, inferenceName string) ( []types.InferenceDeploymentInstance, error)
func (Runtime) InferenceList ¶
func (r Runtime) InferenceList(namespace string) ([]types.InferenceDeployment, error)
func (Runtime) InferenceScale ¶
func (Runtime) InferenceUpdate ¶
func (Runtime) NamespaceCreate ¶
func (Runtime) NamespaceList ¶
func (Runtime) ServerLabelCreate ¶
type TerminalMessage ¶
type TerminalMessage struct { ID string `json:"id,omitempty"` Op string `json:"op,omitempty"` Data string `json:"data,omitempty"` Rows uint16 `json:"rows,omitempty"` Cols uint16 `json:"cols,omitempty"` }
TerminalMessage is the messaging protocol between ShellController and TerminalSession.
OP DIRECTION FIELD(S) USED DESCRIPTION --------------------------------------------------------------------- bind fe->be SessionID Id sent back from TerminalResponse stdin fe->be Data Keystrokes/paste buffer resize fe->be Rows, Cols New terminal size stdout be->fe Data Output from the process toast be->fe Data OOB message to be shown to the user
type TerminalSession ¶
type TerminalSession struct { ID string // contains filtered or unexported fields }
TerminalSession
func (*TerminalSession) Close ¶
func (t *TerminalSession) Close() error
func (*TerminalSession) Next ¶
func (t *TerminalSession) Next() *remotecommand.TerminalSize
TerminalSize handles pty->process resize events Called in a loop from remotecommand as long as the process is running
Click to show internal directories.
Click to hide internal directories.