k8s

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesConfig

type KubernetesConfig struct {
	Namespaces    []string
	AllNamespaces bool
	KubeConfig    string
	KubeClient    *kubernetes.Clientset
	RegistryOpts  *RegistryOption

	Writer io.Writer
	// contains filtered or unexported fields
}

func (*KubernetesConfig) GetImageOfContainers

func (k *KubernetesConfig) GetImageOfContainers(
	listOpts *metav1.ListOptions,
	writer io.Writer) (err error)

func (*KubernetesConfig) GetRessourcesToUpdate

func (k *KubernetesConfig) GetRessourcesToUpdate(listOpts *metav1.ListOptions) error

func (*KubernetesConfig) NewClientSet

func (k *KubernetesConfig) NewClientSet() (err error)

type RegistryOption

type RegistryOption struct {
	RegistryPassword        string
	RegistryUser            string
	LogOutFromAllRegistries bool
	DigestChache            map[string]*digest.Digest
	SysCtx                  *types.SystemContext
}

func (*RegistryOption) GetDigests

func (opts *RegistryOption) GetDigests(image, imageID string) (installedDigest, registryDigest string)

func (*RegistryOption) IsNewImage

func (opts *RegistryOption) IsNewImage(image, imageID string) bool

func (*RegistryOption) LoginToRegistry

func (opts *RegistryOption) LoginToRegistry(registryName string) error

func (*RegistryOption) LogoutFromRegistry

func (opts *RegistryOption) LogoutFromRegistry(registryName string) error

Jump to

Keyboard shortcuts

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