Documentation ¶
Index ¶
- func NotFoundError() error
- type ContainerClusterManagerMocks
- type PubSubMocks
- func (p *PubSubMocks) ExpectDeleteSubscription(subscriptionId string, err error)
- func (p *PubSubMocks) ExpectDeleteTopic(topicId string, err error)
- func (p *PubSubMocks) ExpectGetTopic(topicId string, resp *pubsubpb.Topic, err error)
- func (p *PubSubMocks) ExpectListTopicSubscriptions(topicId string, subscriptionIDsToReturn []string, err error)
- func (p *PubSubMocks) PublisherServer() *mocks.PublisherServer
- func (p *PubSubMocks) SubscriberServer() *mocks.SubscriberServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotFoundError ¶
func NotFoundError() error
NotFoundError convenience constructor for returning a not found error in mocks
Types ¶
type ContainerClusterManagerMocks ¶
type ContainerClusterManagerMocks struct {
// contains filtered or unexported fields
}
func NewMockClusterManagerServerAndClient ¶
func NewMockClusterManagerServerAndClient(t *testing.T) (*ContainerClusterManagerMocks, *container.ClusterManagerClient)
NewMockClusterManagerServerAndClient creates a connected mock cluster manager server and client
func (*ContainerClusterManagerMocks) ClusterManagerServer ¶
func (c *ContainerClusterManagerMocks) ClusterManagerServer() *mocks.ClusterManagerServer
func (*ContainerClusterManagerMocks) ExpectGetCluster ¶
func (c *ContainerClusterManagerMocks) ExpectGetCluster(projectId string, location string, clusterName string, cluster *containerpb.Cluster, err error)
type PubSubMocks ¶
type PubSubMocks struct {
// contains filtered or unexported fields
}
func NewMockPubSubServerAndClient ¶
NewMockPubSubServerAndClient creates a connected mock cluster manager server and client
func (*PubSubMocks) ExpectDeleteSubscription ¶
func (p *PubSubMocks) ExpectDeleteSubscription(subscriptionId string, err error)
func (*PubSubMocks) ExpectDeleteTopic ¶
func (p *PubSubMocks) ExpectDeleteTopic(topicId string, err error)
func (*PubSubMocks) ExpectGetTopic ¶
func (p *PubSubMocks) ExpectGetTopic(topicId string, resp *pubsubpb.Topic, err error)
func (*PubSubMocks) ExpectListTopicSubscriptions ¶
func (p *PubSubMocks) ExpectListTopicSubscriptions(topicId string, subscriptionIDsToReturn []string, err error)
func (*PubSubMocks) PublisherServer ¶
func (p *PubSubMocks) PublisherServer() *mocks.PublisherServer
func (*PubSubMocks) SubscriberServer ¶
func (p *PubSubMocks) SubscriberServer() *mocks.SubscriberServer
Click to show internal directories.
Click to hide internal directories.