Documentation ¶
Index ¶
- Variables
- func AddCacheFlagsToCmd(cmd *cobra.Command, opts ...func(client *redis.Client)) func() (*Cache, error)
- type Cache
- func (c *Cache) DeleteManifests(revision string, appSrc *appv1.ApplicationSource, ...) error
- func (c *Cache) GetAppDetails(revision string, appSrc *appv1.ApplicationSource, ...) error
- func (c *Cache) GetGitReferences(repo string, references *[]*plumbing.Reference) error
- func (c *Cache) GetHelmIndex(repo string, indexData *[]byte) error
- func (c *Cache) GetManifests(revision string, appSrc *appv1.ApplicationSource, ...) error
- func (c *Cache) GetRevisionMetadata(repoURL, revision string) (*appv1.RevisionMetadata, error)
- func (c *Cache) ListApps(repoUrl, revision string) (map[string]string, error)
- func (c *Cache) SetAppDetails(revision string, appSrc *appv1.ApplicationSource, ...) error
- func (c *Cache) SetApps(repoUrl, revision string, apps map[string]string) error
- func (c *Cache) SetGitReferences(repo string, references []*plumbing.Reference) error
- func (c *Cache) SetHelmIndex(repo string, indexData []byte) error
- func (c *Cache) SetManifests(revision string, appSrc *appv1.ApplicationSource, ...) error
- func (c *Cache) SetRevisionMetadata(repoURL, revision string, item *appv1.RevisionMetadata) error
- type CachedManifestResponse
- type ClusterRuntimeInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheMiss = cacheutil.ErrCacheMiss
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) DeleteManifests ¶
func (c *Cache) DeleteManifests(revision string, appSrc *appv1.ApplicationSource, clusterInfo ClusterRuntimeInfo, namespace string, trackingMethod string, appLabelKey string, appName string) error
func (*Cache) GetAppDetails ¶
func (c *Cache) GetAppDetails(revision string, appSrc *appv1.ApplicationSource, res *apiclient.RepoAppDetailsResponse, trackingMethod appv1.TrackingMethod) error
func (*Cache) GetGitReferences ¶ added in v2.1.0
GetGitReferences retrieves resolved Git repository references from cache
func (*Cache) GetHelmIndex ¶ added in v2.1.0
GetHelmIndex retrieves helm repository index.yaml content from cache
func (*Cache) GetManifests ¶
func (c *Cache) GetManifests(revision string, appSrc *appv1.ApplicationSource, clusterInfo ClusterRuntimeInfo, namespace string, trackingMethod string, appLabelKey string, appName string, res *CachedManifestResponse) error
func (*Cache) GetRevisionMetadata ¶
func (c *Cache) GetRevisionMetadata(repoURL, revision string) (*appv1.RevisionMetadata, error)
func (*Cache) SetAppDetails ¶
func (c *Cache) SetAppDetails(revision string, appSrc *appv1.ApplicationSource, res *apiclient.RepoAppDetailsResponse, trackingMethod appv1.TrackingMethod) error
func (*Cache) SetGitReferences ¶ added in v2.1.0
SetGitReferences saves resolved Git repository references to cache
func (*Cache) SetHelmIndex ¶ added in v2.1.0
SetHelmIndex stores helm repository index.yaml content to cache
func (*Cache) SetManifests ¶
func (c *Cache) SetManifests(revision string, appSrc *appv1.ApplicationSource, clusterInfo ClusterRuntimeInfo, namespace string, trackingMethod string, appLabelKey string, appName string, res *CachedManifestResponse) error
func (*Cache) SetRevisionMetadata ¶
func (c *Cache) SetRevisionMetadata(repoURL, revision string, item *appv1.RevisionMetadata) error
type CachedManifestResponse ¶
type CachedManifestResponse struct { CacheEntryHash string `json:"cacheEntryHash"` ManifestResponse *apiclient.ManifestResponse `json:"manifestResponse"` MostRecentError string `json:"mostRecentError"` FirstFailureTimestamp int64 `json:"firstFailureTimestamp"` NumberOfConsecutiveFailures int `json:"numberOfConsecutiveFailures"` NumberOfCachedResponsesReturned int `json:"numberOfCachedResponsesReturned"` }
CachedManifestResponse represents a cached result of a previous manifest generation operation, including the caching of a manifest generation error, plus additional information on previous failures
type ClusterRuntimeInfo ¶ added in v2.1.0
type ClusterRuntimeInfo interface { // GetApiVersions returns supported api versions GetApiVersions() []string // GetKubeVersion returns cluster API version GetKubeVersion() string }
ClusterRuntimeInfo holds cluster runtime information
Click to show internal directories.
Click to hide internal directories.