client

package
v0.0.0-...-0c3390c Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUUID

func NewUUID() string

Types

type VanClient

type VanClient struct {
	CeDriver driver.Driver
}

A VAN client manages orchestration and communication with the network components

func NewClient

func NewClient() (*VanClient, error)

func (*VanClient) ConnectorCreate

func (cli *VanClient) ConnectorCreate(secretFile string, options types.ConnectorCreateOptions) (string, error)

func (*VanClient) ConnectorInspect

func (cli *VanClient) ConnectorInspect(name string) (*types.ConnectorInspectResponse, error)

func (*VanClient) ConnectorList

func (cli *VanClient) ConnectorList() ([]*types.Connector, error)

func (*VanClient) ConnectorRemove

func (cli *VanClient) ConnectorRemove(name string) error

func (*VanClient) ConnectorTokenCreate

func (cli *VanClient) ConnectorTokenCreate(subject string, secretFile string) error

func (*VanClient) GetRouterSpecFromOpts

func (cli *VanClient) GetRouterSpecFromOpts(options types.SiteConfigSpec, siteId string) (*types.RouterSpec, error)

func (*VanClient) Init

func (cli *VanClient) Init(ced string) error

func (*VanClient) RouterCreate

func (cli *VanClient) RouterCreate(options types.SiteConfigSpec) error

RouterCreate instantiates a VAN Router (transport and controller)

func (*VanClient) RouterInspect

func (cli *VanClient) RouterInspect() (*types.RouterInspectResponse, error)

func (*VanClient) RouterRemove

func (cli *VanClient) RouterRemove() []error

RouterRemove delete a VAN (transport and controller) deployment

func (*VanClient) ServiceInterfaceBind

func (cli *VanClient) ServiceInterfaceBind(service *types.ServiceInterface, targetType string, targetName string, protocol string, targetPort int) error

func (*VanClient) ServiceInterfaceCreate

func (cli *VanClient) ServiceInterfaceCreate(service *types.ServiceInterface) error

func (*VanClient) ServiceInterfaceInspect

func (cli *VanClient) ServiceInterfaceInspect(address string) (*types.ServiceInterface, error)

func (*VanClient) ServiceInterfaceList

func (cli *VanClient) ServiceInterfaceList() ([]types.ServiceInterface, error)

func (*VanClient) ServiceInterfaceRemove

func (cli *VanClient) ServiceInterfaceRemove(address string) error

func (*VanClient) ServiceInterfaceUnbind

func (cli *VanClient) ServiceInterfaceUnbind(targetType string, targetName string, address string, deleteIfNoTargets bool) error

func (*VanClient) ServiceInterfaceUpdate

func (cli *VanClient) ServiceInterfaceUpdate(ctx context.Context, service *types.ServiceInterface) error

func (*VanClient) SiteConfigCreate

func (cli *VanClient) SiteConfigCreate(spec types.SiteConfigSpec) (*types.SiteConfig, error)

func (*VanClient) SiteConfigInspect

func (cli *VanClient) SiteConfigInspect(name string) (*types.SiteConfig, error)

Jump to

Keyboard shortcuts

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