Documentation ¶
Index ¶
- Constants
- Variables
- func GetConfig(ctx context.Context, container containerd.Container) (*v1.Container, error)
- func GetConfigFromInfo(ctx context.Context, info containers.Container) (*v1.Container, error)
- func GetRestoreDesc(ctx context.Context, c containerd.Container) (*api.Descriptor, error)
- func ParseISCSI(s string) (string, string, error)
- func UnmarshalConfig(any *types.Any) (*v1.Container, error)
- func WithContainerHostsFile(root string) oci.SpecOpts
- func WithIP(ip string) containerd.UpdateContainerOpts
- func WithISCSILogout(ctx context.Context, client *containerd.Client, c containers.Container) error
- func WithOrbitConfig(paths Paths, config *v1.Container, image containerd.Image) ...
- func WithRestore(m *is.Descriptor) containerd.NewContainerOpts
- func WithRollback(ctx context.Context, client *containerd.Client, c *containers.Container) error
- func WithSetPreviousConfig(ctx context.Context, client *containerd.Client, c *containers.Container) error
- func WithTaskRestore(desc *api.Descriptor) containerd.NewTaskOpts
- func WithoutRestore(ctx context.Context, client *containerd.Client, c *containers.Container) error
- func WriteHostsFiles(root, id string) (string, string, error)
- type Paths
Constants ¶
View Source
const ( CurrentConfig = "stellarproject.io/orbit/container" LastConfig = "stellarproject.io/orbit/container.last" IPLabel = "stellarproject.io/orbit/container.ip" RestoreCheckpointLabel = "stellarproject.io/orbit/restore.checkpoint" )
Variables ¶
View Source
var ErrOldConfigFormat = errors.New("old config format on container")
Functions ¶
func GetConfigFromInfo ¶
func GetRestoreDesc ¶
func GetRestoreDesc(ctx context.Context, c containerd.Container) (*api.Descriptor, error)
func WithContainerHostsFile ¶
func WithIP ¶
func WithIP(ip string) containerd.UpdateContainerOpts
WithIP sets the ip on the container
func WithISCSILogout ¶
func WithISCSILogout(ctx context.Context, client *containerd.Client, c containers.Container) error
func WithOrbitConfig ¶
func WithOrbitConfig(paths Paths, config *v1.Container, image containerd.Image) func(ctx context.Context, client *containerd.Client, c *containers.Container) error
WithOrbitConfig is a containerd.NewContainerOpts for spec and container configuration
func WithRestore ¶
func WithRestore(m *is.Descriptor) containerd.NewContainerOpts
func WithRollback ¶
func WithRollback(ctx context.Context, client *containerd.Client, c *containers.Container) error
func WithSetPreviousConfig ¶
func WithSetPreviousConfig(ctx context.Context, client *containerd.Client, c *containers.Container) error
func WithTaskRestore ¶
func WithTaskRestore(desc *api.Descriptor) containerd.NewTaskOpts
func WithoutRestore ¶
func WithoutRestore(ctx context.Context, client *containerd.Client, c *containers.Container) error
Types ¶
Click to show internal directories.
Click to hide internal directories.