normalizer

package
v0.0.0-...-bbbf66a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSecretValueNotFound = fmt.Errorf("secret value not found")

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context specifies CHI-related normalization context

func NewContext

func NewContext(options *Options) *Context

NewContext creates new Context

func (*Context) GetTarget

func (c *Context) GetTarget() *api.ClickHouseInstallation

func (*Context) Options

func (c *Context) Options() *Options

func (*Context) SetTarget

type Normalizer

type Normalizer struct {
	// contains filtered or unexported fields
}

Normalizer specifies structures normalizer

func NewNormalizer

func NewNormalizer(secretGet secretGet) *Normalizer

NewNormalizer creates new normalizer

func (*Normalizer) CreateTemplatedCHI

func (n *Normalizer) CreateTemplatedCHI(
	chi *api.ClickHouseInstallation,
	options *Options,
) (*api.ClickHouseInstallation, error)

CreateTemplatedCHI produces ready-to-use CHI object

type Options

type Options struct {
	// WithDefaultCluster specifies whether to insert default cluster in case no cluster specified
	WithDefaultCluster bool
	// DefaultUserAdditionalIPs specifies set of additional IPs applied to default user
	DefaultUserAdditionalIPs   []string
	DefaultUserInsertHostRegex bool
}

Options specifies normalization options

func NewOptions

func NewOptions() *Options

NewOptions creates new Options

type SettingsSubstitution

type SettingsSubstitution interface {
	Has(string) bool
	Get(string) *api.Setting
	Set(string, *api.Setting) *api.Settings
	Delete(string)
	Name2Key(string) string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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