danm

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: BSD-3-Clause Imports: 15 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 (c *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(obj *danmtypes.DanmEp) (*danmtypes.DanmEp, error)

func (EpClientStub) Delete

func (epClient EpClientStub) Delete(name string, options *meta_v1.DeleteOptions) error

func (EpClientStub) DeleteCollection

func (epClient EpClientStub) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (EpClientStub) Get

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

func (EpClientStub) List

func (epClient EpClientStub) List(opts meta_v1.ListOptions) (*danmtypes.DanmEpList, error)

func (EpClientStub) Patch

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

func (EpClientStub) Update

func (epClient EpClientStub) Update(obj *danmtypes.DanmEp) (*danmtypes.DanmEp, error)

func (EpClientStub) Watch

func (epClient EpClientStub) Watch(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(obj *danmtypes.DanmNet) (*danmtypes.DanmNet, error)

func (*NetClientStub) Delete

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

func (*NetClientStub) DeleteCollection

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

func (*NetClientStub) Get

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

func (*NetClientStub) List

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

func (*NetClientStub) Patch

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

func (*NetClientStub) Update

func (netClient *NetClientStub) Update(obj *danmtypes.DanmNet) (*danmtypes.DanmNet, error)

func (*NetClientStub) Watch

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

type TconfClientStub

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

func (*TconfClientStub) Create

func (tconfClient *TconfClientStub) Create(obj *danmtypes.TenantConfig) (*danmtypes.TenantConfig, error)

func (*TconfClientStub) Delete

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

func (*TconfClientStub) DeleteCollection

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

func (*TconfClientStub) Get

func (tconfClient *TconfClientStub) Get(tconfNameName string, options meta_v1.GetOptions) (*danmtypes.TenantConfig, error)

func (*TconfClientStub) List

func (tconfClient *TconfClientStub) List(opts meta_v1.ListOptions) (*danmtypes.TenantConfigList, error)

func (*TconfClientStub) Patch

func (tconfClient *TconfClientStub) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *danmtypes.TenantConfig, err error)

func (*TconfClientStub) Update

func (tconfClient *TconfClientStub) Update(obj *danmtypes.TenantConfig) (*danmtypes.TenantConfig, error)

func (*TconfClientStub) Watch

func (tconfClient *TconfClientStub) Watch(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