Documentation ¶
Index ¶
- func ProtoDimensionsToMap(dims []*sfxproto.Dimension) (m map[string]string)
- func ProtoPropertiesToMap(props []*sfxproto.Property) (m map[string]string)
- type FakeBosh
- type FakeCloudController
- type FakeFirehose
- func (f *FakeFirehose) AddEvent(event events.Envelope)
- func (f *FakeFirehose) Close()
- func (f *FakeFirehose) CloseAliveConnection()
- func (f *FakeFirehose) KeepConnectionAlive()
- func (f *FakeFirehose) LastAuthorization() string
- func (f *FakeFirehose) Requested() bool
- func (f *FakeFirehose) ServeHTTP(rw http.ResponseWriter, r *http.Request)
- func (f *FakeFirehose) SetCloseMessage(message []byte)
- func (f *FakeFirehose) Start()
- func (f *FakeFirehose) URL() string
- type FakeIdleFirehose
- type FakeSignalFx
- type FakeTokenFetcher
- type FakeUAA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtoDimensionsToMap ¶
Types ¶
type FakeBosh ¶
type FakeBosh struct {
// contains filtered or unexported fields
}
func NewFakeBosh ¶
func NewFakeBosh() *FakeBosh
type FakeCloudController ¶
type FakeCloudController struct { AppReqCounts map[string]int // contains filtered or unexported fields }
func NewFakeCloudController ¶
func NewFakeCloudController() *FakeCloudController
func (*FakeCloudController) Close ¶
func (f *FakeCloudController) Close()
func (*FakeCloudController) ServeHTTP ¶
func (f *FakeCloudController) ServeHTTP(rw http.ResponseWriter, r *http.Request)
Returns the app name as "app-<guid>" based on the guid passed in the path. This is meant to fake the `/v2/apps/<guid>` path, as well as the `/v2/info` path.
func (*FakeCloudController) Start ¶
func (f *FakeCloudController) Start()
func (*FakeCloudController) URL ¶
func (f *FakeCloudController) URL() string
type FakeFirehose ¶
type FakeFirehose struct {
// contains filtered or unexported fields
}
func NewFakeFirehose ¶
func NewFakeFirehose() *FakeFirehose
func (*FakeFirehose) AddEvent ¶
func (f *FakeFirehose) AddEvent(event events.Envelope)
func (*FakeFirehose) Close ¶
func (f *FakeFirehose) Close()
func (*FakeFirehose) CloseAliveConnection ¶
func (f *FakeFirehose) CloseAliveConnection()
func (*FakeFirehose) KeepConnectionAlive ¶
func (f *FakeFirehose) KeepConnectionAlive()
func (*FakeFirehose) LastAuthorization ¶
func (f *FakeFirehose) LastAuthorization() string
func (*FakeFirehose) Requested ¶
func (f *FakeFirehose) Requested() bool
func (*FakeFirehose) ServeHTTP ¶
func (f *FakeFirehose) ServeHTTP(rw http.ResponseWriter, r *http.Request)
func (*FakeFirehose) SetCloseMessage ¶
func (f *FakeFirehose) SetCloseMessage(message []byte)
func (*FakeFirehose) Start ¶
func (f *FakeFirehose) Start()
func (*FakeFirehose) URL ¶
func (f *FakeFirehose) URL() string
type FakeIdleFirehose ¶
type FakeIdleFirehose struct {
// contains filtered or unexported fields
}
func NewFakeIdleFirehose ¶
func NewFakeIdleFirehose(timeout time.Duration) *FakeIdleFirehose
func (*FakeIdleFirehose) Close ¶
func (f *FakeIdleFirehose) Close()
func (*FakeIdleFirehose) ServeHTTP ¶
func (f *FakeIdleFirehose) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*FakeIdleFirehose) Start ¶
func (f *FakeIdleFirehose) Start()
func (*FakeIdleFirehose) URL ¶
func (f *FakeIdleFirehose) URL() string
type FakeSignalFx ¶
type FakeSignalFx struct { ReceivedContents chan []byte // contains filtered or unexported fields }
func NewFakeSignalFx ¶
func NewFakeSignalFx() *FakeSignalFx
func (*FakeSignalFx) Close ¶
func (f *FakeSignalFx) Close()
func (*FakeSignalFx) EnsureNoDatapoints ¶
func (f *FakeSignalFx) EnsureNoDatapoints()
func (*FakeSignalFx) GetIngestedDatapoints ¶
func (f *FakeSignalFx) GetIngestedDatapoints() []*sfxproto.DataPoint
func (*FakeSignalFx) ServeHTTP ¶
func (f *FakeSignalFx) ServeHTTP(rw http.ResponseWriter, r *http.Request)
func (*FakeSignalFx) Start ¶
func (f *FakeSignalFx) Start()
func (*FakeSignalFx) URL ¶
func (f *FakeSignalFx) URL() string
type FakeTokenFetcher ¶
type FakeTokenFetcher struct {
NumCalls int
}
func (*FakeTokenFetcher) FetchAuthToken ¶
func (tokenFetcher *FakeTokenFetcher) FetchAuthToken() string
type FakeUAA ¶
type FakeUAA struct {
// contains filtered or unexported fields
}
func NewFakeUAA ¶
func (*FakeUAA) SetAccessToken ¶
Click to show internal directories.
Click to hide internal directories.