definition

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	MaxTries int

	OnElementAdded   OnElementChangedFunc
	OnElementUpdated OnElementUpdatedFunc
	OnElementRemoved OnElementRemovedFunc
	OnError          OnErrorFunc
	// contains filtered or unexported fields
}

func (*Definition) HasSynced

func (instance *Definition) HasSynced() bool

func (*Definition) Init

func (instance *Definition) Init(stop support.Channel) error

func (*Definition) Run

func (instance *Definition) Run(stop support.Channel)

func (*Definition) SetInformer

func (instance *Definition) SetInformer(informer cache.SharedInformer)

type Definitions

type Definitions struct {
	ServiceSecrets *ServiceSecret
	Ingress        *Ingress
	Service        *Service
}

func New

func New(client kubernetes.Interface, resyncAfter time.Duration) (*Definitions, error)

func (*Definitions) HasSynced

func (instance *Definitions) HasSynced() bool

func (*Definitions) Init

func (instance *Definitions) Init(stop support.Channel) error

func (*Definitions) SetNamespace

func (instance *Definitions) SetNamespace(namespace string)

type Ingress

type Ingress struct {
	*Definition
}

func NewIngress

func NewIngress(client kubernetes.Interface, resyncAfter time.Duration) (*Ingress, error)

func (*Ingress) Get

func (instance *Ingress) Get(key string) (*v1beta1.Ingress, error)

type OnElementChangedFunc

type OnElementChangedFunc func(key string, new metav1.Object) error

type OnElementRemovedFunc

type OnElementRemovedFunc func(key string) error

type OnElementUpdatedFunc

type OnElementUpdatedFunc func(key string, old, new metav1.Object) error

type OnErrorFunc

type OnErrorFunc func(key string, event string, err error)

type Service

type Service struct {
	*Definition
}

func NewService

func NewService(client kubernetes.Interface, resyncAfter time.Duration) (*Service, error)

func (*Service) Get

func (instance *Service) Get(key string) (*v1.Service, error)

type ServiceSecret

type ServiceSecret struct {
	*Definition
	// contains filtered or unexported fields
}

func NewServiceSecrets

func NewServiceSecrets(client kubernetes.Interface, resyncAfter time.Duration) (*ServiceSecret, error)

func (*ServiceSecret) Get

func (instance *ServiceSecret) Get(key string) (*v1.Service, error)

func (*ServiceSecret) Init

func (instance *ServiceSecret) Init(stop support.Channel) error

func (*ServiceSecret) SetNamespace

func (instance *ServiceSecret) SetNamespace(namespace string)

Jump to

Keyboard shortcuts

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