Documentation
¶
Index ¶
- Constants
- func APIDeploymentCompute(deployment *appsv1b1.Deployment) userconfig.APICompute
- func APIPodCompute(containers []corev1.Container) (*userconfig.Quantity, *userconfig.Quantity, int64)
- func APIsBaseURL() (string, error)
- func Create(ctx *context.Context) (*awfv1.Workflow, error)
- func CurrentContext(appName string) *context.Context
- func CurrentContexts() []*context.Context
- func DeleteApp(appName string, keepCache bool) bool
- func ErrorContextAppMismatch() error
- func ErrorCortexInstallationBroken() error
- func ErrorLoadBalancerInitializing() error
- func ErrorMoreThanOneWorkflow() error
- func ErrorNotFound() error
- func ErrorWorkflowAppMismatch() error
- func GetAPIGroupStatuses(apiStatuses map[string]*resource.APIStatus, ctx *context.Context) (map[string]*resource.APIGroupStatus, error)
- func GetCurrentAPIStatuses(ctx *context.Context, dataStatuses map[string]*resource.DataStatus) (map[string]*resource.APIStatus, error)
- func GetCurrentDataStatuses(ctx *context.Context) (map[string]*resource.DataStatus, error)
- func GetLatestWorkloadID(resourceID string, appName string) (string, error)
- func GetWorkflow(appName string) (*awfv1.Workflow, error)
- func Init() error
- func ReadLogs(appName string, workloadID string, verbose bool, socket *websocket.Conn)
- func Run(wf *awfv1.Workflow, ctx *context.Context, existingWf *awfv1.Workflow) error
- func Stop(wf *awfv1.Workflow, ctx *context.Context) error
- func UpdateAPISavedStatuses(allPods []corev1.Pod) error
- func UpdateDataWorkflowErrors(failedPods []corev1.Pod) error
- func UploadLogPrefixesFromAPIPods(pods []corev1.Pod) error
- type Error
- type ErrorKind
- type LogPrefixInfo
- type ParsedWorkflow
- type SavedWorkloadSpec
- type WorkflowItem
- type WorkloadSpec
Constants ¶
View Source
const (
WorkloadTypeAPI = "api"
)
Variables ¶
This section is empty.
Functions ¶
func APIDeploymentCompute ¶
func APIDeploymentCompute(deployment *appsv1b1.Deployment) userconfig.APICompute
func APIPodCompute ¶
func APIPodCompute(containers []corev1.Container) (*userconfig.Quantity, *userconfig.Quantity, int64)
func APIsBaseURL ¶
func CurrentContext ¶
func CurrentContexts ¶
func ErrorContextAppMismatch ¶ added in v0.4.0
func ErrorContextAppMismatch() error
func ErrorCortexInstallationBroken ¶ added in v0.4.0
func ErrorCortexInstallationBroken() error
func ErrorLoadBalancerInitializing ¶ added in v0.4.0
func ErrorLoadBalancerInitializing() error
func ErrorMoreThanOneWorkflow ¶ added in v0.4.0
func ErrorMoreThanOneWorkflow() error
func ErrorNotFound ¶ added in v0.4.0
func ErrorNotFound() error
func ErrorWorkflowAppMismatch ¶ added in v0.4.0
func ErrorWorkflowAppMismatch() error
func GetAPIGroupStatuses ¶
func GetCurrentAPIStatuses ¶
func GetCurrentDataStatuses ¶
func GetLatestWorkloadID ¶
func UpdateAPISavedStatuses ¶
Types ¶
type Error ¶ added in v0.4.0
type Error struct { Kind ErrorKind // contains filtered or unexported fields }
type ErrorKind ¶ added in v0.4.0
type ErrorKind int
func (ErrorKind) MarshalBinary ¶ added in v0.4.0
MarshalBinary satisfies BinaryMarshaler
func (ErrorKind) MarshalText ¶ added in v0.4.0
MarshalText satisfies TextMarshaler
func (*ErrorKind) UnmarshalBinary ¶ added in v0.4.0
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ErrorKind) UnmarshalText ¶ added in v0.4.0
UnmarshalText satisfies TextUnmarshaler
type LogPrefixInfo ¶
type ParsedWorkflow ¶
type ParsedWorkflow struct { Workloads map[string]*WorkflowItem // workloadID -> *WorkflowItem Wf *awfv1.Workflow }
type SavedWorkloadSpec ¶
type WorkflowItem ¶
Source Files
¶
- api.go
- api_saved_status.go
- api_saved_status_cache.go
- api_status.go
- consts.go
- current_contexts.go
- data_job.go
- data_saved_status.go
- data_saved_status_cache.go
- data_status.go
- errors.go
- latest_workload_id.go
- latest_workload_id_cache.go
- log_prefix.go
- log_prefix_cache.go
- logs.go
- parsed_workflow.go
- python_package_job.go
- shared.go
- training_job.go
- workflow.go
- workload_spec.go
Click to show internal directories.
Click to hide internal directories.