tmp_manager

package
v1.2.171 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CommonPrefix           = "werf-"
	ProjectDirPrefix       = CommonPrefix + "project-data-"
	DockerConfigDirPrefix  = CommonPrefix + "docker-config-"
	KubeConfigDirPrefix    = CommonPrefix + "kubeconfig-"
	WerfConfigRenderPrefix = CommonPrefix + "config-render-"
)

Variables

This section is empty.

Functions

func CreateDockerConfigDir

func CreateDockerConfigDir(ctx context.Context, fromDockerConfig string) (string, error)

func CreateKubeConfigFromBase64 added in v1.2.80

func CreateKubeConfigFromBase64(ctx context.Context, base64KubeConfig io.Reader) (string, error)

func CreateProjectDir

func CreateProjectDir(ctx context.Context) (string, error)

func CreateWerfConfigRender

func CreateWerfConfigRender(ctx context.Context) (string, error)

func GetCreatedTmpDirs

func GetCreatedTmpDirs() string

func GetReleasedTmpDirs

func GetReleasedTmpDirs() string

func GetServiceTmpDir

func GetServiceTmpDir() string

func Purge

func Purge(ctx context.Context, dryRun bool, containerBackend container_backend.ContainerBackend) error

func ReleaseProjectDir

func ReleaseProjectDir(dir string) error

func RunGC added in v1.2.11

func RunGC(ctx context.Context, dryRun bool, containerBackend container_backend.ContainerBackend) error

func ShouldRunAutoGC added in v1.2.11

func ShouldRunAutoGC() (bool, error)

Types

type LinkDesc

type LinkDesc struct {
	FileInfo os.FileInfo
	LinkPath string
}

Jump to

Keyboard shortcuts

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