kubernetes

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEventTypeCreate = iota
	DefaultEventTypeModify = 1
	DefaultEventTypeDelete = 2
	DefaultEventTypeReady  = 3
)

Variables

This section is empty.

Functions

func GetClients added in v0.4.2

func GetClients() (client.Reader, dynamic.Interface, error)

Types

type DefaultEventType added in v0.3.2

type DefaultEventType int32

type Event added in v0.3.2

type Event[T any] struct {
	EventType T
}

Event is a struct that represents a single event. It is a generic struct that can be cast to a more specific struct.

type INotify added in v0.3.2

type INotify interface {
	GetEvent() Event[DefaultEventType]
}

type Notifier added in v0.3.2

type Notifier struct {
	Event Event[DefaultEventType]
}

func (*Notifier) GetEvent added in v0.3.2

func (w *Notifier) GetEvent() Event[DefaultEventType]

type Sync

type Sync struct {
	URI string
	// contains filtered or unexported fields
}

func NewK8sSync added in v0.4.2

func NewK8sSync(
	logger *logger.Logger,
	uri string,
	reader client.Reader,
	dynamic dynamic.Interface,
) *Sync

func (*Sync) Init added in v0.4.0

func (k *Sync) Init(ctx context.Context) error

func (*Sync) IsReady added in v0.4.0

func (k *Sync) IsReady() bool

func (*Sync) ReSync added in v0.4.0

func (k *Sync) ReSync(ctx context.Context, dataSync chan<- sync.DataSync) error

func (*Sync) Sync added in v0.3.2

func (k *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error

Jump to

Keyboard shortcuts

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