config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultRepositoryConfig

type DefaultRepositoryConfig struct {
	Registry               string           `json:"registry,omitempty"`
	Repository             *string          `json:"repository,omitempty"`
	Namespace              *string          `json:"namespace,omitempty"`
	Scheme                 *string          `json:"scheme,omitempty"`
	SkipServerVerification *bool            `json:"skipServerVerification,omitempty"`
	CaCrt                  *string          `json:"ca.crt,omitempty"`
	Username               string           `json:"-"`
	Password               api.SecureString `json:"-"`
}

DefaultRepositoryConfig configures the OCI repository used for generated deltas.

func (*DefaultRepositoryConfig) OciRepoSpec

func (d *DefaultRepositoryConfig) OciRepoSpec() (*domain.OciRepoSpec, error)

type DeltaGenerationConfig

type DeltaGenerationConfig struct {
	DefaultRepository             *DefaultRepositoryConfig `json:"defaultRepository,omitempty"`
	MaxConcurrentDeltaGenerations int                      `json:"maxConcurrentDeltaGenerations,omitempty"`
	Timeout                       util.Duration            `json:"timeout,omitempty"`
	CompletionTimeout             util.Duration            `json:"completionTimeout,omitempty"`
	MaxWaitForDelta               *util.Duration           `json:"maxWaitForDelta,omitempty"`
}

DeltaGenerationConfig contains configuration used by the delta worker.

func (*DeltaGenerationConfig) EffectiveCompletionTimeout

func (c *DeltaGenerationConfig) EffectiveCompletionTimeout() time.Duration

func (*DeltaGenerationConfig) EffectiveMaxConcurrentDeltaGenerations

func (c *DeltaGenerationConfig) EffectiveMaxConcurrentDeltaGenerations() int

EffectiveMaxConcurrentDeltaGenerations returns the configured consumer count, defaulting to 2 and capped at maxConcurrentDeltaGenerationsLimit.

func (*DeltaGenerationConfig) EffectiveMaxWaitForDelta

func (c *DeltaGenerationConfig) EffectiveMaxWaitForDelta() *time.Duration

func (*DeltaGenerationConfig) EffectiveTimeout

func (c *DeltaGenerationConfig) EffectiveTimeout() time.Duration

func (*DeltaGenerationConfig) Validate

func (c *DeltaGenerationConfig) Validate() error

Validate validates the default OCI repository settings.

Jump to

Keyboard shortcuts

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