data_plane

package
v0.8.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHub

func BuildHub(conf BuildHubConfig) (string, error)

func BuildInitKey

func BuildInitKey(conf BuildInitKeyConfig) (string, error)

func BuildInitTunnel

func BuildInitTunnel(conf BuildInitTunnelConfig) (string, error)

func ClusterInit

func ClusterInit(ctx context.Context, conf ClusterInitConfig) error

func GetKubeconfig

func GetKubeconfig(ctx context.Context, apiserverAddress string) ([]byte, error)

func ShowJoinDone

func ShowJoinDone(ctx context.Context, conf ShowJoinDoneConfig) (next string, err error)

Types

type BuildHubConfig

type BuildHubConfig struct {
	DataPlaneReachable       bool
	DataPlaneName            string
	DataPlaneTunnelAddress   string
	DataPlaneNavigationWay   []string
	DataPlaneReceptionWay    []string
	DataPlaneNavigationProxy []string
	DataPlaneReceptionProxy  []string
	DataPlaneKubeconfig      string
}

type BuildInitKeyConfig

type BuildInitKeyConfig struct {
	Identity   string
	Authorized string
}

type BuildInitTunnelConfig

type BuildInitTunnelConfig struct {
	Image             string
	TunnelServiceType string // LoadBalancer or NodePort
}

type ClusterInitConfig

type ClusterInitConfig struct {
	FerryTunnelImage  string
	TunnelServiceType string // LoadBalancer or NodePort
}

type ShowJoinDoneConfig

type ShowJoinDoneConfig struct {
	ControlPlaneName          string
	DataPlaneName             string
	DataPlaneReachable        bool
	DataPlaneApiserverAddress string
	DataPlaneTunnelAddress    string
	DataPlaneNavigationWay    []string
	DataPlaneReceptionWay     []string
	DataPlaneNavigationProxy  []string
	DataPlaneReceptionProxy   []string
}

Jump to

Keyboard shortcuts

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