juniper

package
v0.0.0-...-45f8ed2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

func New

func New(nodeImpl *node.Impl) (node.Node, error)

Types

type Node

type Node struct {
	*node.Impl
	// contains filtered or unexported fields
}

func (*Node) ConfigPush

func (n *Node) ConfigPush(ctx context.Context, r io.Reader) error

func (*Node) Create

func (n *Node) Create(ctx context.Context) error

func (*Node) GRPCConfig

func (n *Node) GRPCConfig() []string

Returns config required to configure gRPC service

func (*Node) GenerateSelfSigned

func (n *Node) GenerateSelfSigned(ctx context.Context) error

GenerateSelfSigned generates a self-signed TLS certificate using Junos PKI

func (*Node) ResetCfg

func (n *Node) ResetCfg(ctx context.Context) error

func (*Node) SpawnCLIConn

func (n *Node) SpawnCLIConn() error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL