Documentation ¶
Index ¶
- type Container
- type Env
- type Limits
- type Node
- type Rancher2
- func (r *Rancher2) ContainerExists(id string) (exists bool, err error)
- func (r *Rancher2) CreateContainer(name string, image string, env map[string]string, restart bool) (id string, err error)
- func (r *Rancher2) RemoveContainer(id string) (err error)
- func (r *Rancher2) UpdateContainer(id string, name string, image string, env map[string]string, restart bool) (newId string, err error)
- type Request
- type Resources
- type Scheduling
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rancher2 ¶
type Rancher2 struct {
// contains filtered or unexported fields
}
func (*Rancher2) ContainerExists ¶
func (*Rancher2) CreateContainer ¶
func (*Rancher2) RemoveContainer ¶
type Request ¶
type Request struct { Name string `json:"name,omitempty"` NamespaceId string `json:"namespaceId,omitempty"` Containers []Container `json:"containers,omitempty"` Labels map[string]string `json:"labels,omitempty"` Selector Selector `json:"selector,omitempty"` Scheduling Scheduling `json:"scheduling,omitempty"` }
type Scheduling ¶
Click to show internal directories.
Click to hide internal directories.