registryswitcher

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubernetesConfig

func KubernetesConfig(name string) go_hook.KubernetesConfig

Types

type DeckhousePodStatus

type DeckhousePodStatus struct {
	IsExist         bool
	IsReady         bool
	ReadyMsg        string
	RegistryVersion string
}

type Inputs

type Inputs struct {
	DeckhousePod DeckhousePodStatus
}

func InputsFromSnapshot

func InputsFromSnapshot(input *go_hook.HookInput, name string) (Inputs, error)

type ManagedModeParams

type ManagedModeParams struct {
	CA       string
	Username string
	Password string
}

type Params

type Params struct {
	RegistrySecret deckhouse_registry.Config

	ManagedMode   *ManagedModeParams
	UnmanagedMode *UnmanagedModeParams
}

type Result

type Result struct {
	Ready   bool
	Message string
}

type State

type State struct {
	Config deckhouse_registry.Config
	Hash   string
}

func (*State) Process

func (s *State) Process(params Params, inputs Inputs) (Result, error)

type UnmanagedModeParams

type UnmanagedModeParams struct {
	ImagesRepo string
	Scheme     string
	CA         string
	Username   string
	Password   string
}

Jump to

Keyboard shortcuts

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