code_sync

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCodeRootPath = "/code"
)

Variables

This section is empty.

Functions

func InjectCodeSyncInitContainers

func InjectCodeSyncInitContainers(metaObj metav1.Object, specs map[apiv1.ReplicaType]*apiv1.ReplicaSpec) error

Types

type CodeSyncHandler

type CodeSyncHandler interface {
	InitContainer(optsConfig []byte, mountVolume *v1.Volume) (c *v1.Container, codePath string, err error)
}

type SyncOptions

type SyncOptions struct {
	// Code source address.(required)
	Source string `json:"source"`
	// Image contains toolkits to execute syncing code.
	Image string `json:"image,omitempty"`
	// Code root/destination directory path.
	// Root: the path to save downloaded files.
	// Dest: the name of (a symlink to) a directory in which to check-out files
	RootPath string `json:"rootPath,omitempty"`
	DestPath string `json:"destPath,omitempty"`
	// User-customized environment variables.
	Envs []v1.EnvVar `json:"envs,omitempty"`
}

Jump to

Keyboard shortcuts

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