objects

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRestarterInitializers added in v0.0.2

func NewRestarterInitializers() map[string]NewRestarterFunc

func PickValidObjects added in v0.0.2

func PickValidObjects(objects map[string]runtime.Object, enable, disable []string) ([]runtime.Object, error)

Types

type DaemonSetRestarter added in v0.0.2

type DaemonSetRestarter struct {
	ClientSet kubernetes.Interface
	Namespace string
	Tag       string
	Enable    []string
	Disable   []string
}

func (*DaemonSetRestarter) List added in v0.0.2

func (d *DaemonSetRestarter) List() ([]runtime.Object, error)

func (*DaemonSetRestarter) Restart added in v0.0.2

func (d *DaemonSetRestarter) Restart(objects []runtime.Object) error

type DeploymentRestarter

type DeploymentRestarter struct {
	ClientSet kubernetes.Interface
	Namespace string
	Tag       string
	Enable    []string
	Disable   []string
}

func (*DeploymentRestarter) List

func (d *DeploymentRestarter) List() ([]runtime.Object, error)

func (*DeploymentRestarter) Restart

func (d *DeploymentRestarter) Restart(objects []runtime.Object) error

type NewRestarterFunc added in v0.0.2

type NewRestarterFunc func(cs kubernetes.Interface, namespace string, tag string, enable, disable []string) Restarter

type Restarter added in v0.0.2

type Restarter interface {
	List() ([]runtime.Object, error)
	Restart(objects []runtime.Object) error
}

func NewDaemonSetRestarter added in v0.0.2

func NewDaemonSetRestarter(cs kubernetes.Interface, namespace string, tag string, enable, disable []string) Restarter

func NewDeploymentRestarter

func NewDeploymentRestarter(cs kubernetes.Interface, namespace string, tag string, enable, disable []string) Restarter

Jump to

Keyboard shortcuts

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