Documentation ¶
Index ¶
- Constants
- func ConfigCreate(ctx context.Context, name string, cfg *types.ConfigManifest) error
- func ConfigManage(ctx context.Context, name string, cfg *types.ConfigManifest) error
- func ConfigRemove(ctx context.Context, name string)
- func ConfigUpdate(ctx context.Context, name string, cfg *types.ConfigManifest) error
- func ImagePull(ctx context.Context, namespace string, image *types.SpecTemplateContainerImage) error
- func ImageRemove(ctx context.Context, link string) error
- func ImageRestore(ctx context.Context) error
- func NodeAllocation() types.NodeResources
- func NodeCapacity() types.NodeResources
- func NodeInfo() types.NodeInfo
- func NodeStatus() types.NodeStatus
- func PodClean(ctx context.Context, status *types.PodStatus)
- func PodCreate(ctx context.Context, key string, manifest *types.PodManifest) (*types.PodStatus, error)
- func PodDestroy(ctx context.Context, pod string, status *types.PodStatus)
- func PodLogs(ctx context.Context, id string, follow bool, s io.Writer, doneChan chan bool) error
- func PodManage(ctx context.Context, key string, manifest *types.PodManifest) error
- func PodRestart(ctx context.Context, key string) error
- func PodRestore(ctx context.Context) error
- func PodSpecCheck(ctx context.Context, key string, manifest *types.PodManifest) bool
- func PodVolumeAttach(ctx context.Context, pod string, spec *types.SpecTemplateVolume) (*types.VolumeClaim, error)
- func PodVolumeCreate(ctx context.Context, pod string, spec *types.SpecTemplateVolume) (*types.VolumeStatus, error)
- func PodVolumeDestroy(ctx context.Context, pod, volume string) error
- func PodVolumeUpdate(ctx context.Context, pod string, spec *types.SpecTemplateVolume) (*types.VolumeStatus, error)
- func PodVolumesCheck(ctx context.Context, pod string, spec []*types.SpecTemplateVolume) bool
- func SecretCreate(ctx context.Context, selflink string) error
- func SecretGet(ctx context.Context, selflink string) (*types.Secret, error)
- func SecretRemove(ctx context.Context, selflink string)
- func SecretUpdate(ctx context.Context, selflink string) error
- func VolumeCheckConfigData(ctx context.Context, name string, config string) (bool, error)
- func VolumeCheckSecretData(ctx context.Context, name string, secret string) (bool, error)
- func VolumeCreate(ctx context.Context, name string, mf *types.VolumeManifest) (*types.VolumeStatus, error)
- func VolumeDestroy(ctx context.Context, name string) error
- func VolumeManage(ctx context.Context, key string, manifest *types.VolumeManifest) error
- func VolumeRestore(ctx context.Context) error
- func VolumeSetConfigData(ctx context.Context, name string, config string) error
- func VolumeSetSecretData(ctx context.Context, name string, secret string) error
- type Runtime
Constants ¶
View Source
const (
BUFFER_SIZE = 1024
)
View Source
const MinContainerMemory = 32
Variables ¶
This section is empty.
Functions ¶
func ConfigCreate ¶
func ConfigManage ¶
func ConfigRemove ¶
func ConfigUpdate ¶
func ImageRestore ¶
func NodeAllocation ¶
func NodeAllocation() types.NodeResources
func NodeCapacity ¶
func NodeCapacity() types.NodeResources
func NodeStatus ¶
func NodeStatus() types.NodeStatus
func PodRestore ¶
func PodSpecCheck ¶
func PodVolumeAttach ¶
func PodVolumeAttach(ctx context.Context, pod string, spec *types.SpecTemplateVolume) (*types.VolumeClaim, error)
func PodVolumeCreate ¶
func PodVolumeCreate(ctx context.Context, pod string, spec *types.SpecTemplateVolume) (*types.VolumeStatus, error)
func PodVolumeUpdate ¶
func PodVolumeUpdate(ctx context.Context, pod string, spec *types.SpecTemplateVolume) (*types.VolumeStatus, error)
func PodVolumesCheck ¶
func SecretRemove ¶
func VolumeCheckConfigData ¶
func VolumeCheckSecretData ¶
func VolumeCreate ¶
func VolumeCreate(ctx context.Context, name string, mf *types.VolumeManifest) (*types.VolumeStatus, error)
func VolumeManage ¶
func VolumeRestore ¶
func VolumeSetConfigData ¶
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime main node process
Click to show internal directories.
Click to hide internal directories.