 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func GetMongoHost(pod, service, replset, namespace string) string
- type CustomResourceState
- type Pods
- type Task
- func (t *Task) GetMongoAddr() (*db.Addr, error)
- func (t *Task) GetMongoReplsetName() (string, error)
- func (t *Task) HasState() bool
- func (t *Task) IsRunning() bool
- func (t *Task) IsTaskType(taskType pod.TaskType) bool
- func (t *Task) IsUpdating() bool
- func (t *Task) Name() string
- func (t *Task) Service() string
- func (t *Task) State() pod.TaskState
 
- type TaskState
Constants ¶
      View Source
      
  
    const ( DefaultNamespace = "psmdb" DefaultInitDelay = "0s" )
      View Source
      
  
    const ( EnvKubernetesHost = "KUBERNETES_SERVICE_HOST" EnvKubernetesPort = "KUBERNETES_SERVICE_PORT" )
      View Source
      
  
const (
	EnvNamespace = "NAMESPACE"
)
    Variables ¶
This section is empty.
Functions ¶
func GetMongoHost ¶
Types ¶
type CustomResourceState ¶
type CustomResourceState struct {
	Name           string
	Pods           []corev1.Pod
	Services       []corev1.Service
	ServicesExpose bool
	Statefulsets   []appsv1.StatefulSet
}
    CustomResourceState represents the state of a single Kubernetes CR for PSMDB
type Pods ¶
func (*Pods) Delete ¶
func (p *Pods) Delete(crState *CustomResourceState)
Delete deletes the state of a single PSMDB CR
func (*Pods) Update ¶
func (p *Pods) Update(crState *CustomResourceState)
Update updates the state of a single PSMDB CR
type Task ¶
type Task struct {
	// contains filtered or unexported fields
}
    func (*Task) GetMongoReplsetName ¶
func (*Task) IsUpdating ¶
 Click to show internal directories. 
   Click to hide internal directories.