config

package
v2.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

+kubebuilder:validation:Optional

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectStorageBackoffConfig

type ObjectStorageBackoffConfig struct {
	Initial    config.Duration `json:"initial" default:"0.5s"`
	Multiplier float64         `json:"multiplier" default:"1.5"`
	Maximum    config.Duration `json:"maximum" default:"2s"`
}

ObjectStorageBackoffConfig for object storage backoff configuration. swagger:model +kubebuilder:object:generate=true

func (*ObjectStorageBackoffConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStorageBackoffConfig.

func (*ObjectStorageBackoffConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ObjectStorageConfig

type ObjectStorageConfig struct {
	// Enabled denotes if object storage is enabled.
	Enabled bool `json:"enabled" default:"false"`
	// Backend which provides the object storage.
	Backend string `json:"backend" validate:"oneof=gcs" default:"gcs"`
	// Bucket name of the bucket to use. Required if enabled is true.
	Bucket string `json:"bucket"`
	// KeyPrefix to use when writing to bucket. Required if enabled is true.
	KeyPrefix string `json:"key_prefix"`
	// RetryPolicy to configure retries and timeouts for object storage requests.
	RetryPolicy ObjectStorageRetryPolicy `json:"retry_policy,omitempty"`
	// OperationsChannelSize controls size of the channel used for asynchronous puts and deletes.
	OperationsChannelSize int `json:"operations_channel_size" default:"1000"`
}

ObjectStorageConfig configures object storage structure. swagger:model +kubebuilder:object:generate=true

func (*ObjectStorageConfig) DeepCopy

func (in *ObjectStorageConfig) DeepCopy() *ObjectStorageConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStorageConfig.

func (*ObjectStorageConfig) DeepCopyInto

func (in *ObjectStorageConfig) DeepCopyInto(out *ObjectStorageConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ObjectStorageRetryPolicy

type ObjectStorageRetryPolicy struct {
	Timeout config.Duration            `json:"timeout" default:"10s"`
	Backoff ObjectStorageBackoffConfig `json:"backoff,omitempty"`
}

ObjectStorageRetryPolicy for object storage retry configuration. swagger:model +kubebuilder:object:generate=true

func (*ObjectStorageRetryPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectStorageRetryPolicy.

func (*ObjectStorageRetryPolicy) DeepCopyInto

func (in *ObjectStorageRetryPolicy) DeepCopyInto(out *ObjectStorageRetryPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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