nexssflow

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nexssflow ships the NFlow bundle for local profile-based SSH commands and SFTP transfers.

Typical use:

@require github.com/nexssp/ssh/nexssflow v0.1.0 { profiles_file: "~/.config/nexss/ssh/profiles.yml" }
{ profile: "staging", command: "uname -s" } -> ssh.run

Index

Constants

View Source
const ID = "ssh"

Variables

This section is empty.

Functions

func Bundle

func Bundle(rawOpts map[string]string) compiler.Bundle

Bundle creates the Flow extension. Local profiles are loaded on first action execution, not while the compiler or a lint harness loads the extension.

func NewBundle

func NewBundle(cfg Config) (compiler.Bundle, error)

NewBundle validates configuration and loads an immutable profile snapshot.

Types

type Config

type Config struct {
	ProfilesFile string        `nflow:"profiles_file"`
	Timeout      time.Duration `nflow:"timeout" default:"2m"`
	MaxBytes     int64         `nflow:"max_bytes" default:"268435456"`
}

Config controls local profile loading and operation limits for this bundle.

type RunRequest

type RunRequest struct {
	Profile string `json:"profile"`
	Command string `json:"command"`
}

RunRequest selects only a local profile and supplies the remote command. Host, username, identity, and host-key trust are deliberately not inputs.

type TransferRequest

type TransferRequest struct {
	Profile    string `json:"profile"`
	LocalPath  string `json:"local_path"`
	RemotePath string `json:"remote_path"`
}

TransferRequest selects a local profile and the two file paths for one SFTP transfer.

Jump to

Keyboard shortcuts

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