schema

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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"
	TimeoutKey            = "timeout"
	MaxReceiveCountKey    = "max_receive_count"
	ARNKey                = "arn"
	SQSDeadLetterQueueKey = "sqs_dead_letter_queue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse added in v0.21.0

type APIResponse struct {
	Spec                      *spec.API               `json:"spec,omitempty" yaml:"spec,omitempty"`
	Metadata                  *spec.Metadata          `json:"metadata,omitempty"  yaml:"metadata,omitempty"`
	Status                    *status.Status          `json:"status,omitempty"  yaml:"status,omitempty"`
	NumTrafficSplitterTargets *int32                  `json:"num_traffic_splitter_targets,omitempty" yaml:"num_traffic_splitter_targets,omitempty"`
	Endpoint                  *string                 `json:"endpoint,omitempty"  yaml:"endpoint,omitempty"`
	DashboardURL              *string                 `json:"dashboard_url,omitempty"  yaml:"dashboard_url,omitempty"`
	BatchJobStatuses          []status.BatchJobStatus `json:"batch_job_statuses,omitempty"  yaml:"batch_job_statuses,omitempty"`
	TaskJobStatuses           []status.TaskJobStatus  `json:"task_job_statuses,omitempty"  yaml:"task_job_statuses,omitempty"`
	APIVersions               []APIVersion            `json:"api_versions,omitempty"  yaml:"api_versions,omitempty"`
}

type APIVersion added in v0.23.0

type APIVersion struct {
	APIID       string `json:"api_id" yaml:"api_id"`
	LastUpdated int64  `json:"last_updated" yaml:"last_updated"`
}

type BatchJobResponse added in v0.27.0

type BatchJobResponse struct {
	APISpec   spec.API              `json:"api_spec" yaml:"api_spec"`
	JobStatus status.BatchJobStatus `json:"job_status" yaml:"job_status"`
	Metrics   *metrics.BatchMetrics `json:"metrics,omitempty" yaml:"metrics,omitempty"`
	Endpoint  string                `json:"endpoint" yaml:"endpoint"`
}

type BatchJobSubmission added in v0.27.0

type BatchJobSubmission struct {
	spec.RuntimeBatchJobConfig
	ItemList       *ItemList       `json:"item_list"`
	FilePathLister *FilePathLister `json:"file_path_lister"`
	DelimitedFiles *DelimitedFiles `json:"delimited_files"`
}

type DeleteResponse

type DeleteResponse struct {
	Message string `json:"message"`
}

type DelimitedFiles added in v0.19.0

type DelimitedFiles struct {
	S3Lister
	BatchSize int `json:"batch_size"`
}

type DeployResult

type DeployResult struct {
	API     *APIResponse `json:"api" yaml:"api"`
	Message string       `json:"message" yaml:"message"`
	Error   string       `json:"error" yaml:"error"`
}

type ErrorResponse

type ErrorResponse struct {
	Kind    string `json:"kind"`
	Message string `json:"message"`
}

type FilePathLister added in v0.19.0

type FilePathLister struct {
	S3Lister
	BatchSize int `json:"batch_size"`
}

type InfoResponse

type InfoResponse struct {
	ClusterConfig      clusterconfig.InternalConfig `json:"cluster_config" yaml:"cluster_config"`
	WorkerNodeInfos    []WorkerNodeInfo             `json:"worker_node_infos" yaml:"worker_node_infos"`
	OperatorNodeInfos  []NodeInfo                   `json:"operator_node_infos" yaml:"operator_node_infos"`
	NumPendingReplicas int                          `json:"num_pending_replicas" yaml:"num_pending_replicas"`
}

func (InfoResponse) GetNodesWithNodeGroupName added in v0.31.0

func (ir InfoResponse) GetNodesWithNodeGroupName(ngName string) []WorkerNodeInfo

type ItemList added in v0.19.0

type ItemList struct {
	Items     []json.RawMessage `json:"items"`
	BatchSize int               `json:"batch_size"`
}

type LogResponse added in v0.36.0

type LogResponse struct {
	LogURL string `json:"log_url"`
}

type NodeInfo added in v0.17.0

type NodeInfo struct {
	NodeGroupName string  `json:"nodegroup_name" yaml:"nodegroup_name"`
	InstanceType  string  `json:"instance_type" yaml:"instance_type"`
	IsSpot        bool    `json:"is_spot" yaml:"is_spot"`
	Price         float64 `json:"price" yaml:"price"`
}

type RefreshResponse

type RefreshResponse struct {
	Message string `json:"message"`
}

type S3Lister added in v0.19.0

type S3Lister struct {
	S3Paths    []string `json:"s3_paths"` // s3://<bucket_name>/key
	Includes   []string `json:"includes"`
	Excludes   []string `json:"excludes"`
	MaxResults *int64   `json:"-"` // this is not currently exposed to the user (it's used for validations)
}

type TaskJobResponse added in v0.27.0

type TaskJobResponse struct {
	APISpec   spec.API             `json:"api_spec" yaml:"api_spec"`
	JobStatus status.TaskJobStatus `json:"job_status" yaml:"job_status"`
	Endpoint  string               `json:"endpoint" yaml:"endpoint"`
}

type TaskJobSubmission added in v0.27.0

type TaskJobSubmission struct {
	spec.RuntimeTaskJobConfig
}

type VerifyCortexResponse added in v0.28.0

type VerifyCortexResponse struct{}

type WorkerNodeInfo added in v0.38.0

type WorkerNodeInfo struct {
	NodeInfo
	Name                 string             `json:"name" yaml:"name"`
	NumReplicas          int                `json:"num_replicas" yaml:"num_replicas"`
	NumEnqueuerReplicas  int                `json:"num_enqueuer_replicas" yaml:"num_enqueuer_replicas"`
	ComputeUserCapacity  userconfig.Compute `json:"compute_user_capacity" yaml:"compute_user_capacity"`   // the total resources available to the user on a node
	ComputeAvailable     userconfig.Compute `json:"compute_available" yaml:"compute_unavailable"`         // unused resources on a node
	ComputeUserRequested userconfig.Compute `json:"compute_user_requested" yaml:"compute_user_requested"` // total resources requested by user on a node
}

Jump to

Keyboard shortcuts

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