Documentation ¶
Index ¶
- type DeleteController
- type EditController
- type ListController
- type Pod
- type PodContainer
- type PodContainerPort
- type PodLogController
- type ReplicationController
- type ReplicationControllerAndRelatedPod
- type ReplicationControllerContainer
- type ReplicationControllerContainerPort
- type ReplicationControllerLabel
- type ReplicationControllerSelector
- type SizeController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteController ¶
type DeleteController struct {
beego.Controller
}
func (*DeleteController) Delete ¶
func (c *DeleteController) Delete()
@Title delete @Description delete the replication controller @Param namespace path string true "The name of namespace" @Param replicationcontroller path string true "The name of replication controller" @Success 200 {string} {} @Failure 404 error reason @router /:namespace/:replicationcontroller [delete]
type EditController ¶
type EditController struct {
beego.Controller
}
func (*EditController) Post ¶
func (c *EditController) Post()
@Title create @Description create replication controller @Param body body guirestapi.inventory.replicationcontroller.ReplicationController true "body for replication controller" @Success 200 {string} {} @Failure 404 error reason @router / [post]
type ListController ¶
type ListController struct {
beego.Controller
}
func (*ListController) Get ¶
func (c *ListController) Get()
@Title get @Description get all replication controllers @Success 200 {string} []ReplicationControllerAndRelatedPod @Failure 404 error reason @router / [get]
type Pod ¶
type Pod struct { Name string Namespace string HostIP string PodIP string ContainerSlice []PodContainer }
type PodContainer ¶
type PodContainer struct { Name string Image string PortSlice []PodContainerPort }
type PodContainerPort ¶
type PodLogController ¶
type PodLogController struct {
beego.Controller
}
func (*PodLogController) Get ¶
func (c *PodLogController) Get()
@Title get @Description get container log in the pod @Param namespace path string true "The name of namespace" @Param pod path string true "The name of pod" @Success 200 {string} {} @Failure 404 error reason @router /podlog/:namespace/:pod [get]
type ReplicationController ¶
type ReplicationController struct { Name string ReplicaAmount int Selector ReplicationControllerSelector Label ReplicationControllerLabel ContainerSlice []ReplicationControllerContainer }
type ReplicationControllerContainer ¶
type ReplicationControllerContainer struct { Name string Image string PortSlice []ReplicationControllerContainerPort }
type ReplicationControllerLabel ¶
type ReplicationControllerLabel struct {
Name string
}
type SizeController ¶
type SizeController struct {
beego.Controller
}
func (*SizeController) Put ¶
func (c *SizeController) Put()
@Title resize @Description resize replication controller @Param name path string true "The name of replication controller" @Param size query string true "the new size" @Success 200 {string} {} @Failure 404 error reason @router /resize/:name [put]