cache

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCache added in v0.0.5

type AppCache interface {
	Set(ctx context.Context, name string, remoteApp, sourceApp *armappcontainers.ContainerApp) error
	NeedsUpdate(ctx context.Context, name string, remoteApp, sourceApp *armappcontainers.ContainerApp) (bool, string, error)
}

type CacheEntry

type CacheEntry struct {
	Name     string    `json:"name"`
	Modified time.Time `json:"modified"`
	Hash     string    `json:"hash"`
}

type CosmosDBAppCache added in v0.0.19

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

func NewCosmosDBAppCache added in v0.0.19

func NewCosmosDBAppCache(cfg config.ReconcileConfig, cosmosDBClient *azure.CosmosDBClient) (*CosmosDBAppCache, error)

func (*CosmosDBAppCache) NeedsUpdate added in v0.0.19

func (c *CosmosDBAppCache) NeedsUpdate(ctx context.Context, name string, remoteApp, sourceApp *armappcontainers.ContainerApp) (bool, string, error)

func (*CosmosDBAppCache) Set added in v0.0.19

func (c *CosmosDBAppCache) Set(ctx context.Context, name string, remoteApp, sourceApp *armappcontainers.ContainerApp) error

type CosmosDBJobCache added in v0.0.19

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

func NewCosmosDBJobCache added in v0.0.19

func NewCosmosDBJobCache(cfg config.ReconcileConfig, cosmosDBClient *azure.CosmosDBClient) (*CosmosDBJobCache, error)

func (*CosmosDBJobCache) NeedsUpdate added in v0.0.19

func (c *CosmosDBJobCache) NeedsUpdate(ctx context.Context, name string, remoteJob, sourceJob *armappcontainers.Job) (bool, string, error)

func (*CosmosDBJobCache) Set added in v0.0.19

func (c *CosmosDBJobCache) Set(ctx context.Context, name string, remoteJob, sourceJob *armappcontainers.Job) error

type CosmosDBNotificationCache added in v0.0.19

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

func NewCosmosDBNotificationCache added in v0.0.19

func NewCosmosDBNotificationCache(cfg config.ReconcileConfig, cosmosDBClient *azure.CosmosDBClient) (*CosmosDBNotificationCache, error)

func (*CosmosDBNotificationCache) Get added in v0.0.19

func (*CosmosDBNotificationCache) Set added in v0.0.19

type CosmosDBRevisionCache added in v0.0.19

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

func NewCosmosDBRevisionCache added in v0.0.19

func NewCosmosDBRevisionCache(cfg config.ReconcileConfig, cosmosDBClient *azure.CosmosDBClient) (*CosmosDBRevisionCache, error)

func (*CosmosDBRevisionCache) Get added in v0.0.19

func (*CosmosDBRevisionCache) Set added in v0.0.19

func (c *CosmosDBRevisionCache) Set(ctx context.Context, revision string) error

type InMemAppCache added in v0.0.19

type InMemAppCache map[string]CacheEntry

func NewInMemAppCache added in v0.0.19

func NewInMemAppCache() *InMemAppCache

func (*InMemAppCache) NeedsUpdate added in v0.0.19

func (c *InMemAppCache) NeedsUpdate(ctx context.Context, name string, remoteApp, sourceApp *armappcontainers.ContainerApp) (bool, string, error)

func (*InMemAppCache) Set added in v0.0.19

func (c *InMemAppCache) Set(ctx context.Context, name string, remoteApp, sourceApp *armappcontainers.ContainerApp) error

type InMemJobCache added in v0.0.19

type InMemJobCache map[string]CacheEntry

func NewInMemJobCache added in v0.0.19

func NewInMemJobCache() *InMemJobCache

func (*InMemJobCache) NeedsUpdate added in v0.0.19

func (c *InMemJobCache) NeedsUpdate(ctx context.Context, name string, remoteJob, sourceJob *armappcontainers.Job) (bool, string, error)

func (*InMemJobCache) Set added in v0.0.19

func (c *InMemJobCache) Set(ctx context.Context, name string, remoteJob, sourceJob *armappcontainers.Job) error

type InMemNotificationCache added in v0.0.19

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

func NewInMemNotificationCache added in v0.0.19

func NewInMemNotificationCache() *InMemNotificationCache

func (*InMemNotificationCache) Get added in v0.0.19

func (*InMemNotificationCache) Reset added in v0.0.19

func (c *InMemNotificationCache) Reset()

func (*InMemNotificationCache) Set added in v0.0.19

type InMemRevisionCache added in v0.0.19

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

func NewInMemRevisionCache added in v0.0.19

func NewInMemRevisionCache() *InMemRevisionCache

func (*InMemRevisionCache) Get added in v0.0.19

func (*InMemRevisionCache) Reset added in v0.0.19

func (c *InMemRevisionCache) Reset()

func (*InMemRevisionCache) Set added in v0.0.19

func (c *InMemRevisionCache) Set(ctx context.Context, revision string) error

type InMemSecretCache added in v0.0.19

type InMemSecretCache map[string]SecretCacheEntry

func NewInMemSecretCache added in v0.0.19

func NewInMemSecretCache() *InMemSecretCache

func (*InMemSecretCache) Get added in v0.0.19

func (c *InMemSecretCache) Get(name string) (string, bool)

func (*InMemSecretCache) Set added in v0.0.19

func (c *InMemSecretCache) Set(name string, value string, modified time.Time)

type JobCache added in v0.0.18

type JobCache interface {
	Set(ctx context.Context, name string, remoteJob, sourceJob *armappcontainers.Job) error
	NeedsUpdate(ctx context.Context, name string, remoteJob, sourceJob *armappcontainers.Job) (bool, string, error)
}

type NotificationCache added in v0.0.19

type NotificationCache interface {
	Set(ctx context.Context, event notification.NotificationEvent) error
	Get(ctx context.Context) (notification.NotificationEvent, bool, error)
}

type RevisionCache added in v0.0.19

type RevisionCache interface {
	Set(ctx context.Context, revision string) error
	Get(ctx context.Context) (string, error)
}

type SecretCacheEntry added in v0.0.5

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

Jump to

Keyboard shortcuts

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