Documentation
¶
Index ¶
- type DeploymentHelper
- type PodHelper
- func (p *PodHelper) Attach(ctx context.Context, container string, stdin io.Reader) (string, string, error)
- func (p *PodHelper) Create(ctx context.Context) error
- func (p *PodHelper) Delete(ctx context.Context) error
- func (p *PodHelper) Exec(ctx context.Context, container string, cmd []string) (string, string, error)
- func (p *PodHelper) GetLogs(ctx context.Context, container string) (string, error)
- func (p *PodHelper) WaitForContainerReady(ctx context.Context, timeout time.Duration, container string) error
- func (p *PodHelper) WaitForContainerStarted(ctx context.Context, timeout time.Duration, container string) error
- func (p *PodHelper) WaitForInitContainerRunning(ctx context.Context, container string, timeout time.Duration) error
- func (p *PodHelper) WaitForPodDeleted(ctx context.Context, timeout time.Duration) error
- func (p *PodHelper) WaitForPodPhase(ctx context.Context, timeout time.Duration, phase corev1.PodPhase) error
- func (p *PodHelper) WaitForPodRunning(ctx context.Context, timeout time.Duration) error
- func (p *PodHelper) WaitForPodSucceeded(ctx context.Context, timeout time.Duration) error
- type PvcHelper
- type ServiceHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentHelper ¶
type DeploymentHelper struct {
// contains filtered or unexported fields
}
func NewDeploymentHelper ¶
func NewDeploymentHelper(client *kubernetes.Clientset, cfg *rest.Config, svc *appsv1.Deployment) *DeploymentHelper
func (*DeploymentHelper) WaitForCondition ¶
func (s *DeploymentHelper) WaitForCondition(ctx context.Context, fn func(*appsv1.Deployment) (bool, error), timeout time.Duration) error
type PodHelper ¶
type PodHelper struct {
// contains filtered or unexported fields
}
func NewPodHelper ¶
func (*PodHelper) WaitForContainerReady ¶
func (*PodHelper) WaitForContainerStarted ¶
func (*PodHelper) WaitForInitContainerRunning ¶
func (*PodHelper) WaitForPodDeleted ¶
func (*PodHelper) WaitForPodPhase ¶
func (*PodHelper) WaitForPodRunning ¶
type PvcHelper ¶
type PvcHelper struct {
// contains filtered or unexported fields
}
func NewPvcHelper ¶
func NewPvcHelper(client *kubernetes.Clientset, cfg *rest.Config, pvc *corev1.PersistentVolumeClaim) *PvcHelper
func (*PvcHelper) DownloadGenesis ¶
type ServiceHelper ¶
type ServiceHelper struct {
// contains filtered or unexported fields
}
func NewServiceHelper ¶
func NewServiceHelper(client *kubernetes.Clientset, cfg *rest.Config, svc *corev1.Service) *ServiceHelper
Click to show internal directories.
Click to hide internal directories.