controller

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationNameCacheMode = "operation-cache-controller.azure.github.com/cache-mode"
	AnnotationNameCacheKey  = "operation-cache-controller.azure.github.com/cache-key"
	AnnotationValueTrue     = "true"
	AnnotationValueFalse    = "false"
)
View Source
const (
	LabelNameCacheKey = "operation-cache-controller.azure.github.com/cache-key"
)

Variables

This section is empty.

Functions

func GenerateRandomString

func GenerateRandomString(n int) string

GenerateRandomString generates a random string of length n

func NewCacheKeyFromApplications

func NewCacheKeyFromApplications(apps []appsv1.ApplicationSpec) string

Types

type AppCacheField

type AppCacheField struct {
	Name         string
	Image        string
	Command      []string
	Args         []string
	WorkingDir   string
	Env          []corev1.EnvVar
	Dependencies []string
}

func AppCacheFieldFromApplicationProvision

func AppCacheFieldFromApplicationProvision(app appsv1.ApplicationSpec) *AppCacheField

func AppCacheFieldFromApplicationTeardown

func AppCacheFieldFromApplicationTeardown(app appsv1.ApplicationSpec) *AppCacheField

func (*AppCacheField) NewCacheKey

func (c *AppCacheField) NewCacheKey() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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