Documentation ¶
Index ¶
- type NodeOperator
- func (no *NodeOperator) CreateNode(ctx context.Context, app *meta.App) (*meta.Node, error)
- func (no *NodeOperator) DeleteNode(ctx context.Context, nodeContext string, nodeName string) error
- func (no *NodeOperator) GetAllNodes() []meta.Node
- func (no *NodeOperator) GetNode(ctx context.Context, app *meta.App) (*meta.Node, error)
- func (no *NodeOperator) Nodes() operators.NodeOperatorInterface
- func (no *NodeOperator) UpdateNode(ctx context.Context, app *meta.App) (*meta.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeOperator ¶
type NodeOperator struct {
// contains filtered or unexported fields
}
NodeOperator defines a node operations interface.
func NewOperator ¶
func NewOperator(memory memory.Manager) (nop *NodeOperator, err error)
NewOperator initializes a k8s based kafka node operator with in cluster configuration
func (*NodeOperator) CreateNode ¶
CreateNode deploys a new node structure, if it's information is valid. Otherwise, returns an error
func (*NodeOperator) DeleteNode ¶
DeleteNode deletes node with given name, if it exists. Otherwise, returns an error
func (*NodeOperator) GetAllNodes ¶
func (no *NodeOperator) GetAllNodes() []meta.Node
GetAllNodes returns a list of all the active nodes in the deployment, if there are any
func (*NodeOperator) GetNode ¶
GetNode returns the node with the given name, if it exists. Otherwise, returns an error
func (*NodeOperator) Nodes ¶
func (no *NodeOperator) Nodes() operators.NodeOperatorInterface
Nodes is a NodeOperatorInterface that provides methods for node manipulation
func (*NodeOperator) UpdateNode ¶
UpdateNode updates a node that already exists, if the new structure is valid. Otherwise, returns an error.