fs

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CellMetadataDir

func CellMetadataDir(baseRunPath, realmName, spaceName, stackName, cellName string) string

CellMetadataDir returns the metadata directory for the given cell within a realm, space, and stack.

func CellMetadataPath

func CellMetadataPath(baseRunPath, realmName, spaceName, stackName, cellName string) string

CellMetadataPath returns the metadata file path for the given cell within a realm, space, and stack.

func ContainerMetadataDir added in v0.2.0

func ContainerMetadataDir(baseRunPath, realmName, spaceName, stackName, cellName, containerName string) string

ContainerMetadataDir returns the per-container metadata directory inside the owning cell's metadata tree. Used as the host anchor for per-container state such as the sbsh control socket.

func ContainerSocketPath added in v0.2.0

func ContainerSocketPath(baseRunPath, realmName, spaceName, stackName, cellName, containerName string) string

ContainerSocketPath returns the host-side path for a container's sbsh terminal socket. This is the single source of truth for both the host-visible path that `kuke attach` connects to and the path sbsh listens on inside the container (mediated by the ContainerTTYDir bind mount).

func ContainerTTYDir added in v0.2.0

func ContainerTTYDir(baseRunPath, realmName, spaceName, stackName, cellName, containerName string) string

ContainerTTYDir returns the host-side per-container directory that owns the sbsh terminal socket and its capture/log siblings. It is bind-mounted into the container at /run/kukeon/tty so that sbsh's unlink-and-recreate cycle on the socket inode stays host-visible.

func ConvertCellListToExternal

func ConvertCellListToExternal(internalCells []intmodel.Cell) ([]*v1beta1.CellDoc, error)

ConvertCellListToExternal converts a slice of internal cells to a slice of external cell docs.

func ConvertCellToExternal

func ConvertCellToExternal(internalCell intmodel.Cell) (*v1beta1.CellDoc, error)

ConvertCellToExternal converts an internal cell to an external cell doc.

func ConvertContainerSpecListToExternal

func ConvertContainerSpecListToExternal(internalSpecs []intmodel.ContainerSpec) ([]*v1beta1.ContainerSpec, error)

ConvertContainerSpecListToExternal converts a slice of internal container specs to a slice of external specs.

func ConvertContainerToExternal

func ConvertContainerToExternal(internalContainer intmodel.Container) (*v1beta1.ContainerDoc, error)

ConvertContainerToExternal converts an internal container to an external container doc.

func ConvertRealmListToExternal

func ConvertRealmListToExternal(internalRealms []intmodel.Realm) ([]*v1beta1.RealmDoc, error)

ConvertRealmListToExternal converts a slice of internal realms to a slice of external realm docs.

func ConvertRealmToExternal

func ConvertRealmToExternal(internalRealm intmodel.Realm) (*v1beta1.RealmDoc, error)

ConvertRealmToExternal converts an internal realm to an external realm doc.

func ConvertSpaceListToExternal

func ConvertSpaceListToExternal(internalSpaces []intmodel.Space) ([]*v1beta1.SpaceDoc, error)

ConvertSpaceListToExternal converts a slice of internal spaces to a slice of external space docs.

func ConvertSpaceToExternal

func ConvertSpaceToExternal(internalSpace intmodel.Space) (*v1beta1.SpaceDoc, error)

ConvertSpaceToExternal converts an internal space to an external space doc.

func ConvertStackListToExternal

func ConvertStackListToExternal(internalStacks []intmodel.Stack) ([]*v1beta1.StackDoc, error)

ConvertStackListToExternal converts a slice of internal stacks to a slice of external stack docs.

func ConvertStackToExternal

func ConvertStackToExternal(internalStack intmodel.Stack) (*v1beta1.StackDoc, error)

ConvertStackToExternal converts an internal stack to an external stack doc.

func DetectMetadataVersion

func DetectMetadataVersion(raw []byte) (v1beta1.Version, error)

DetectMetadataVersion detects the API version from raw metadata bytes by parsing the apiVersion field. It returns the normalized version using apischeme.DefaultVersion.

func RealmMetadataDir

func RealmMetadataDir(baseRunPath, realmName string) string

RealmMetadataDir returns the metadata directory for the given realm.

func RealmMetadataPath

func RealmMetadataPath(baseRunPath, realmName string) string

RealmMetadataPath returns the metadata file path for the given realm.

func SpaceMetadataDir

func SpaceMetadataDir(baseRunPath, realmName, spaceName string) string

SpaceMetadataDir returns the metadata directory for the given space within a realm.

func SpaceMetadataPath

func SpaceMetadataPath(baseRunPath, realmName, spaceName string) string

SpaceMetadataPath returns the metadata file path for the given space within a realm.

func SpaceNetworkConfigPath

func SpaceNetworkConfigPath(baseRunPath, realmName, spaceName string) (string, error)

SpaceNetworkConfigPath returns the path to the space's network conflist file.

func StackMetadataDir

func StackMetadataDir(baseRunPath, realmName, spaceName, stackName string) string

StackMetadataDir returns the metadata directory for the given stack within a realm and space.

func StackMetadataPath

func StackMetadataPath(baseRunPath, realmName, spaceName, stackName string) string

StackMetadataPath returns the metadata file path for the given stack within a realm and space.

func WriteSpaceNetworkConfig

func WriteSpaceNetworkConfig(confPath, networkName string) error

WriteSpaceNetworkConfig writes the network conflist at the provided path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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