Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImageTagFromImage added in v0.6.25

func GetImageTagFromImage(image string) string

Types

type ACDAuthConfig

type ACDAuthConfig struct {
	ACDUsername                      string `env:"ACD_USERNAME" envDefault:"admin" description:"User name for argocd"`
	ACDPassword                      string `env:"ACD_PASSWORD" description:"Password for the Argocd (deprecated)"`
	ACDConfigMapName                 string `env:"ACD_CM" envDefault:"argocd-cm" description:"Name of the argocd CM"`
	ACDConfigMapNamespace            string `env:"ACD_NAMESPACE" envDefault:"devtroncd" description:"To pass the argocd namespace"`
	GitOpsSecretName                 string `env:"GITOPS_SECRET_NAME" envDefault:"devtron-gitops-secret" description:"devtron-gitops-secret"`
	ResourceListForReplicas          string `` /* 220-byte string literal not displayed */
	ResourceListForReplicasBatchSize int    `` /* 179-byte string literal not displayed */
}

CATEGORY=GITOPS

func GetACDAuthConfig

func GetACDAuthConfig() (*ACDAuthConfig, error)

type TokenCache

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

func NewTokenCache

func NewTokenCache(logger *zap.SugaredLogger, aCDAuthConfig *ACDAuthConfig, userAuthService user.UserAuthService) *TokenCache

func (*TokenCache) BuildACDSynchContext

func (impl *TokenCache) BuildACDSynchContext() (acdContext context.Context, err error)

Jump to

Keyboard shortcuts

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