Documentation
¶
Index ¶
Constants ¶
View Source
const CacheExpiryDuration = 1 * time.Hour
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpiringCache ¶
type RepoCache ¶
type RepoCache interface { Set(submitted, persisted *unstructured.Unstructured) UnchangedSinceCached(local, remote *unstructured.Unstructured) bool Refresh(submitted *unstructured.Unstructured) }
func NewCache ¶
func NewCache(c ExpiringCache) RepoCache
type Repository ¶
type Repository interface { AssureObjectExistsOnCluster(obj *unstructured.Unstructured) error GetTemplate(reference v1alpha1.TemplateReference) (templates.Template, error) GetSupplyChainsForWorkload(workload *v1alpha1.Workload) ([]v1alpha1.ClusterSupplyChain, error) GetWorkload(name string, namespace string) (*v1alpha1.Workload, error) GetSupplyChain(name string) (*v1alpha1.ClusterSupplyChain, error) StatusUpdate(object client.Object) error GetScheme() *runtime.Scheme }
func NewRepository ¶
func NewRepository(client client.Client, repoCache RepoCache) Repository
Click to show internal directories.
Click to hide internal directories.