hhfctl

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HHFabCfgPrefix          = ".hhfab.githedgehog.com"
	HHFabCfgSerial          = "serial" + HHFabCfgPrefix
	HHFctlCfgPrefix         = ".fabric.githedgehog.com"
	HHFctlCfgSerial         = "serial" + HHFctlCfgPrefix
	HHFabCfgSerialSchemeSSH = "ssh://"
)

Variables

View Source
var SSHQuietFlags = []string{
	"-o", "GlobalKnownHostsFile=/dev/null",
	"-o", "UserKnownHostsFile=/dev/null",
	"-o", "StrictHostKeyChecking=no",
	"-o", "LogLevel=ERROR",
}

Functions

func ConnectionGet

func ConnectionGet(ctx context.Context, options *ConnectionGetOptions) error

func ExternalCreate

func ExternalCreate(ctx context.Context, printYaml bool, options *ExternalCreateOptions) error

func ExternalPeering

func ExternalPeering(ctx context.Context, printYaml bool, options *ExternalPeeringOptions) error

func GetSerialInfo added in v0.52.1

func GetSerialInfo(sw *wiringapi.Switch) string

func SwitchGroupCreate

func SwitchGroupCreate(ctx context.Context, printYaml bool, options *SwitchGroupCreateOptions) error

func SwitchIP added in v0.52.1

func SwitchIP(ctx context.Context, name string) error

func SwitchPowerReset

func SwitchPowerReset(ctx context.Context, name string) error

func SwitchReboot

func SwitchReboot(ctx context.Context, name string) error

func SwitchReinstall

func SwitchReinstall(ctx context.Context, name string) error

func SwitchSSH added in v0.52.1

func SwitchSSH(ctx context.Context, name, username string) error

func SwitchSerial added in v0.52.1

func SwitchSerial(ctx context.Context, name string) error

func VPCAttach

func VPCAttach(ctx context.Context, printYaml bool, options *VPCAttachOptions) error

func VPCCreate

func VPCCreate(ctx context.Context, printYaml bool, options *VPCCreateOptions) error

func VPCDNATRequest

func VPCDNATRequest(ctx context.Context, printYaml bool, options *VPCDNATOptions) error

func VPCPeer

func VPCPeer(ctx context.Context, printYaml bool, options *VPCPeerOptions) error

func VPCSNAT

func VPCSNAT(ctx context.Context, printYaml bool, options *VPCSNATOptions) error

Types

type ConnectionGetOptions

type ConnectionGetOptions struct {
	Type string
}

type ExternalCreateOptions

type ExternalCreateOptions struct {
	Name              string
	IPv4Namespace     string
	InboundCommunity  string
	OutboundCommunity string
}

type ExternalPeeringOptions

type ExternalPeeringOptions struct {
	VPC              string
	VPCSubnets       []string
	External         string
	ExternalPrefixes []string
}

type SwitchGroupCreateOptions

type SwitchGroupCreateOptions struct {
	Name string
}

type VPCAttachOptions

type VPCAttachOptions struct {
	Name       string
	VPCSubnet  string
	Connection string
}

type VPCCreateOptions

type VPCCreateOptions struct {
	Name   string
	Subnet string
	VLAN   uint16
	DHCP   vpcapi.VPCDHCP
}

type VPCDNATOptions

type VPCDNATOptions struct {
	VPC      string
	Requests []string
}

type VPCPeerOptions

type VPCPeerOptions struct {
	Name   string
	VPCs   []string
	Remote string
}

type VPCSNATOptions

type VPCSNATOptions struct {
	VPC    string
	Enable bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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