reftracker

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package reftracker contains structs used for tracking secret and configmap referenced by the app. Tracking these references allows us to trigger an app reconcile when the resources are updated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRefTracker

type AppRefTracker struct {
	// contains filtered or unexported fields
}

func NewAppRefTracker

func NewAppRefTracker() *AppRefTracker

TODO: Rename since this doesn't only work with Apps

func (*AppRefTracker) AppsForRef

func (a *AppRefTracker) AppsForRef(refKey RefKey) (map[RefKey]struct{}, error)

func (*AppRefTracker) ReconcileRefs

func (a *AppRefTracker) ReconcileRefs(currentRefs map[RefKey]struct{}, appKey RefKey)

func (*AppRefTracker) RefsForApp

func (a *AppRefTracker) RefsForApp(appKey RefKey) (map[RefKey]struct{}, error)

func (*AppRefTracker) RemoveAppFromAllRefs

func (a *AppRefTracker) RemoveAppFromAllRefs(appKey RefKey)

func (*AppRefTracker) RemoveRef

func (a *AppRefTracker) RemoveRef(refKey RefKey)

type AppUpdateStatus

type AppUpdateStatus struct {
	// contains filtered or unexported fields
}

func NewAppUpdateStatus

func NewAppUpdateStatus() *AppUpdateStatus

func (AppUpdateStatus) IsUpdateNeeded

func (a AppUpdateStatus) IsUpdateNeeded(appKey RefKey) bool

func (AppUpdateStatus) MarkNeedsUpdate

func (a AppUpdateStatus) MarkNeedsUpdate(appKey RefKey)

func (AppUpdateStatus) MarkUpdated

func (a AppUpdateStatus) MarkUpdated(appKey RefKey)

type RefKey

type RefKey struct {
	// contains filtered or unexported fields
}

func NewAppKey

func NewAppKey(refName, namespace string) RefKey

func NewConfigMapKey

func NewConfigMapKey(refName, namespace string) RefKey

func NewPackageRepositoryKey added in v0.20.0

func NewPackageRepositoryKey(refName, namespace string) RefKey

func NewRefKey

func NewRefKey(kind, refName, namespace string) RefKey

func NewSecretKey

func NewSecretKey(refName, namespace string) RefKey

func (RefKey) Description

func (r RefKey) Description() string

func (RefKey) Kind

func (r RefKey) Kind() string

func (RefKey) Namespace

func (r RefKey) Namespace() string

func (RefKey) RefName

func (r RefKey) RefName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL