Documentation ¶
Overview ¶
Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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) FixInterfaces()
- func (n *Node) GenerateSelfSigned(ctx context.Context) error
- func (n *Node) PatchCLIConnOpen() error
- func (n *Node) ResetCfg(ctx context.Context) error
- func (n *Node) SpawnCLIConn() error
- func (n *Node) WaitCLIReady() error
Constants ¶
This section is empty.
Variables ¶
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) FixInterfaces ¶
func (n *Node) FixInterfaces()
func (*Node) PatchCLIConnOpen ¶
PatchCLIConnOpen sets the OpenCmd and ExecCmd of system transport to work with `kubectl exec` terminal.
func (*Node) SpawnCLIConn ¶
SpawnCLIConn spawns a CLI connection towards a Network OS using `kubectl exec` terminal and ensures CLI is ready to accept inputs.
func (*Node) WaitCLIReady ¶
WaitCLIReady attempts to open the transport channel towards a Network OS and perform scrapligo OnOpen actions for a given platform. Retries indefinitely till success.