thirdparty

package
v5.1.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRbdEpConfigmap

func CreateRbdEpConfigmap(as *v1.AppService, eps []*v1.RbdEndpoint) *corev1.ConfigMap

CreateRbdEpConfigmap creates a configmap to store rbd endpoints.

func ListOldEndpoints

func ListOldEndpoints(as *v1.AppService, ep *v1.RbdEndpoint) []*corev1.Endpoints

Types

type Interacter

type Interacter interface {
	List() ([]*v1.RbdEndpoint, error)
	// if endpoints type is static, do nothing.
	// if endpoints type is dynamic, watch the changes in endpoints.
	Watch()
}

Interacter is the interface that wraps the required methods to interact with DB or service registry that holds the endpoints information.

func NewDynamicInteracter

func NewDynamicInteracter(sid string, updateCh *channels.RingChannel, stopCh chan struct{}) Interacter

NewStaticInteracter creates a new static interacter.

func NewInteracter

func NewInteracter(sid string, updateCh *channels.RingChannel, stopCh chan struct{}) Interacter

NewInteracter creates a new Interacter.

func NewStaticInteracter

func NewStaticInteracter(sid string) Interacter

NewStaticInteracter creates a new static interacter.

type ThirdPartier

type ThirdPartier interface {
	Start()
}

ThirdPartier is the interface that wraps the required methods to update status about upstream servers(Endpoints) associated with a third-party service.

func NewThirdPartier

func NewThirdPartier(clientset *kubernetes.Clientset,
	store store.Storer,
	startCh *channels.RingChannel,
	updateCh *channels.RingChannel,
	stopCh chan struct{}) ThirdPartier

NewThirdPartier creates a new ThirdPartier.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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