adapter

package
v0.0.0-...-3388463 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKusciaJobFrom

func GenerateKusciaJobFrom(jobInfo *InterConnJobInfo) (*kusciaapisv1alpha1.KusciaJob, error)

GenerateKusciaJobFrom generates kuscia job from interconn job info.

Types

type InterConnJobInfo

type InterConnJobInfo struct {
	DAG    *interconn.DAG    `json:"dag"`
	Config *interconn.Config `json:"config"`
	JodID  string            `json:"job_id"`
	FlowID string            `json:"flow_id"`
}

InterConnJobInfo defines interconn job info.

func GenerateInterConnJobInfoFrom

func GenerateInterConnJobInfoFrom(kusciaJob *kusciaapisv1alpha1.KusciaJob, appImageLister kuscialistersv1alpha1.AppImageLister) (*InterConnJobInfo, error)

GenerateInterConnJobInfoFrom generates interconn job info from kuscia job.

type JobParamsResources

type JobParamsResources struct {
	Disk   float64 `json:"disk"`
	Memory float64 `json:"memory"`
	CPU    float64 `json:"cpu"`
}

JobParamsResources defines resources of job params.

Jump to

Keyboard shortcuts

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