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) CreateConfig(ctx context.Context) (*corev1.Volume, 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 ¶
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 ¶
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) CreateConfig ¶
func (*Node) GenerateSelfSigned ¶
GenerateSelfSigned generates a self-signed TLS certificate using SR Linux tools command and creates an enclosing server profile.
func (*Node) ResetCfg ¶
ResetCfg resets the config of the node by reverting to a named checkpoint "initial" that is created by srl-controller for each node.
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