Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthyConditionEvaluator ¶ added in v0.4.0
type HealthyConditionEvaluator func(rule *v1alpha1.HealthRule, realizedResource *v1alpha1.RealizedResource, stampedObject *unstructured.Unstructured) metav1.Condition
type Outputs ¶
func NewOutputs ¶
func NewOutputs() Outputs
func (Outputs) GenerateInputs ¶
func (o Outputs) GenerateInputs(resource OwnerResource) *templates.Inputs
type OwnerResource ¶ added in v0.4.0
type OwnerResource struct { TemplateRef v1alpha1.TemplateReference TemplateOptions []v1alpha1.TemplateOption Params []v1alpha1.BlueprintParam Name string Sources []v1alpha1.ResourceReference Images []v1alpha1.ResourceReference Configs []v1alpha1.ResourceReference Deployment *v1alpha1.DeploymentReference }
func MakeDeliveryOwnerResources ¶ added in v0.4.0
func MakeDeliveryOwnerResources(delivery *v1alpha1.ClusterDelivery) []OwnerResource
func MakeSupplychainOwnerResources ¶ added in v0.4.0
func MakeSupplychainOwnerResources(supplyChain *v1alpha1.ClusterSupplyChain) []OwnerResource
type Realizer ¶
type Realizer interface {
Realize(ctx context.Context, resourceRealizer ResourceRealizer, blueprintName string, ownerResources []OwnerResource, resourceStatuses statuses.ResourceStatuses) error
}
func NewRealizer ¶
func NewRealizer(healthyConditionEvaluator HealthyConditionEvaluator) Realizer
type ResourceLabeler ¶ added in v0.4.0
type ResourceLabeler func(resource OwnerResource) templates.Labels
type ResourceRealizer ¶ added in v0.4.0
type ResourceRealizer interface {
Do(ctx context.Context, resource OwnerResource, blueprintName string, outputs Outputs) (templates.Template, *unstructured.Unstructured, *templates.Output, error)
}
type ResourceRealizerBuilder ¶ added in v0.4.0
type ResourceRealizerBuilder func(authToken string, owner client.Object, ownerParams []v1alpha1.OwnerParam, systemRepo repository.Repository, blueprintParams []v1alpha1.BlueprintParam, resourceLabeler ResourceLabeler) (ResourceRealizer, error)
func NewResourceRealizerBuilder ¶ added in v0.4.0
func NewResourceRealizerBuilder(repositoryBuilder repository.RepositoryBuilder, clientBuilder realizerclient.ClientBuilder, cache repository.RepoCache) ResourceRealizerBuilder
Directories ¶
Path | Synopsis |
---|---|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
runnablefakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.