config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LifecycleConfigName = "lifecycle-image"
	LifecycleConfigKey  = "image"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LifecycleProvider

type LifecycleProvider struct {
	RegistryClient RegistryClient
	Keychain       authn.Keychain
	// contains filtered or unexported fields
}

func NewLifecycleProvider

func NewLifecycleProvider(lifecycleImageRef string, client RegistryClient, keychain authn.Keychain) *LifecycleProvider

func (*LifecycleProvider) AddEventHandler

func (l *LifecycleProvider) AddEventHandler(handler func())

func (*LifecycleProvider) GetImage added in v0.2.0

func (l *LifecycleProvider) GetImage() (v1.Image, error)

func (*LifecycleProvider) UpdateImage

func (l *LifecycleProvider) UpdateImage(cm *corev1.ConfigMap)

type RegistryClient

type RegistryClient interface {
	Fetch(keychain authn.Keychain, repoName string) (v1.Image, string, error)
}

Jump to

Keyboard shortcuts

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