kubernetes

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultEventType

type DefaultEventType int32

type Event

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

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

type Notifier

type Notifier struct {
	Event Event[DefaultEventType]
}

func (*Notifier) GetEvent

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

type Sync

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

func NewK8sSync

func NewK8sSync(
	logger *logger.Logger,
	uri string,
	dynamicClient dynamic.Interface,
) *Sync

func (*Sync) Init

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

func (*Sync) IsReady

func (k *Sync) IsReady() bool

func (*Sync) ReSync

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

func (*Sync) Sync

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

type SyncOption added in v0.7.3

type SyncOption func(s *Sync)

Jump to

Keyboard shortcuts

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