clean

package
v3.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InSlice

func InSlice(v string, sl []string) bool

InSlice checks given string in string slice or not.

func SliceDiff

func SliceDiff(slice1, slice2 []string) (diffSlice []string)

SliceDiff returns diff slice of slice1 - slice2.

Types

type Manager

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

func NewManager

func NewManager(ctx context.Context, kubeclient *kubernetes.Clientset) (*Manager, error)

func (*Manager) CollectingTasks

func (m *Manager) CollectingTasks()

func (*Manager) PerformTasks

func (m *Manager) PerformTasks()

func (*Manager) Start

func (m *Manager) Start() error

func (*Manager) Stop

func (m *Manager) Stop() error

type Resource

type Resource interface {
	IsTimeout() bool
	DeleteResources() error
	IsClean() bool
	Name() string
	Type() string
}

Resource should be clean resource

func QueryDeploymentResource

func QueryDeploymentResource(m *Manager) []Resource

func QueryK8sServiceResource

func QueryK8sServiceResource(m *Manager) []Resource

func QueryNameSpacesResource

func QueryNameSpacesResource(m *Manager) []Resource

func QueryRcResource

func QueryRcResource(m *Manager) []Resource

func QueryStatefulResource

func QueryStatefulResource(m *Manager) []Resource

func QueryTenantServiceResource

func QueryTenantServiceResource(m *Manager) []Resource

Jump to

Keyboard shortcuts

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