mock

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerClusterLister

type BrokerClusterLister struct {
	ListCallback func(selector labels.Selector) (ret []*v1alpha1.BrokerCluster, err error)
	NsLister     *BrokerClusterNamespaceLister
}

func NewMockBrokerClusterLister

func NewMockBrokerClusterLister() *BrokerClusterLister

func (*BrokerClusterLister) BrokerClusters

func (*BrokerClusterLister) List

func (s *BrokerClusterLister) List(selector labels.Selector) (ret []*v1alpha1.BrokerCluster, err error)

type BrokerClusterNamespaceLister

type BrokerClusterNamespaceLister struct {
	ListCallback func(selector labels.Selector) (ret []*v1alpha1.BrokerCluster, err error)
	GetCallback  func(name string) (*v1alpha1.BrokerCluster, error)
}

func NewMockBrokerClusterNamespaceLister

func NewMockBrokerClusterNamespaceLister() *BrokerClusterNamespaceLister

func (BrokerClusterNamespaceLister) Get

func (BrokerClusterNamespaceLister) List

type BrokerClusters

type BrokerClusters struct {
	CreateCallback           func(*v1alpha1.BrokerCluster) (*v1alpha1.BrokerCluster, error)
	UpdateCallback           func(*v1alpha1.BrokerCluster) (*v1alpha1.BrokerCluster, error)
	DeleteCallback           func(name string, options *v1.DeleteOptions) error
	DeleteCollectionCallback func(options *v1.DeleteOptions, listOptions v1.ListOptions) error
	GetCallback              func(name string, options v1.GetOptions) (*v1alpha1.BrokerCluster, error)
	ListCallback             func(opts v1.ListOptions) (*v1alpha1.BrokerClusterList, error)
	WatchCallback            func(opts v1.ListOptions) (watch.Interface, error)
	PatchCallback            func(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.BrokerCluster, err error)
}

func (*BrokerClusters) Create

func (*BrokerClusters) Delete

func (bc *BrokerClusters) Delete(name string, options *v1.DeleteOptions) error

func (*BrokerClusters) DeleteCollection

func (bc *BrokerClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

func (*BrokerClusters) Get

func (bc *BrokerClusters) Get(name string, options v1.GetOptions) (*v1alpha1.BrokerCluster, error)

func (*BrokerClusters) List

func (*BrokerClusters) Patch

func (bc *BrokerClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.BrokerCluster, err error)

func (*BrokerClusters) Update

func (*BrokerClusters) Watch

func (bc *BrokerClusters) Watch(opts v1.ListOptions) (watch.Interface, error)

type ClientSet

type ClientSet struct {
	*discovery.DiscoveryClient
	ROCKETMQClient *ROCKETMQV1alpha1Client
}

func NewMockClient

func NewMockClient() *ClientSet

func (*ClientSet) Discovery

func (c *ClientSet) Discovery() discovery.DiscoveryInterface

func (*ClientSet) ROCKETMQ

func (*ClientSet) ROCKETMQV1alpha1

type ROCKETMQV1alpha1Client

type ROCKETMQV1alpha1Client struct {
	BrokerClustersRef *BrokerClusters
	// contains filtered or unexported fields
}

func NewMockROCKETMQClient

func NewMockROCKETMQClient() *ROCKETMQV1alpha1Client

func (*ROCKETMQV1alpha1Client) BrokerClusters

func (*ROCKETMQV1alpha1Client) RESTClient

func (c *ROCKETMQV1alpha1Client) RESTClient() rest.Interface

Jump to

Keyboard shortcuts

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