cache

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddCacheFlagsToCmd

func AddCacheFlagsToCmd(cmd *cobra.Command) func() (*Cache, error)

Types

type Cache

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

func NewCache

func NewCache(
	cache *appstatecache.Cache,
	connectionStatusCacheExpiration time.Duration,
	oidcCacheExpiration time.Duration,
) *Cache

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

func (c *Cache) GetClusterInfo(server string) (ClusterInfo, error)

func (*Cache) GetOIDCState

func (c *Cache) GetOIDCState(key string) (*OIDCState, error)

func (*Cache) GetRepoConnectionState

func (c *Cache) GetRepoConnectionState(repo string) (appv1.ConnectionState, error)

func (*Cache) SetClusterInfo

func (c *Cache) SetClusterInfo(server string, state *ClusterInfo) error

func (*Cache) SetOIDCState

func (c *Cache) SetOIDCState(key string, state *OIDCState) error

func (*Cache) SetRepoConnectionState

func (c *Cache) SetRepoConnectionState(repo string, state *appv1.ConnectionState) error

type ClusterInfo

type ClusterInfo struct {
	appv1.ConnectionState
	Version string
}

type OIDCState

type OIDCState struct {
	// ReturnURL is the URL in which to redirect a user back to after completing an OAuth2 login
	ReturnURL string `json:"returnURL"`
}

Jump to

Keyboard shortcuts

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