Documentation ¶
Index ¶
- Variables
- func New(nodeImpl *node.Impl) (node.Node, error)
- type Node
- func (n *Node) ConfigPush(ctx context.Context, r io.Reader) error
- func (n *Node) Create(ctx context.Context) error
- func (n *Node) Delete(ctx context.Context) error
- func (n *Node) GenerateSelfSigned(ctx context.Context) error
- func (n *Node) ResetCfg(ctx context.Context) error
- func (n *Node) SpawnCLIConn() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrIncompatibleCliConn raised when an invalid scrapligo cli transport type is found. ErrIncompatibleCliConn = errors.New("incompatible cli connection in use") )
Functions ¶
Types ¶
type Node ¶
type Node struct { *node.Impl ControllerClient ctrlclient.Client // contains filtered or unexported fields }
func (*Node) ConfigPush ¶ added in v0.1.7
ConfigPush pushes config lines provided in r using scrapligo SendConfig
func (*Node) Create ¶
Create creates a Nokia SR Linux node by interfacing with srl-labs/srl-controller
func (*Node) GenerateSelfSigned ¶
GenerateSelfSigned generates a self-signed TLS certificate using SR Linux tools command and creates an enclosing server profile.
func (*Node) ResetCfg ¶ added in v0.1.3
Implement the resetter for SRL Using load factory auto-commit to reset default configs
func (*Node) SpawnCLIConn ¶
SpawnCLIConn spawns a CLI connection towards a Network OS using `kubectl exec` terminal and ensures CLI is ready to accept inputs. scrapligo options can be provided to this function for a caller to modify scrapligo platform. For example, mock transport can be set via options
Click to show internal directories.
Click to hide internal directories.