Documentation ¶
Index ¶
- func HcloudFirewallRulesCompare(a, b []hcloud.FirewallRule) bool
- func SlicesCompare[T comparable](a, b []T) bool
- func SlicesConcat[T any](ins ...[]T) []T
- func SlicesFlatMap[I any, O any](in []I, fn func(elem I) []O) []O
- func SlicesMap[I any, O any](in []I, fn func(elem I) O) []O
- func ValuePointer[T any](value T) *T
- func ValuePointerCompare[T comparable](a, b *T) bool
- func WriteFileIfChanged(name string, content []byte, perm fs.FileMode) (bool, error)
- type Logger
- type Service
- func (s *Service) ReconcileFirewall() error
- func (s *Service) ReconcileHaproxy() error
- func (s *Service) ReconcileLoop(delay time.Duration, name string, fn func() error) error
- func (s *Service) RetrieveNodeIPv4s(role string) ([]net.IP, []net.IP, error)
- func (s *Service) Run() error
- func (s *Service) RunHaproxy()
- type ServiceOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HcloudFirewallRulesCompare ¶ added in v0.0.2
func HcloudFirewallRulesCompare(a, b []hcloud.FirewallRule) bool
func SlicesCompare ¶
func SlicesCompare[T comparable](a, b []T) bool
func SlicesConcat ¶
func SlicesConcat[T any](ins ...[]T) []T
func SlicesFlatMap ¶
func ValuePointer ¶
func ValuePointer[T any](value T) *T
func ValuePointerCompare ¶
func ValuePointerCompare[T comparable](a, b *T) bool
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) ReconcileFirewall ¶
func (*Service) ReconcileHaproxy ¶
func (*Service) ReconcileLoop ¶
func (*Service) RetrieveNodeIPv4s ¶
func (*Service) RunHaproxy ¶
func (s *Service) RunHaproxy()
type ServiceOpts ¶
Click to show internal directories.
Click to hide internal directories.