apis

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(e error) bool

func NewKfErrorWithMessage

func NewKfErrorWithMessage(e error, msg string) error

NewKfErrorWithMessage will propogate the error with the given message.

TODO(jlewi): Not sure this is the best way to propogate the error messages and turn them into KfErrors. There was a lot of code that was doing this but not asserting that the error was a KfError which was causing segmentation faults so I wrote this helper method.

Types

type KfError

type KfError struct {
	// Code is the HTTP response status code.
	Code    int    `json:"code"`
	Message string `json:"message,omitempty"`
}

KfError stands for Kubeflow error. This is the standard error interface for Kubeflow components.

func (*KfError) Error

func (e *KfError) Error() string

type StatusCode

type StatusCode int
const (
	OK               StatusCode = 200
	INVALID_ARGUMENT StatusCode = 400
	NOT_FOUND        StatusCode = 404
	INTERNAL_ERROR   StatusCode = 500
	UNKNOWN          StatusCode = 520
)

Directories

Path Synopsis
Package apis contains Kubernetes API groups.
Package apis contains Kubernetes API groups.
aws.plugins.kubeflow.org
v1alpha1
Package v1alpha1 contains API Schema definitions for the aws.plugins.kubeflow.org v1alpha1 API group +kubebuilder:object:generate=true +groupName=aws.plugins.kubeflow.org
Package v1alpha1 contains API Schema definitions for the aws.plugins.kubeflow.org v1alpha1 API group +kubebuilder:object:generate=true +groupName=aws.plugins.kubeflow.org
gcp.plugins.kubeflow.org
v1alpha1
Package v1alpha1 contains API Schema definitions for the gcp.plugins.kubeflow.org v1alpha1 API group +kubebuilder:object:generate=true +groupName=gcp.plugins.kubeflow.org
Package v1alpha1 contains API Schema definitions for the gcp.plugins.kubeflow.org v1alpha1 API group +kubebuilder:object:generate=true +groupName=gcp.plugins.kubeflow.org
kfconfig.apps.kubeflow.org
v1alpha1
Package v1alpha1 contains API Schema definitions for the kfconfig.apps.kubeflow.org v1alpha1 API group +kubebuilder:object:generate=true +groupName=kfconfig.apps.kubeflow.org //+kubebuilder:storageversion
Package v1alpha1 contains API Schema definitions for the kfconfig.apps.kubeflow.org v1alpha1 API group +kubebuilder:object:generate=true +groupName=kfconfig.apps.kubeflow.org //+kubebuilder:storageversion
kfdef.apps.kubeflow.org
v1
Package v1 contains API Schema definitions for the kfdef.apps.kubeflow.org v1 API group +kubebuilder:object:generate=true +groupName=kfdef.apps.kubeflow.org
Package v1 contains API Schema definitions for the kfdef.apps.kubeflow.org v1 API group +kubebuilder:object:generate=true +groupName=kfdef.apps.kubeflow.org
kfupdate.apps.kubeflow.org
v1alpha1
Package v1alpha1 contains API Schema definitions for the kfupdate.apps.kubeflow.org v1alpha1 API group +kubebuilder:object:generate=true +groupName=kfupdate.apps.kubeflow.org
Package v1alpha1 contains API Schema definitions for the kfupdate.apps.kubeflow.org v1alpha1 API group +kubebuilder:object:generate=true +groupName=kfupdate.apps.kubeflow.org

Jump to

Keyboard shortcuts

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