Documentation ¶
Overview ¶
Package mock implements some mock objects.
Index ¶
- Constants
- type MockNamespacer
- func (mn *MockNamespacer) Category() supervisor.ObjectCategory
- func (mn *MockNamespacer) Close()
- func (mn *MockNamespacer) DefaultSpec() interface{}
- func (mn *MockNamespacer) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)
- func (mn *MockNamespacer) Init(superSpec *supervisor.Spec)
- func (mn *MockNamespacer) Kind() string
- func (mn *MockNamespacer) Status() *supervisor.Status
- type NamedHTTPServer
- type NamedPipeline
- type Spec
Constants ¶
View Source
const ( // Category is the category of MockNamespacer. Category = supervisor.CategoryBusinessController // Kind is the kind of MockNamespacer Kind = "MockNamespacer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNamespacer ¶
type MockNamespacer struct {
// contains filtered or unexported fields
}
MockNamespacer create a mock namespace for test
func (*MockNamespacer) Category ¶
func (mn *MockNamespacer) Category() supervisor.ObjectCategory
Category returns the category of MockNamespacer.
func (*MockNamespacer) DefaultSpec ¶
func (mn *MockNamespacer) DefaultSpec() interface{}
DefaultSpec returns the default spec of MockNamespacer.
func (*MockNamespacer) Inherit ¶
func (mn *MockNamespacer) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object)
Inherit inherits previous generation of MockNamespacer.
func (*MockNamespacer) Init ¶
func (mn *MockNamespacer) Init(superSpec *supervisor.Spec)
Init initializes MockNamespacer.
func (*MockNamespacer) Kind ¶
func (mn *MockNamespacer) Kind() string
Kind returns the kind of MockNamespacer.
func (*MockNamespacer) Status ¶
func (mn *MockNamespacer) Status() *supervisor.Status
Status returns the status of MockNamespacer.
type NamedHTTPServer ¶
type NamedHTTPServer struct { Kind string `json:"kind"` Name string `json:"name"` httpserver.Spec `json:",inline"` }
type NamedPipeline ¶
type Spec ¶
type Spec struct { Namespace string `json:"namespace"` HTTPServers []NamedHTTPServer `json:"httpServers"` Pipelines []NamedPipeline `json:"pipelines"` }
Spec is the MockNamespacer spec
Click to show internal directories.
Click to hide internal directories.