framework

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollapsedCoreConfig

type CollapsedCoreConfig struct {
	DualHomedServer1 string
	DualHomedServer2 string
}

type Helper

type Helper struct {
	Kube   *KubeClient
	Server *ServerClient
}

func New

func New() (*Helper, error)

func (*Helper) Cleanup

func (h *Helper) Cleanup() error

func (*Helper) CollapsedCore

func (h *Helper) CollapsedCore() *CollapsedCoreConfig

type KubeClient

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

func (*KubeClient) VPCAttach

func (c *KubeClient) VPCAttach(ctx context.Context, vpc *vpcapi.VPC, server string) (*vpcapi.VPCAttachment, error)

func (*KubeClient) VPCCreate

func (c *KubeClient) VPCCreate(ctx context.Context, name string, spec vpcapi.VPCSpec) (*vpcapi.VPC, error)

func (*KubeClient) VPCDelete

func (c *KubeClient) VPCDelete(ctx context.Context, vpc *vpcapi.VPC) error

func (*KubeClient) VPCDetach

func (c *KubeClient) VPCDetach(ctx context.Context, vpc *vpcapi.VPC, server string) error

func (*KubeClient) VPCPeer

func (c *KubeClient) VPCPeer(ctx context.Context, vpc1, vpc2 *vpcapi.VPC) (*vpcapi.VPCPeering, error)

func (*KubeClient) VPCUnpeer

func (c *KubeClient) VPCUnpeer(ctx context.Context, vpc1, vpc2 *vpcapi.VPC) error

func (*KubeClient) Wait

func (c *KubeClient) Wait(ctx context.Context, objs ...client.Object) error

type ServerClient

type ServerClient struct{}

func (*ServerClient) NetworkCheck

func (c *ServerClient) NetworkCheck(ctx context.Context, name string, target string) error

TODO replace with server *wiringapi.Server?

func (*ServerClient) NetworkSetup

func (c *ServerClient) NetworkSetup(ctx context.Context, name string) (string, error)

TODO replace with server *wiringapi.Server?

Jump to

Keyboard shortcuts

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