Documentation
¶
Index ¶
- func GetRuntimeResourceType(labels map[string]string) resource_executor.RuntimeResourceType
- func HostConfigToResource(config *container.HostConfig) *v1alpha1.LinuxContainerResources
- func MergeResourceByUpdateConfig(resources *v1alpha1.LinuxContainerResources, ...) *v1alpha1.LinuxContainerResources
- func ToCriCgroupPath(cgroupDriver, cgroupParent string) string
- func UpdateHostConfigByResource(config *container.HostConfig, resources *v1alpha1.LinuxContainerResources) *container.HostConfig
- func UpdateUpdateConfigByResource(containerConfig *container.UpdateConfig, ...) *container.UpdateConfig
- type RuntimeManagerDockerServer
- func (d *RuntimeManagerDockerServer) Direct(wr http.ResponseWriter, req *http.Request) string
- func (d *RuntimeManagerDockerServer) HandleCreateContainer(ctx context.Context, wr http.ResponseWriter, req *http.Request)
- func (d *RuntimeManagerDockerServer) HandleStartContainer(ctx context.Context, wr http.ResponseWriter, req *http.Request)
- func (d *RuntimeManagerDockerServer) HandleStopContainer(ctx context.Context, wr http.ResponseWriter, req *http.Request)
- func (d *RuntimeManagerDockerServer) HandleUpdateContainer(ctx context.Context, wr http.ResponseWriter, req *http.Request)
- func (d *RuntimeManagerDockerServer) Name() string
- func (d *RuntimeManagerDockerServer) Run() error
- func (d *RuntimeManagerDockerServer) ServeHTTP(wr http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRuntimeResourceType ¶
func GetRuntimeResourceType(labels map[string]string) resource_executor.RuntimeResourceType
func HostConfigToResource ¶
func HostConfigToResource(config *container.HostConfig) *v1alpha1.LinuxContainerResources
func MergeResourceByUpdateConfig ¶ added in v0.6.0
func MergeResourceByUpdateConfig(resources *v1alpha1.LinuxContainerResources, containerConfig *container.UpdateConfig) *v1alpha1.LinuxContainerResources
func ToCriCgroupPath ¶
func UpdateHostConfigByResource ¶ added in v0.5.0
func UpdateHostConfigByResource(config *container.HostConfig, resources *v1alpha1.LinuxContainerResources) *container.HostConfig
func UpdateUpdateConfigByResource ¶ added in v0.5.0
func UpdateUpdateConfigByResource(containerConfig *container.UpdateConfig, resources *v1alpha1.LinuxContainerResources) *container.UpdateConfig
Types ¶
type RuntimeManagerDockerServer ¶
type RuntimeManagerDockerServer struct {
// contains filtered or unexported fields
}
func NewRuntimeManagerDockerServer ¶
func NewRuntimeManagerDockerServer() *RuntimeManagerDockerServer
func (*RuntimeManagerDockerServer) Direct ¶
func (d *RuntimeManagerDockerServer) Direct(wr http.ResponseWriter, req *http.Request) string
func (*RuntimeManagerDockerServer) HandleCreateContainer ¶
func (d *RuntimeManagerDockerServer) HandleCreateContainer(ctx context.Context, wr http.ResponseWriter, req *http.Request)
func (*RuntimeManagerDockerServer) HandleStartContainer ¶
func (d *RuntimeManagerDockerServer) HandleStartContainer(ctx context.Context, wr http.ResponseWriter, req *http.Request)
func (*RuntimeManagerDockerServer) HandleStopContainer ¶
func (d *RuntimeManagerDockerServer) HandleStopContainer(ctx context.Context, wr http.ResponseWriter, req *http.Request)
func (*RuntimeManagerDockerServer) HandleUpdateContainer ¶
func (d *RuntimeManagerDockerServer) HandleUpdateContainer(ctx context.Context, wr http.ResponseWriter, req *http.Request)
func (*RuntimeManagerDockerServer) Name ¶
func (d *RuntimeManagerDockerServer) Name() string
func (*RuntimeManagerDockerServer) Run ¶
func (d *RuntimeManagerDockerServer) Run() error
func (*RuntimeManagerDockerServer) ServeHTTP ¶
func (d *RuntimeManagerDockerServer) ServeHTTP(wr http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.