telepolice

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 16 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 Telepolice

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

func NewByInClusterConfig

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

func NewByKubeConfig

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

func (*Telepolice) Cleanup

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

func (*Telepolice) EnableVerbose

func (te *Telepolice) EnableVerbose()

func (*Telepolice) Get

func (te *Telepolice) Get() error

func (*Telepolice) SetAllNamespaces

func (te *Telepolice) SetAllNamespaces() error

func (*Telepolice) SetNamespaces

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

func (*Telepolice) WatchWithCleanup

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

Jump to

Keyboard shortcuts

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