Documentation
¶
Index ¶
- Constants
- 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) DefaultNodeConstraints() node.Constraints
- func (n *Node) GRPCConfig() []string
- func (n *Node) GenerateSelfSigned(ctx context.Context) error
- func (n *Node) ResetCfg(ctx context.Context) error
- func (n *Node) SpawnCLIConn() error
Constants ¶
View Source
const ( ModelNCPTX = "ncptx" ModelCPTX = "cptx" )
Variables ¶
View Source
var ErrIncompatibleCliConn = errors.New("incompatible cli connection in use")
ErrIncompatibleCliConn raised when an invalid scrapligo cli transport type is found.
Functions ¶
Types ¶
type Node ¶
func (*Node) DefaultNodeConstraints ¶ added in v0.2.2
func (n *Node) DefaultNodeConstraints() node.Constraints
DefaultNodeConstraints returns default node constraints for Juniper. If the model for cptx is specificied correctly it returns defaults for cptx. Otherwise, it returns defaults for ncptx by default.
func (*Node) GRPCConfig ¶
Returns config required to configure gRPC service
func (*Node) GenerateSelfSigned ¶
GenerateSelfSigned generates a self-signed TLS certificate using Junos PKI
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.