replicationcontroller

package
v0.0.0-...-b1c395d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 PodContainerPort struct {
	Name          string
	ContainerPort int
	Protocol      string
}

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 ReplicationControllerAndRelatedPod

type ReplicationControllerAndRelatedPod struct {
	Name               string
	Namespace          string
	ReplicaAmount      int
	AliveReplicaAmount int
	Selector           map[string]string
	Label              map[string]string
	PodSlice           []Pod
}

type ReplicationControllerContainer

type ReplicationControllerContainer struct {
	Name      string
	Image     string
	PortSlice []ReplicationControllerContainerPort
}

type ReplicationControllerContainerPort

type ReplicationControllerContainerPort struct {
	Name          string
	ContainerPort int
}

type ReplicationControllerLabel

type ReplicationControllerLabel struct {
	Name string
}

type ReplicationControllerSelector

type ReplicationControllerSelector struct {
	Name    string
	Version 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]

Jump to

Keyboard shortcuts

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