Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInspectorsMap ¶
func NewInspectorsMap(istioURLString string, client httpClient) (map[string]ModelServerInspector, error)
Types ¶
type ModelServerInspector ¶
type ModelServerInspector interface { // Discover ML Server endpoints under the prefix // and return model Metadata and Swagger if it is possible // return error if Web API behind prefix is not compatible with // MLServer Inspect(prefix string, hostHeader string, log *zap.SugaredLogger) (model_types.ServedModel, error) }
ModelServerInspector gets URL prefix for a deployed model It return Metadata and Swagger2 if passed prefix is served by MLServer that is known for ModelServerInspector otherwise returns error
type OdahuMLServerInspector ¶
func (OdahuMLServerInspector) Inspect ¶
func (o OdahuMLServerInspector) Inspect( prefix string, hostHeader string, log *zap.SugaredLogger) (model model_types.ServedModel, err error)
type SwaggerMetadata ¶
type SwaggerMetadata struct { Info struct { Title string `json:"title"` Version string `json:"version"` } `json:"info"` }
Part of swagger spec responsible for model name/version
type TritonInspector ¶
func (TritonInspector) Inspect ¶
func (t TritonInspector) Inspect(prefix string, hostHeader string, log *zap.SugaredLogger) ( model_types.ServedModel, error, )
type TritonModelMeta ¶
Click to show internal directories.
Click to hide internal directories.