cache

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

@Title This file is used to cache the objects that need to be reused in the reconciler @Description The cached data is placed in the global sync.Map, you need to call clearPipelineContextCaches to clean up the corresponding data after you use it at will

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	GetOrSetPipelineRerunSuccessTasksFromContext(pipelineID uint64) (successTasks map[string]*spec.PipelineTask, err error)
	GetOrSetStagesFromContext(pipelineID uint64) (stages []spec.PipelineStage, err error)
	GetOrSetPipelineYmlFromContext(pipelineID uint64) (yml *pipelineyml.PipelineYml, err error)
	GetOrSetPassedDataWhenCreateFromContext(pipelineYml *pipelineyml.PipelineYml, pipeline *spec.Pipeline) (passedDataWhenCreate *action_info.PassedDataWhenCreate, err error)
	ClearReconcilerPipelineContextCaches(pipelineID uint64)
	SetPipelineSecretByPipelineID(pipelineID uint64, secret *SecretCache)
	GetPipelineSecretByPipelineID(pipelineID uint64) (secret *SecretCache)
	ClearPipelineSecretByPipelineID(pipelineID uint64)
	GetOrSetOrgName(orgID uint64) string
}

type SecretCache

type SecretCache struct {
	Secrets           map[string]string
	CmsDiceFiles      map[string]string
	HoldOnKeys        []string
	EncryptSecretKeys []string
}

Jump to

Keyboard shortcuts

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