annotations

package
v0.14.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigValue

type ConfigValue struct {
	Source *Source
	Value  string
}

ConfigValue ...

func (*ConfigValue) Bool

func (cv *ConfigValue) Bool() bool

Bool ...

func (*ConfigValue) Int

func (cv *ConfigValue) Int() int

Int ...

func (*ConfigValue) Int64

func (cv *ConfigValue) Int64() int64

Int64 ...

func (*ConfigValue) String

func (cv *ConfigValue) String() string

String ...

type KeyConfig added in v0.12.1

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

KeyConfig ...

func (*KeyConfig) Get added in v0.12.1

func (c *KeyConfig) Get(key string) *ConfigValue

Get ...

type MapBuilder

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

MapBuilder ...

func NewMapBuilder

func NewMapBuilder(logger types.Logger, annDefaults map[string]string) *MapBuilder

NewMapBuilder ...

func (*MapBuilder) NewMapper

func (b *MapBuilder) NewMapper() *Mapper

NewMapper ...

type Mapper

type Mapper struct {
	MapBuilder
	// contains filtered or unexported fields
}

Mapper ...

func (*Mapper) AddAnnotations

func (c *Mapper) AddAnnotations(source *Source, path hatypes.PathLink, ann map[string]string) (conflicts []string)

AddAnnotations ...

func (*Mapper) Get

func (c *Mapper) Get(key string) *ConfigValue

Get ...

func (*Mapper) GetConfig added in v0.12.1

func (c *Mapper) GetConfig(path hatypes.PathLink) *KeyConfig

GetConfig ...

type PathConfig added in v0.12.1

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

PathConfig ...

func (*PathConfig) String added in v0.12.1

func (m *PathConfig) String() string

String ...

type Source

type Source struct {
	Namespace string
	Name      string
	Type      convtypes.ResourceType
}

Source ...

func (*Source) FullName added in v0.11.1

func (s *Source) FullName() string

FullName ...

func (*Source) String

func (s *Source) String() string

String ...

type Updater

type Updater interface {
	UpdateGlobalConfig(haproxyConfig haproxy.Config, mapper *Mapper)
	UpdateTCPPortConfig(tcp *hatypes.TCPServicePort, mapper *Mapper)
	UpdateTCPHostConfig(tcpPort *hatypes.TCPServicePort, tcpHost *hatypes.TCPServiceHost, mapper *Mapper)
	UpdateHostConfig(host *hatypes.Host, mapper *Mapper)
	UpdateBackendConfig(backend *hatypes.Backend, mapper *Mapper)
}

Updater ...

func NewUpdater

func NewUpdater(haproxy haproxy.Config, options *convtypes.ConverterOptions) Updater

NewUpdater ...

Jump to

Keyboard shortcuts

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