utils

package
v1.65.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncedPollPeriod = 100 * time.Millisecond
)

Variables

View Source
var ErrCAFieldIsNotFound = errors.New("secret has no ca field")

Functions

func GenerateRegistryOptions

func GenerateRegistryOptions(ri *RegistryConfig) []cr.Option

func GenerateRegistryOptionsFromModuleSource added in v1.65.0

func GenerateRegistryOptionsFromModuleSource(ms *v1alpha1.ModuleSource, clusterUUID string) []cr.Option

GenerateRegistryOptionsFromModuleSource fetches settings from ModuleSource and generate registry options from them

Types

type DeckhouseRegistrySecret added in v1.65.0

type DeckhouseRegistrySecret struct {
	DockerConfig          string
	Address               string
	ClusterIsBootstrapped string
	ImageRegistry         string
	Path                  string
	Scheme                string
	CA                    string
}

func ParseDeckhouseRegistrySecret added in v1.65.0

func ParseDeckhouseRegistrySecret(data map[string][]byte) (*DeckhouseRegistrySecret, error)

type FakeLayer added in v1.60.0

type FakeLayer struct {
	v1.Layer

	FilesContent map[string]string // pair: filename - file content
}

func (FakeLayer) Size added in v1.60.0

func (fl FakeLayer) Size() (int64, error)

func (FakeLayer) Uncompressed added in v1.60.0

func (fl FakeLayer) Uncompressed() (io.ReadCloser, error)

type RegistryConfig added in v1.65.0

type RegistryConfig struct {
	DockerConfig string
	CA           string
	Scheme       string
	UserAgent    string
}

Jump to

Keyboard shortcuts

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