juju: github.com/juju/juju/apiserver/observer/fakeobserver Index | Files

package fakeobserver

import "github.com/juju/juju/apiserver/observer/fakeobserver"

Index

Package Files

instance.go

type Instance Uses

type Instance struct {
    testing.Stub
}

Instance is a fake Observer used for testing.

func (*Instance) Join Uses

func (f *Instance) Join(req *http.Request, connectionID uint64)

Join implements Observer.

func (*Instance) Leave Uses

func (f *Instance) Leave()

Leave implements Observer.

func (*Instance) Login Uses

func (f *Instance) Login(entity names.Tag, model names.ModelTag, fromController bool, userData string)

Login implements Observer.

func (*Instance) RPCObserver Uses

func (f *Instance) RPCObserver() rpc.Observer

RPCObserver implements Observer.

type RPCInstance Uses

type RPCInstance struct {
    testing.Stub
}

RPCInstance is a fake RPCObserver used for testing.

func (*RPCInstance) ServerReply Uses

func (f *RPCInstance) ServerReply(req rpc.Request, hdr *rpc.Header, body interface{})

ServerReply implements Observer.

func (*RPCInstance) ServerRequest Uses

func (f *RPCInstance) ServerRequest(hdr *rpc.Header, body interface{})

ServerRequest implements Observer.

Package fakeobserver imports 6 packages (graph) and is imported by 32 packages. Updated 2019-08-23. Refresh now. Tools for package owners.