Documentation ¶
Index ¶
- func AlreadyExist(content interface{}) *http.Response
- func BadVersion(content interface{}) *http.Response
- func Body(content interface{}) io.ReadCloser
- func FakeNsm(name string) *v1.NetworkServiceManager
- func NotFound(content interface{}) *http.Response
- func Ok(content interface{}) *http.Response
- func RepeatAsync(operation func()) (stopFunc func())
- func Status(status int, content interface{}) *http.Response
- type FakeRest
- func (c FakeRest) APIVersion() schema.GroupVersion
- func (c FakeRest) Delete() *restclient.Request
- func (c FakeRest) Get() *restclient.Request
- func (c FakeRest) GetRateLimiter() flowcontrol.RateLimiter
- func (f *FakeRest) MockGet(api string, handler MethodHandler)
- func (f *FakeRest) MockPost(api string, handler MethodHandler)
- func (f *FakeRest) MockPut(api string, handler MethodHandler)
- func (c FakeRest) Patch(pt types.PatchType) *restclient.Request
- func (c FakeRest) Post() *restclient.Request
- func (c FakeRest) Put() *restclient.Request
- func (c FakeRest) Verb(verb string) *restclient.Request
- type MethodHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlreadyExist ¶
func BadVersion ¶
func Body ¶
func Body(content interface{}) io.ReadCloser
func FakeNsm ¶
func FakeNsm(name string) *v1.NetworkServiceManager
func RepeatAsync ¶
func RepeatAsync(operation func()) (stopFunc func())
Types ¶
type FakeRest ¶
type FakeRest struct {
// contains filtered or unexported fields
}
func (FakeRest) APIVersion ¶
func (c FakeRest) APIVersion() schema.GroupVersion
func (FakeRest) Delete ¶
func (c FakeRest) Delete() *restclient.Request
func (FakeRest) Get ¶
func (c FakeRest) Get() *restclient.Request
func (FakeRest) GetRateLimiter ¶
func (c FakeRest) GetRateLimiter() flowcontrol.RateLimiter
func (*FakeRest) MockGet ¶
func (f *FakeRest) MockGet(api string, handler MethodHandler)
func (*FakeRest) MockPost ¶
func (f *FakeRest) MockPost(api string, handler MethodHandler)
func (*FakeRest) MockPut ¶
func (f *FakeRest) MockPut(api string, handler MethodHandler)
func (FakeRest) Post ¶
func (c FakeRest) Post() *restclient.Request
func (FakeRest) Put ¶
func (c FakeRest) Put() *restclient.Request
func (FakeRest) Verb ¶
func (c FakeRest) Verb(verb string) *restclient.Request
Click to show internal directories.
Click to hide internal directories.