furyagent

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter added in v0.27.0

type Adapter struct {
	Name string `yaml:"name"`
}

type AgentConfig

type AgentConfig struct {
	Storage          Storage          `yaml:"storage"`
	ClusterComponent ClusterComponent `yaml:"clusterComponent"`
}

func ParseConfig

func ParseConfig(cfgPath string) (*AgentConfig, error)

type ClusterComponent added in v0.27.0

type ClusterComponent struct {
	OpenVPN OpenVPN `yaml:"openvpn"`
	SSHKeys SSHKeys `yaml:"sshkeys"`
}

type OpenVPN added in v0.27.0

type OpenVPN struct {
	CertDir string   `yaml:"certDir"`
	Servers []string `yaml:"servers"`
}

type Paths

type Paths struct {
	Furyagent string
	WorkDir   string
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(executor execx.Executor, paths Paths) *Runner

func (*Runner) CmdPath

func (r *Runner) CmdPath() string

func (*Runner) ConfigOpenvpnClient

func (r *Runner) ConfigOpenvpnClient(name string, params ...string) (*bytes.Buffer, error)

func (*Runner) Init added in v0.27.0

func (r *Runner) Init(initType string, params ...string) (*bytes.Buffer, error)

func (*Runner) Stop

func (r *Runner) Stop() error

func (*Runner) Version

func (r *Runner) Version() (string, error)

type SSHKeys added in v0.27.0

type SSHKeys struct {
	User            string  `yaml:"user"`
	TempDir         string  `yaml:"tempDir"`
	LocalDirConfigs string  `yaml:"localDirConfigs"`
	Adapter         Adapter `yaml:"adapter"`
}

type Storage

type Storage struct {
	BucketName   string `yaml:"bucketName"`
	Provider     string `yaml:"provider"`
	AwsAccessKey string `yaml:"aws_access_key"` //nolint:tagliatelle // yaml key is aws_access_key
	AwsSecretKey string `yaml:"aws_secret_key"` //nolint:tagliatelle // yaml key is aws_secret_key
	Region       string `yaml:"region"`
}

Jump to

Keyboard shortcuts

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