Documentation
¶
Index ¶
- Constants
- type APISummary
- type BatchAPI
- type DeleteResponse
- type DelimitedFiles
- type DeployResponse
- type DeployResult
- type ErrorResponse
- type FilePathLister
- type GetAPIResponse
- type GetAPIsResponse
- type GetJobResponse
- type InfoResponse
- type InputSignature
- type InputSignatures
- type ItemList
- type JobSubmission
- type NodeInfo
- type RealtimeAPI
- type RefreshResponse
- type S3Lister
- type TrafficSplitter
Constants ¶
View Source
const ( // Job Submission BatchSizeKey = "batch_size" ItemsKey = "items" ItemListKey = "item_list" FilePathListerKey = "file_path_lister" DelimitedFilesKey = "delimited_files" S3PathsKey = "s3_paths" IncludesKey = "includes" ExcludesKey = "excludes" WorkersKey = "workers" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APISummary ¶
type APISummary struct {
Message string `json:"message"`
ModelSignatures map[string]InputSignatures `json:"model_signatures"`
}
type DeleteResponse ¶
type DeleteResponse struct {
Message string `json:"message"`
}
type DelimitedFiles ¶ added in v0.19.0
type DeployResponse ¶
type DeployResponse struct {
Results []DeployResult `json:"results"`
}
type ErrorResponse ¶
type FilePathLister ¶ added in v0.19.0
type GetAPIResponse ¶
type GetAPIResponse struct {
RealtimeAPI *RealtimeAPI `json:"realtime_api"`
BatchAPI *BatchAPI `json:"batch_api"`
TrafficSplitter *TrafficSplitter `json:"traffic_splitter"`
}
type GetAPIsResponse ¶
type GetAPIsResponse struct {
RealtimeAPIs []RealtimeAPI `json:"realtime_apis"`
BatchAPIs []BatchAPI `json:"batch_apis"`
TrafficSplitters []TrafficSplitter `json:"traffic_splitters"`
}
type GetJobResponse ¶ added in v0.19.0
type InfoResponse ¶
type InfoResponse struct {
MaskedAWSAccessKeyID string `json:"masked_aws_access_key_id"`
ClusterConfig clusterconfig.InternalConfig `json:"cluster_config"`
NodeInfos []NodeInfo `json:"node_infos"`
NumPendingReplicas int `json:"num_pending_replicas"`
}
type InputSignature ¶ added in v0.18.0
type InputSignature struct {
Shape []interface{} `json:"shape"`
Type string `json:"type"`
}
type InputSignatures ¶ added in v0.18.0
type InputSignatures map[string]InputSignature
type ItemList ¶ added in v0.19.0
type ItemList struct {
Items []json.RawMessage `json:"items"`
BatchSize int `json:"batch_size"`
}
type JobSubmission ¶ added in v0.19.0
type JobSubmission struct {
spec.RuntimeJobConfig
ItemList *ItemList `json:"item_list"`
FilePathLister *FilePathLister `json:"file_path_lister"`
DelimitedFiles *DelimitedFiles `json:"delimited_files"`
}
type NodeInfo ¶ added in v0.17.0
type NodeInfo struct {
Name string `json:"name"`
InstanceType string `json:"instance_type"`
IsSpot bool `json:"is_spot"`
Price float64 `json:"price"`
NumReplicas int `json:"num_replicas"`
ComputeUserCapacity userconfig.Compute `json:"compute_user_capacity"` // the total resources available to the user on a node
ComputeAvailable userconfig.Compute `json:"compute_available"` // unused resources on a node
ComputeUserRequested userconfig.Compute `json:"compute_user_requested"` // total resources requested by user on a node
}
type RealtimeAPI ¶ added in v0.19.0
type RefreshResponse ¶
type RefreshResponse struct {
Message string `json:"message"`
}
type TrafficSplitter ¶ added in v0.19.0
Click to show internal directories.
Click to hide internal directories.