Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelsGetter ¶ added in v0.0.8
type Logger ¶ added in v0.0.7
type Logger interface {
Info(msg string, keysAndValues ...interface{})
}
type RepoCache ¶
type RepoCache interface { Set(submitted, persisted *unstructured.Unstructured) UnchangedSinceCached(submitted *unstructured.Unstructured, existingObj *unstructured.Unstructured) *unstructured.Unstructured UnchangedSinceCachedFromList(local *unstructured.Unstructured, remote []*unstructured.Unstructured) *unstructured.Unstructured }
type Repository ¶
type Repository interface { EnsureImmutableObjectExistsOnCluster(ctx context.Context, obj *unstructured.Unstructured, labels map[string]string) error EnsureMutableObjectExistsOnCluster(ctx context.Context, obj *unstructured.Unstructured) error GetSupplyChainTemplate(ctx context.Context, ref v1alpha1.SupplyChainTemplateReference) (client.Object, error) GetDeliveryTemplate(ctx context.Context, ref v1alpha1.DeliveryTemplateReference) (client.Object, error) GetRunTemplate(ctx context.Context, ref v1alpha1.TemplateReference) (*v1alpha1.ClusterRunTemplate, error) GetSupplyChainsForWorkload(ctx context.Context, workload *v1alpha1.Workload) ([]*v1alpha1.ClusterSupplyChain, error) GetDeliveriesForDeliverable(ctx context.Context, deliverable *v1alpha1.Deliverable) ([]*v1alpha1.ClusterDelivery, error) GetWorkload(ctx context.Context, name string, namespace string) (*v1alpha1.Workload, error) GetDeliverable(ctx context.Context, name string, namespace string) (*v1alpha1.Deliverable, error) GetSupplyChain(ctx context.Context, name string) (*v1alpha1.ClusterSupplyChain, error) StatusUpdate(ctx context.Context, object client.Object) error GetRunnable(ctx context.Context, name string, namespace string) (*v1alpha1.Runnable, error) GetUnstructured(ctx context.Context, obj *unstructured.Unstructured) (*unstructured.Unstructured, error) ListUnstructured(ctx context.Context, gvk schema.GroupVersionKind, namespace string, labels map[string]string) ([]*unstructured.Unstructured, error) GetDelivery(ctx context.Context, name string) (*v1alpha1.ClusterDelivery, error) GetScheme() *runtime.Scheme GetServiceAccountSecret(ctx context.Context, serviceAccountName, ns string) (*corev1.Secret, error) Delete(ctx context.Context, objToDelete *unstructured.Unstructured) error }
func NewRepository ¶
func NewRepository(client client.Client, repoCache RepoCache) Repository
type RepositoryBuilder ¶ added in v0.0.8
type RepositoryBuilder func(client client.Client, repoCache RepoCache) Repository
type SelectorGetter ¶ added in v0.0.8
func BestLabelMatches ¶ added in v0.0.8
func BestLabelMatches(source LabelsGetter, targets []SelectorGetter) []SelectorGetter
BestLabelMatches attempts at finding the targets that best match the label set of the source.
Click to show internal directories.
Click to hide internal directories.