Documentation
¶
Index ¶
- func GetRelevantDynaKubes(ctx context.Context, apiReader client.Reader) ([]dynakube.DynaKube, error)
- func TenantUUIDFromAPIURL(apiURL string) (string, error)
- type CorrectnessChecker
- type OverlayMount
- type PathResolver
- func (pr PathResolver) AgentConfigDir(dynakubeName string) string
- func (pr PathResolver) AgentJobWorkDirBase() string
- func (pr PathResolver) AgentJobWorkDirForJob(jobName string) string
- func (pr PathResolver) AgentRunDir(dynakubeName string) string
- func (pr PathResolver) AgentRunDirForVolume(dynakubeName string, volumeID string) string
- func (pr PathResolver) AgentSharedBinaryDirBase() string
- func (pr PathResolver) AgentSharedBinaryDirForAgent(versionOrDigest string) string
- func (pr PathResolver) AgentTempUnzipDir() string
- func (pr PathResolver) AgentTempUnzipRootDir() string
- func (pr PathResolver) AppMountForDK(dkName string) string
- func (pr PathResolver) AppMountForID(volumeID string) string
- func (pr PathResolver) AppMountMappedDir(volumeID string) string
- func (pr PathResolver) AppMountPodInfoDir(dkName, podNamespace, podName string) string
- func (pr PathResolver) AppMountVarDir(volumeID string) string
- func (pr PathResolver) AppMountWorkDir(volumeID string) string
- func (pr PathResolver) AppMountsBaseDir() string
- func (pr PathResolver) Base(name string) string
- func (pr PathResolver) DynaKubeDir(dynakubeName string) string
- func (pr PathResolver) DynaKubesBaseDir() string
- func (pr PathResolver) LatestAgentBinaryForDynaKube(dynakubeName string) string
- func (pr PathResolver) OldAgentConfigDir(tenantUUID string, dynakubeName string) string
- func (pr PathResolver) OldAgentSharedRuxitAgentProcConf(tenantUUID, dynakubeName string) string
- func (pr PathResolver) OldOsAgentDir(tenantUUID string) string
- func (pr PathResolver) OsAgentDir(dynakubeName string) string
- func (pr PathResolver) OverlayMappedDir(dynakubeName string, volumeID string) string
- func (pr PathResolver) OverlayVarDir(dynakubeName string, volumeID string) string
- func (pr PathResolver) OverlayVarPodInfo(volumeID string) string
- func (pr PathResolver) OverlayWorkDir(dynakubeName string, volumeID string) string
- func (pr PathResolver) TenantDir(tenantUUID string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRelevantDynaKubes ¶ added in v1.5.0
func TenantUUIDFromAPIURL ¶ added in v1.7.0
only kept for migration
Types ¶
type CorrectnessChecker ¶
type CorrectnessChecker struct {
// contains filtered or unexported fields
}
func NewCorrectnessChecker ¶
func NewCorrectnessChecker(apiReader client.Reader, opts dtcsi.CSIOptions) *CorrectnessChecker
func (*CorrectnessChecker) CorrectCSI ¶
func (checker *CorrectnessChecker) CorrectCSI(ctx context.Context) error
CorrectMetadata checks if the entries in the storage are actually valid Removes not valid entries "Moves" agent bins from deprecated location. (just creates a symlink)
type OverlayMount ¶ added in v1.5.0
func GetRelevantOverlayMounts ¶ added in v1.5.0
func GetRelevantOverlayMounts(mounter mount.Interface, baseFolder string) ([]OverlayMount, error)
type PathResolver ¶
type PathResolver struct {
RootDir string
}
func (PathResolver) AgentConfigDir ¶
func (pr PathResolver) AgentConfigDir(dynakubeName string) string
func (PathResolver) AgentJobWorkDirBase ¶ added in v1.5.0
func (pr PathResolver) AgentJobWorkDirBase() string
func (PathResolver) AgentJobWorkDirForJob ¶ added in v1.5.0
func (pr PathResolver) AgentJobWorkDirForJob(jobName string) string
func (PathResolver) AgentRunDir ¶
func (pr PathResolver) AgentRunDir(dynakubeName string) string
Deprecated kept for future migration/cleanup
func (PathResolver) AgentRunDirForVolume ¶
func (pr PathResolver) AgentRunDirForVolume(dynakubeName string, volumeID string) string
Deprecated kept for future migration/cleanup
func (PathResolver) AgentSharedBinaryDirBase ¶
func (pr PathResolver) AgentSharedBinaryDirBase() string
func (PathResolver) AgentSharedBinaryDirForAgent ¶
func (pr PathResolver) AgentSharedBinaryDirForAgent(versionOrDigest string) string
func (PathResolver) AgentTempUnzipDir ¶
func (pr PathResolver) AgentTempUnzipDir() string
func (PathResolver) AgentTempUnzipRootDir ¶
func (pr PathResolver) AgentTempUnzipRootDir() string
func (PathResolver) AppMountForDK ¶ added in v1.5.0
func (pr PathResolver) AppMountForDK(dkName string) string
AppMountForDK is a directory where a given app-mount volume is stored under a certain dynakube
func (PathResolver) AppMountForID ¶ added in v1.5.0
func (pr PathResolver) AppMountForID(volumeID string) string
AppMountForID replaces AgentRunDirForVolume, the directory where a given app-mount volume is stored
func (PathResolver) AppMountMappedDir ¶ added in v1.5.0
func (pr PathResolver) AppMountMappedDir(volumeID string) string
AppMountMappedDir replaces OverlayMappedDir, the directory where the overlay layers combine into
func (PathResolver) AppMountPodInfoDir ¶ added in v1.5.0
func (pr PathResolver) AppMountPodInfoDir(dkName, podNamespace, podName string) string
func (PathResolver) AppMountVarDir ¶ added in v1.5.0
func (pr PathResolver) AppMountVarDir(volumeID string) string
AppMountVarDir replaces OverlayVarDir, the directory where the container using the volume writes
func (PathResolver) AppMountWorkDir ¶ added in v1.5.0
func (pr PathResolver) AppMountWorkDir(volumeID string) string
AppMountWorkDir replaces OverlayWorkDir, the directory that is necessary for overlayFS to work
func (PathResolver) AppMountsBaseDir ¶ added in v1.5.0
func (pr PathResolver) AppMountsBaseDir() string
AppMountsBaseDir replaces the AgentRunDir, the base directory where all the volumes for the app-mounts are stored
func (PathResolver) Base ¶ added in v1.5.0
func (pr PathResolver) Base(name string) string
func (PathResolver) DynaKubeDir ¶ added in v1.5.0
func (pr PathResolver) DynaKubeDir(dynakubeName string) string
func (PathResolver) DynaKubesBaseDir ¶ added in v1.5.0
func (pr PathResolver) DynaKubesBaseDir() string
func (PathResolver) LatestAgentBinaryForDynaKube ¶ added in v1.5.0
func (pr PathResolver) LatestAgentBinaryForDynaKube(dynakubeName string) string
func (PathResolver) OldAgentConfigDir ¶ added in v1.5.0
func (pr PathResolver) OldAgentConfigDir(tenantUUID string, dynakubeName string) string
Deprecated kept for future migration/cleanup
func (PathResolver) OldAgentSharedRuxitAgentProcConf ¶ added in v1.5.0
func (pr PathResolver) OldAgentSharedRuxitAgentProcConf(tenantUUID, dynakubeName string) string
Deprecated kept for future migration/cleanup
func (PathResolver) OldOsAgentDir ¶ added in v1.5.0
func (pr PathResolver) OldOsAgentDir(tenantUUID string) string
Deprecated kept for future migration/cleanup
func (PathResolver) OsAgentDir ¶
func (pr PathResolver) OsAgentDir(dynakubeName string) string
func (PathResolver) OverlayMappedDir ¶
func (pr PathResolver) OverlayMappedDir(dynakubeName string, volumeID string) string
Deprecated kept for future migration/cleanup
func (PathResolver) OverlayVarDir ¶
func (pr PathResolver) OverlayVarDir(dynakubeName string, volumeID string) string
Deprecated kept for future migration/cleanup
func (PathResolver) OverlayVarPodInfo ¶ added in v1.5.0
func (pr PathResolver) OverlayVarPodInfo(volumeID string) string
func (PathResolver) OverlayWorkDir ¶
func (pr PathResolver) OverlayWorkDir(dynakubeName string, volumeID string) string
Deprecated kept for future migration/cleanup
func (PathResolver) TenantDir ¶
func (pr PathResolver) TenantDir(tenantUUID string) string
Deprecated kept for future migration/cleanup