service

package
v1.7.14 Latest Latest
Warning

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

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

Documentation

Overview

Package svc provides kubernetes svc information and preriodically update

Package svc provides kubernetes svc information and preriodically update

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*reconciler) error

func WithControllerName

func WithControllerName(name string) Option

func WithFields

func WithFields(fs map[string]string) Option

func WithLabels

func WithLabels(ls map[string]string) Option

func WithManager

func WithManager(mgr manager.Manager) Option

func WithNamespace

func WithNamespace(ns string) Option

func WithOnErrorFunc

func WithOnErrorFunc(f func(err error)) Option

func WithOnReconcileFunc

func WithOnReconcileFunc(f func(svcs []Service)) Option

type Service

type Service struct {
	Name        string
	ClusterIP   string
	ClusterIPs  []string
	Ports       []servicePort
	Labels      map[string]string
	Annotations map[string]string
}

Service represents a kubernetes service information.

type SvcWatcher

type SvcWatcher k8s.ResourceController

SvcWatcher is a type alias of k8s.ResourceController for service resources.

func New

func New(opts ...Option) SvcWatcher

New returns a new SvcWatcher instance.

Jump to

Keyboard shortcuts

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