rainbond: github.com/goodrain/rainbond/worker/appm/thirdparty Index | Files | Directories

package thirdparty

import "github.com/goodrain/rainbond/worker/appm/thirdparty"

Index

Package Files

endpoints.go thirdparty.go

type Interacter Uses

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 Uses

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

NewDynamicInteracter creates a new static interacter.

func NewInteracter Uses

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

NewInteracter creates a new Interacter.

func NewStaticInteracter Uses

func NewStaticInteracter(sid string) Interacter

NewStaticInteracter creates a new static interacter.

type ThirdPartier Uses

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 Uses

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

NewThirdPartier creates a new ThirdPartier.

Directories

PathSynopsis
discovery

Package thirdparty imports 15 packages (graph) and is imported by 1 packages. Updated 2019-07-19. Refresh now. Tools for package owners.