tasks

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadPlugin

func DownloadPlugin(i *DownloadPluginInput) ([]byte, string, error)

DownloadPlugin gets the plugin's download URL from its Impl.GetDownloadURL(), then downloads and unzips it, returning the plugin binary itself as a byte slice, and the SHA as a string

func EnablePlugin

func EnablePlugin(i *EnablePluginInput) error

func GetClients

func GetClients(cfg *config.VaultConfig, report reporter.Report) ([]ssh.VaultSSHClient, api.VaultAPIClient, func(), error)

func InstallPluginToServers

func InstallPluginToServers(input *InstallPluginToServersInput) error

InstallPluginToServers connects to the Vault servers over SSH and ensures the correct version of the plugin is present in the plugin_dir

func MountPlugin

func MountPlugin(i *MountPluginInput) error

func ResolveBuildArch

func ResolveBuildArch(input *ResolveBuildArchInput) error

func VerifyPluginInstalled

func VerifyPluginInstalled(input *VerifyPluginInstalledInput) error

Types

type DownloadPluginInput

type DownloadPluginInput struct {
	Downloader downloader.PluginDownloader
	Reporter   reporter.Report
	Plugin     plugins.PluginConfig
}

type EnablePluginInput

type EnablePluginInput struct {
	VaultClient api.VaultAPIClient
	Reporter    reporter.Report
	Plugin      plugins.PluginConfig
	SHA         string
}

type InstallPluginToServersInput

type InstallPluginToServersInput struct {
	SSHClients    []ssh.VaultSSHClient
	Reporter      reporter.Report
	Plugin        plugins.PluginConfig
	PluginFile    []byte
	PluginDir     string
	MlockDisabled bool
}

type MountPluginInput

type MountPluginInput struct {
	VaultClient api.VaultAPIClient
	Reporter    reporter.Report
	Plugin      plugins.PluginConfig
}

type ResolveBuildArchInput

type ResolveBuildArchInput struct {
	SSHClients      []ssh.VaultSSHClient
	PluginBuildArch string
	Reporter        reporter.Report
}

type VerifyPluginInstalledInput

type VerifyPluginInstalledInput struct {
	VaultClient   api.VaultAPIClient
	SSHClients    []ssh.VaultSSHClient
	Reporter      reporter.Report
	Plugin        plugins.PluginConfig
	PluginDir     string
	MlockDisabled bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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