Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ProviderName is provider name for install.
ProviderName = "oam"
)
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install(p wfTypes.Providers, app *v1beta1.Application, af *appfile.Appfile, cli client.Client, apply ComponentApply, render ComponentRender)
Install register handlers to provider discover.
Types ¶
type ComponentApply ¶
type ComponentApply func(ctx context.Context, comp common.ApplicationComponent, patcher *value.Value, clusterName string, overrideNamespace string) (*unstructured.Unstructured, []*unstructured.Unstructured, bool, error)
ComponentApply apply oam component.
type ComponentHealthCheck ¶ added in v1.4.0
type ComponentHealthCheck func(ctx context.Context, comp common.ApplicationComponent, patcher *value.Value, clusterName string, overrideNamespace string) (bool, *unstructured.Unstructured, []*unstructured.Unstructured, error)
ComponentHealthCheck health check oam component.
type ComponentRender ¶ added in v1.2.0
type ComponentRender func(ctx context.Context, comp common.ApplicationComponent, patcher *value.Value, clusterName string, overrideNamespace string) (*unstructured.Unstructured, []*unstructured.Unstructured, error)
ComponentRender render oam component.
type WorkloadRenderer ¶ added in v1.4.0
type WorkloadRenderer func(ctx context.Context, comp common.ApplicationComponent) (*appfile.Component, error)
WorkloadRenderer renderer to render application component into workload
Click to show internal directories.
Click to hide internal directories.