resource

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNamespaceDeletionTimeout = 10 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentManager

type DeploymentManager struct {
	// contains filtered or unexported fields
}

func NewDeploymentManager

func NewDeploymentManager(cs kubernetes.Interface) *DeploymentManager

func (*DeploymentManager) WaitDeploymentReady

func (m *DeploymentManager) WaitDeploymentReady(ctx context.Context, dp *appsv1.Deployment) (*appsv1.Deployment, error)

type IngressManager

type IngressManager struct {
	// contains filtered or unexported fields
}

func NewIngressManager

func NewIngressManager(cs kubernetes.Interface) *IngressManager

func (*IngressManager) WaitIngressReady

func (m *IngressManager) WaitIngressReady(ctx context.Context, ing *extensionsv1.Ingress) (*extensionsv1.Ingress, error)

type Manager

func NewManager

func NewManager(cs kubernetes.Interface) *Manager

func (*Manager) Cleanup

func (f *Manager) Cleanup(ctx context.Context) error

type NamespaceManager

type NamespaceManager struct {
	// contains filtered or unexported fields
}

func NewNamespaceManager

func NewNamespaceManager(cs kubernetes.Interface) *NamespaceManager

func (*NamespaceManager) Cleanup

func (m *NamespaceManager) Cleanup(ctx context.Context) error

func (*NamespaceManager) CreateNamespaceUnique

func (m *NamespaceManager) CreateNamespaceUnique(ctx context.Context, baseName string) (*corev1.Namespace, error)

func (*NamespaceManager) DeleteNamespace

func (m *NamespaceManager) DeleteNamespace(ctx context.Context, namespace string) error

DeleteNamespace deletes the provided namespace, waits for it to be completely deleted.

type ServiceManager

type ServiceManager struct {
	// contains filtered or unexported fields
}

func NewServiceManager

func NewServiceManager(cs kubernetes.Interface) *ServiceManager

func (*ServiceManager) WaitServiceHasEndpointsNum

func (m *ServiceManager) WaitServiceHasEndpointsNum(ctx context.Context, svc *corev1.Service, epCounts int) (*corev1.Service, error)

Jump to

Keyboard shortcuts

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