telecleaner

package
v0.0.0-...-d571b52 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Concurrency int
	// Pod immediately after startup is in preparation and passes health check for the specified number of seconds
	IgnorerablePodStartTimeOfSec int
}

func NewConfig

func NewConfig(concurrency int, ignorerablePodStartTimeOfSec int) *Config

type KubernetesLastAppliedConfiguration

type KubernetesLastAppliedConfiguration struct {
	Metadata KubernetesMetadata `json:"metadata"`
	Spec     KubernetesSpec     `json:"spec"`
}

type KubernetesMetadata

type KubernetesMetadata struct {
	SelfLink string `json:"selfLink"`
}

type KubernetesSpec

type KubernetesSpec struct {
	Replicas int32 `json:"replicas"`
}

type Telecleaner

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

func NewByInClusterConfig

func NewByInClusterConfig(c *Config) (*Telecleaner, error)

func NewByKubeConfig

func NewByKubeConfig(c *Config) (*Telecleaner, error)

func (*Telecleaner) Cleanup

func (te *Telecleaner) Cleanup(dryrun bool) error

func (*Telecleaner) EnableVerbose

func (te *Telecleaner) EnableVerbose()

func (*Telecleaner) Get

func (te *Telecleaner) Get() error

func (*Telecleaner) SetAllNamespaces

func (te *Telecleaner) SetAllNamespaces() error

func (*Telecleaner) SetNamespaces

func (te *Telecleaner) SetNamespaces(namespaces []string)

func (*Telecleaner) WatchWithCleanup

func (te *Telecleaner) WatchWithCleanup(dryrun bool, intervalSec int) error

Jump to

Keyboard shortcuts

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