Documentation ¶
Index ¶
- func NewChannelOperator(err error) operators.ChannelOperatorInterface
- func NewFakeOperator() operators.OperatorInterface
- func NewNodeOperator(err error) operators.NodeOperatorInterface
- type ChannelOperator
- func (o ChannelOperator) Create(ctx context.Context, context string, ch *meta.Channel) error
- func (o ChannelOperator) Delete(ctx context.Context, context string, name string) error
- func (o ChannelOperator) Get(ctx context.Context, context string, name string) (*meta.Channel, error)
- func (o ChannelOperator) GetAll(_ context.Context, context string) (ret []*meta.Channel, err error)
- func (o ChannelOperator) Update(ctx context.Context, context string, ch *meta.Channel) error
- type NodeOperator
- func (o *NodeOperator) CreateNode(ctx context.Context, app *meta.App) (*meta.Node, error)
- func (o *NodeOperator) DeleteNode(ctx context.Context, nodeContext string, nodeName string) error
- func (o *NodeOperator) GetAllNodes() (ret []meta.Node)
- func (o *NodeOperator) GetNode(ctx context.Context, app *meta.App) (*meta.Node, error)
- func (o *NodeOperator) UpdateNode(ctx context.Context, app *meta.App) (*meta.Node, error)
- type Operator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChannelOperator ¶
func NewChannelOperator(err error) operators.ChannelOperatorInterface
NewChannelOperator mock
func NewFakeOperator ¶
func NewFakeOperator() operators.OperatorInterface
NewFakeOperator creates a simple operator that only acts in memory
func NewNodeOperator ¶
func NewNodeOperator(err error) operators.NodeOperatorInterface
NewNodeOperator returns a mocked node operator that returns err on every function if err is not nil
Types ¶
type ChannelOperator ¶
type ChannelOperator struct {
// contains filtered or unexported fields
}
ChannelOperator mock
func (ChannelOperator) Get ¶
func (o ChannelOperator) Get(ctx context.Context, context string, name string) (*meta.Channel, error)
Get mock
type NodeOperator ¶
type NodeOperator struct {
// contains filtered or unexported fields
}
NodeOperator mock
func (*NodeOperator) CreateNode ¶
CreateNode mock
func (*NodeOperator) DeleteNode ¶
DeleteNode mock
func (*NodeOperator) GetAllNodes ¶
func (o *NodeOperator) GetAllNodes() (ret []meta.Node)
GetAllNodes mock
func (*NodeOperator) UpdateNode ¶
UpdateNode mock
Click to show internal directories.
Click to hide internal directories.