Documentation ¶
Index ¶
- Variables
- func AddCacheFlagsToCmd(cmd *cobra.Command, opts ...func(client *redis.Client)) func() (*Cache, error)
- type Cache
- func (c *Cache) GetAppManagedResources(appName string, res *[]*appv1.ResourceDiff) error
- func (c *Cache) GetAppResourcesTree(appName string, res *appv1.ApplicationTree) error
- func (c *Cache) GetCache() *cacheutil.Cache
- func (c *Cache) GetClusterInfo(server string, res *appv1.ClusterInfo) error
- func (c *Cache) GetLoginAttempts(attempts *map[string]session.LoginAttempts) error
- func (c *Cache) GetOIDCState(key string) (*oidc.OIDCState, error)
- func (c *Cache) GetRepoConnectionState(repo string) (appv1.ConnectionState, error)
- func (c *Cache) OnAppResourcesTreeChanged(ctx context.Context, appName string, callback func() error) error
- func (c *Cache) SetClusterInfo(server string, res *appv1.ClusterInfo) error
- func (c *Cache) SetLoginAttempts(attempts map[string]session.LoginAttempts) error
- func (c *Cache) SetOIDCState(key string, state *oidc.OIDCState) error
- func (c *Cache) SetRepoConnectionState(repo string, state *appv1.ConnectionState) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheMiss = appstatecache.ErrCacheMiss
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) GetAppManagedResources ¶
func (c *Cache) GetAppManagedResources(appName string, res *[]*appv1.ResourceDiff) error
func (*Cache) GetAppResourcesTree ¶
func (c *Cache) GetAppResourcesTree(appName string, res *appv1.ApplicationTree) error
func (*Cache) GetClusterInfo ¶ added in v1.4.0
func (c *Cache) GetClusterInfo(server string, res *appv1.ClusterInfo) error
func (*Cache) GetLoginAttempts ¶ added in v1.5.3
func (c *Cache) GetLoginAttempts(attempts *map[string]session.LoginAttempts) error
func (*Cache) GetRepoConnectionState ¶
func (c *Cache) GetRepoConnectionState(repo string) (appv1.ConnectionState, error)
func (*Cache) OnAppResourcesTreeChanged ¶ added in v1.7.3
func (*Cache) SetClusterInfo ¶ added in v1.4.0
func (c *Cache) SetClusterInfo(server string, res *appv1.ClusterInfo) error
func (*Cache) SetLoginAttempts ¶ added in v1.5.3
func (c *Cache) SetLoginAttempts(attempts map[string]session.LoginAttempts) error
func (*Cache) SetRepoConnectionState ¶
func (c *Cache) SetRepoConnectionState(repo string, state *appv1.ConnectionState) error
Click to show internal directories.
Click to hide internal directories.