Documentation ¶
Index ¶
- Constants
- Variables
- func CopyMap(o map[string]string) (r map[string]string)
- func GetContainer(pod *v1.PodSpec, containerName string) (*v1.Container, error)
- func GetKubeConfig(_ context.Context, cfg *config.Config) (*kubernetes.Clientset, *restclient.Config, error)
- func GetProtoTime(t *metav1.Time) *timestamp.Timestamp
- func GetSanitizedPrometheusKey(key string) (string, error)
- func GetWorkflowIDFromOwner(reference *metav1.OwnerReference, namespace string) (v1alpha1.WorkflowID, error)
- func MakeBinding(variable string, b *core.BindingData) *core.Binding
- func MakeBindingDataCollection(bindings ...*core.BindingData) *core.BindingData
- func MakeBindingDataMap(pairs ...Pair) *core.BindingData
- func MakeBindingDataPromise(fromNode, fromVar string) *core.BindingData
- func MakeBindingPromise(fromNode, fromVar, toVar string) *core.Binding
- func MakePrimitiveBindingData(v interface{}) (*core.BindingData, error)
- func MustMakePrimitiveBindingData(v interface{}) *core.BindingData
- func NewK8sEventRecorder(ctx context.Context, kubeclientset kubernetes.Interface, ...) (record.EventRecorder, error)
- func SanitizeLabelValue(name string) string
- func ToK8sEnvVar(env []*core.KeyValuePair) []v1.EnvVar
- type FailingRawStore
- func (FailingRawStore) CopyRaw(ctx context.Context, source, destination storage.DataReference, ...) error
- func (FailingRawStore) CreateSignedURL(ctx context.Context, reference storage.DataReference, ...) (storage.SignedURLResponse, error)
- func (FailingRawStore) Delete(ctx context.Context, reference storage.DataReference) error
- func (FailingRawStore) GetBaseContainerFQN(ctx context.Context) storage.DataReference
- func (FailingRawStore) Head(ctx context.Context, reference storage.DataReference) (storage.Metadata, error)
- func (FailingRawStore) ReadRaw(ctx context.Context, reference storage.DataReference) (io.ReadCloser, error)
- func (FailingRawStore) WriteRaw(ctx context.Context, reference storage.DataReference, size int64, ...) error
- type Pair
Constants ¶
View Source
const ErrorCodeSystem = "system"
View Source
const ErrorCodeUnknown = "Unknown"
View Source
const ErrorCodeUser = "User"
View Source
const ResourceNvidiaGPU = "nvidia.com/gpu"
ResourceNvidiaGPU is the name of the Nvidia GPU resource.
Variables ¶
View Source
var NotTheOwnerError = errors.Errorf("FlytePropeller is not the owner")
Functions ¶
func GetContainer ¶
GetContainer searches the provided pod spec for a container with the specified name
func GetKubeConfig ¶
func GetKubeConfig(_ context.Context, cfg *config.Config) (*kubernetes.Clientset, *restclient.Config, error)
func GetWorkflowIDFromOwner ¶
func GetWorkflowIDFromOwner(reference *metav1.OwnerReference, namespace string) (v1alpha1.WorkflowID, error)
func MakeBinding ¶
func MakeBinding(variable string, b *core.BindingData) *core.Binding
func MakeBindingDataCollection ¶
func MakeBindingDataCollection(bindings ...*core.BindingData) *core.BindingData
func MakeBindingDataMap ¶
func MakeBindingDataMap(pairs ...Pair) *core.BindingData
func MakeBindingDataPromise ¶
func MakeBindingDataPromise(fromNode, fromVar string) *core.BindingData
func MakeBindingPromise ¶
func MakePrimitiveBindingData ¶
func MakePrimitiveBindingData(v interface{}) (*core.BindingData, error)
func MustMakePrimitiveBindingData ¶
func MustMakePrimitiveBindingData(v interface{}) *core.BindingData
func NewK8sEventRecorder ¶
func NewK8sEventRecorder(ctx context.Context, kubeclientset kubernetes.Interface, controllerAgentName string, publishK8sEvents bool) (record.EventRecorder, error)
func SanitizeLabelValue ¶
SanitizeLabelValue ensures that the label value is a valid DNS-1123 string
func ToK8sEnvVar ¶
func ToK8sEnvVar(env []*core.KeyValuePair) []v1.EnvVar
Types ¶
type FailingRawStore ¶
type FailingRawStore struct { }
func (FailingRawStore) CopyRaw ¶
func (FailingRawStore) CopyRaw(ctx context.Context, source, destination storage.DataReference, opts storage.Options) error
func (FailingRawStore) CreateSignedURL ¶
func (FailingRawStore) CreateSignedURL(ctx context.Context, reference storage.DataReference, properties storage.SignedURLProperties) (storage.SignedURLResponse, error)
func (FailingRawStore) Delete ¶
func (FailingRawStore) Delete(ctx context.Context, reference storage.DataReference) error
func (FailingRawStore) GetBaseContainerFQN ¶
func (FailingRawStore) GetBaseContainerFQN(ctx context.Context) storage.DataReference
func (FailingRawStore) Head ¶
func (FailingRawStore) Head(ctx context.Context, reference storage.DataReference) (storage.Metadata, error)
func (FailingRawStore) ReadRaw ¶
func (FailingRawStore) ReadRaw(ctx context.Context, reference storage.DataReference) (io.ReadCloser, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.