Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressGetter ¶
AddressGetter gets an address of a model.
type ModelSyncer ¶
type ModelSyncer interface { ListSyncedModels() []runtime.ModelRuntimeInfo PullModel(ctx context.Context, modelID string) error ListInProgressModels() []runtime.ModelRuntimeInfo DeleteModel(ctx context.Context, modelID string) error }
ModelSyncer syncs models.
type P ¶
type P struct {
// contains filtered or unexported fields
}
P processes tasks.
func NewP ¶
func NewP( engineID string, client v1.InferenceWorkerServiceClient, addrGetter AddressGetter, modelSyncer ModelSyncer, logger logr.Logger, collector metrics.Collector, gracefulShutdownTimeout time.Duration, ) *P
NewP returns a new processor.
func (*P) IsReady ¶
IsReady returns true if the processor is ready. If not, it returns a message describing why it is not ready.
func (*P) NeedLeaderElection ¶
NeedLeaderElection implements LeaderElectionRunnable
func (*P) SetupWithManager ¶
SetupWithManager sets up the processor with the manager.
Click to show internal directories.
Click to hide internal directories.