Documentation ¶
Index ¶
- type ClientSetStub
- type ClientStub
- func (client *ClientStub) ClusterNetworks() client.ClusterNetworkInterface
- func (client *ClientStub) DanmEps(namespace string) client.DanmEpInterface
- func (client *ClientStub) DanmNets(namespace string) client.DanmNetInterface
- func (c *ClientStub) RESTClient() rest.Interface
- func (client *ClientStub) TenantConfigs() client.TenantConfigInterface
- func (client *ClientStub) TenantNetworks(namespace string) client.TenantNetworkInterface
- type EpClientStub
- func (epClient EpClientStub) Create(obj *danmtypes.DanmEp) (*danmtypes.DanmEp, error)
- func (epClient EpClientStub) Delete(name string, options *meta_v1.DeleteOptions) error
- func (epClient EpClientStub) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error
- func (epClient EpClientStub) Get(epName string, options meta_v1.GetOptions) (*danmtypes.DanmEp, error)
- func (epClient EpClientStub) List(opts meta_v1.ListOptions) (*danmtypes.DanmEpList, error)
- func (epClient EpClientStub) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *danmtypes.DanmEp, err error)
- func (epClient EpClientStub) Update(obj *danmtypes.DanmEp) (*danmtypes.DanmEp, error)
- func (epClient EpClientStub) Watch(opts meta_v1.ListOptions) (watch.Interface, error)
- type NetClientStub
- func (netClient *NetClientStub) AddReservedIpsList(reservedIps []utils.ReservedIpsList)
- func (netClient *NetClientStub) Create(obj *danmtypes.DanmNet) (*danmtypes.DanmNet, error)
- func (netClient *NetClientStub) Delete(name string, options *meta_v1.DeleteOptions) error
- func (netClient *NetClientStub) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error
- func (netClient *NetClientStub) Get(netName string, options meta_v1.GetOptions) (*danmtypes.DanmNet, error)
- func (netClient *NetClientStub) List(opts meta_v1.ListOptions) (*danmtypes.DanmNetList, error)
- func (netClient *NetClientStub) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *danmtypes.DanmNet, err error)
- func (netClient *NetClientStub) Update(obj *danmtypes.DanmNet) (*danmtypes.DanmNet, error)
- func (netClient *NetClientStub) Watch(opts meta_v1.ListOptions) (watch.Interface, error)
- type TconfClientStub
- func (tconfClient *TconfClientStub) Create(obj *danmtypes.TenantConfig) (*danmtypes.TenantConfig, error)
- func (tconfClient *TconfClientStub) Delete(name string, options *meta_v1.DeleteOptions) error
- func (tconfClient *TconfClientStub) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error
- func (tconfClient *TconfClientStub) Get(tconfNameName string, options meta_v1.GetOptions) (*danmtypes.TenantConfig, error)
- func (tconfClient *TconfClientStub) List(opts meta_v1.ListOptions) (*danmtypes.TenantConfigList, error)
- func (tconfClient *TconfClientStub) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *danmtypes.TenantConfig, err error)
- func (tconfClient *TconfClientStub) Update(obj *danmtypes.TenantConfig) (*danmtypes.TenantConfig, error)
- func (tconfClient *TconfClientStub) Watch(opts meta_v1.ListOptions) (watch.Interface, error)
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 (c *ClientSetStub) Danm() danmv1.DanmV1Interface
func (*ClientSetStub) DanmV1 ¶
func (c *ClientSetStub) DanmV1() danmv1.DanmV1Interface
func (*ClientSetStub) Discovery ¶
func (c *ClientSetStub) Discovery() discovery.DiscoveryInterface
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 ¶
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) 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) 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) 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)
Click to show internal directories.
Click to hide internal directories.