danm

package
v4.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSetStub

type ClientSetStub struct {
	DanmClient *ClientStub
}

func NewClientSetStub

func NewClientSetStub(objects utils.TestArtifacts) *ClientSetStub

func (*ClientSetStub) Danm

func (*ClientSetStub) DanmV1

func (c *ClientSetStub) DanmV1() danmv1.DanmV1Interface

func (*ClientSetStub) Discovery

type ClientStub

type ClientStub struct {
	Objects     utils.TestArtifacts
	NetClient   *NetClientStub
	TconfClient *TconfClientStub
}

func (*ClientStub) ClusterNetworks

func (client *ClientStub) ClusterNetworks() client.ClusterNetworkInterface

func (*ClientStub) DanmEps

func (client *ClientStub) DanmEps(namespace string) client.DanmEpInterface

func (*ClientStub) DanmNets

func (client *ClientStub) DanmNets(namespace string) client.DanmNetInterface

func (*ClientStub) RESTClient

func (client *ClientStub) RESTClient() rest.Interface

func (*ClientStub) TenantConfigs

func (client *ClientStub) TenantConfigs() client.TenantConfigInterface

func (*ClientStub) TenantNetworks

func (client *ClientStub) TenantNetworks(namespace string) client.TenantNetworkInterface

type EpClientStub

type EpClientStub struct {
	TestEps []danmtypes.DanmEp
}

func (EpClientStub) Create

func (epClient EpClientStub) Create(ctx context.Context, obj *danmtypes.DanmEp, options meta_v1.CreateOptions) (*danmtypes.DanmEp, error)

func (EpClientStub) Delete

func (epClient EpClientStub) Delete(ctx context.Context, name string, options meta_v1.DeleteOptions) error

func (EpClientStub) DeleteCollection

func (epClient EpClientStub) DeleteCollection(ctx context.Context, options meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (EpClientStub) Get

func (epClient EpClientStub) Get(ctx context.Context, epName string, options meta_v1.GetOptions) (*danmtypes.DanmEp, error)

func (EpClientStub) List

func (EpClientStub) Patch

func (epClient EpClientStub) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts meta_v1.PatchOptions, subresources ...string) (result *danmtypes.DanmEp, err error)

func (EpClientStub) Update

func (epClient EpClientStub) Update(ctx context.Context, obj *danmtypes.DanmEp, options meta_v1.UpdateOptions) (*danmtypes.DanmEp, error)

func (EpClientStub) Watch

func (epClient EpClientStub) Watch(ctx context.Context, opts meta_v1.ListOptions) (watch.Interface, error)

type NetClientStub

type NetClientStub struct {
	TestNets             []danmtypes.DanmNet
	ReservedIpsList      []utils.ReservedIpsList
	TimesUpdateWasCalled int
}

func (*NetClientStub) AddReservedIpsList

func (netClient *NetClientStub) AddReservedIpsList(reservedIps []utils.ReservedIpsList)

func (*NetClientStub) Create

func (netClient *NetClientStub) Create(ctx context.Context, obj *danmtypes.DanmNet, opts meta_v1.CreateOptions) (*danmtypes.DanmNet, error)

func (*NetClientStub) Delete

func (netClient *NetClientStub) Delete(ctx context.Context, name string, options meta_v1.DeleteOptions) error

func (*NetClientStub) DeleteCollection

func (netClient *NetClientStub) DeleteCollection(ctx context.Context, options meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*NetClientStub) Get

func (netClient *NetClientStub) Get(ctx context.Context, netName string, options meta_v1.GetOptions) (*danmtypes.DanmNet, error)

func (*NetClientStub) List

func (netClient *NetClientStub) List(ctx context.Context, opts meta_v1.ListOptions) (*danmtypes.DanmNetList, error)

func (*NetClientStub) Patch

func (netClient *NetClientStub) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts meta_v1.PatchOptions, subresources ...string) (result *danmtypes.DanmNet, err error)

func (*NetClientStub) Update

func (netClient *NetClientStub) Update(ctx context.Context, obj *danmtypes.DanmNet, opts meta_v1.UpdateOptions) (*danmtypes.DanmNet, error)

func (*NetClientStub) Watch

func (netClient *NetClientStub) Watch(ctx context.Context, opts meta_v1.ListOptions) (watch.Interface, error)

type TconfClientStub

type TconfClientStub struct {
	TestTconfs           []danmtypes.TenantConfig
	ReservedVnis         []utils.ReservedVnisList
	TimesUpdateWasCalled int
	ExhaustAllocs        []int
}

func (*TconfClientStub) Create

func (*TconfClientStub) Delete

func (tconfClient *TconfClientStub) Delete(ctx context.Context, name string, options meta_v1.DeleteOptions) error

func (*TconfClientStub) DeleteCollection

func (tconfClient *TconfClientStub) DeleteCollection(ctx context.Context, options meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*TconfClientStub) Get

func (tconfClient *TconfClientStub) Get(ctx context.Context, tconfName string, options meta_v1.GetOptions) (*danmtypes.TenantConfig, error)

func (*TconfClientStub) List

func (*TconfClientStub) Patch

func (tconfClient *TconfClientStub) Patch(nctx context.Context, ame string, pt types.PatchType, data []byte, opts meta_v1.PatchOptions, subresources ...string) (result *danmtypes.TenantConfig, err error)

func (*TconfClientStub) Update

func (*TconfClientStub) Watch

func (tconfClient *TconfClientStub) Watch(ctx context.Context, opts meta_v1.ListOptions) (watch.Interface, error)

Jump to

Keyboard shortcuts

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