Documentation
¶
Index ¶
- Constants
- func BuildPortEnvVars(template *model.Template) []string
- func CreateManagedPath(path string) (string, error)
- func DeleteManagedPath(path string) error
- func RemoveExistingPortEnvVars(env []string) []string
- func ResolveManagedPath(path string) (string, error)
- func ResolveManagedPathBinds(binds []string, volumeData model.VolumeDataMap) []string
- func ValidateManagedVolumeBinds(binds []string, volumeData model.VolumeDataMap) error
- type ContainerManager
Constants ¶
View Source
const ManagedPathType = "path"
Variables ¶
This section is empty.
Functions ¶
func BuildPortEnvVars ¶ added in v0.25.0
func CreateManagedPath ¶ added in v0.25.0
func DeleteManagedPath ¶ added in v0.25.0
func RemoveExistingPortEnvVars ¶ added in v0.25.0
RemoveExistingPortEnvVars removes any existing KNOT_HTTP_PORT, KNOT_HTTPS_PORT, or KNOT_TCP_PORT entries from the given environment slice.
func ResolveManagedPath ¶ added in v0.25.0
func ResolveManagedPathBinds ¶ added in v0.25.0
func ResolveManagedPathBinds(binds []string, volumeData model.VolumeDataMap) []string
func ValidateManagedVolumeBinds ¶ added in v0.25.0
func ValidateManagedVolumeBinds(binds []string, volumeData model.VolumeDataMap) error
Types ¶
type ContainerManager ¶
type ContainerManager interface {
// space management
CreateSpaceJob(user *model.User, template *model.Template, space *model.Space, variables map[string]interface{}) error
DeleteSpaceJob(space *model.Space, onStopped func()) error
CreateSpaceVolumes(user *model.User, template *model.Template, space *model.Space, variables map[string]interface{}) error
DeleteSpaceVolumes(space *model.Space) error
CleanupSpaceArtifacts(space *model.Space) error
StopSpaceRuntime(space *model.Space) error
// volume management
CreateVolume(vol *model.Volume, variables map[string]interface{}) error
DeleteVolume(vol *model.Volume, variables map[string]interface{}) error
}
Click to show internal directories.
Click to hide internal directories.