updater

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	// Dependencies.
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger
}

Config represents the configuration used to create a new updater.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new updater by best effort.

type Updater

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

func New

func New(config Config) (*Updater, error)

New creates a new updater.

func (*Updater) AddAnnotations

func (p *Updater) AddAnnotations(namespace, service string, podName string, podIP net.IP) error

Jump to

Keyboard shortcuts

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