cloud

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Public  string
	Private string
}

func NewAddress

func NewAddress(public string, private string) Address

func (Address) String

func (a Address) String() string

type AddressProvider

type AddressProvider struct {
	// contains filtered or unexported fields
}

func NewAddressProvider

func NewAddressProvider(dc *DiscoveryClient) *AddressProvider

func (*AddressProvider) Addresses

func (a *AddressProvider) Addresses() ([]pubcluster.Address, error)

type AddressTranslator

type AddressTranslator struct {
	// contains filtered or unexported fields
}

func NewAddressTranslator

func NewAddressTranslator(dc *DiscoveryClient) *AddressTranslator

func (*AddressTranslator) Translate

func (*AddressTranslator) TranslateMember

func (a *AddressTranslator) TranslateMember(ctx context.Context, member *pubcluster.MemberInfo) (addr pubcluster.Address, err error)

type DiscoveryClient

type DiscoveryClient struct {
	// contains filtered or unexported fields
}

func NewDiscoveryClient

func NewDiscoveryClient(config *cluster.CloudConfig, logger logger.Logger) *DiscoveryClient

func (*DiscoveryClient) DiscoverNodes

func (c *DiscoveryClient) DiscoverNodes(ctx context.Context) ([]Address, error)

Jump to

Keyboard shortcuts

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