Documentation ¶
Index ¶
- Constants
- Variables
- func ContainerEngineOptions(auto bool) []string
- func ContainerEnginePreflight(containerEngine string) error
- func CreateInventoryFile(dir string, inventoryContents string) error
- func CreateKnownHosts(dir string, knownHosts []KnownHost, settings *NavigatorSettings) error
- func CreateNavigatorSettingsFile(dir string, settingsContents string) error
- func CreatePlaybookFile(dir string, playbookContents string) error
- func CreatePrivateKeys(dir string, keys []PrivateKey, settings *NavigatorSettings) error
- func CreateRunDir(dir string) error
- func DirectoryPreflight(dir string) error
- func ExecNavigatorRunCommand(command *exec.Cmd) (string, error)
- func GenerateNavigatorRunCommand(runDir string, workingDir string, ansibleNavigatorBinary string, ...) *exec.Cmd
- func GenerateNavigatorSettings(settings *NavigatorSettings) (string, error)
- func GetStatusFromPlaybookArtifact(dir string) (string, error)
- func GetStdoutFromPlaybookArtifact(dir string) (string, error)
- func NavigatorPathPreflight(path string) (string, error)
- func NavigatorPreflight(binary string) error
- func PlaybookPreflight() error
- func PullPolicyOptions() []string
- func QueryPlaybookArtifact(dir string, queries map[string]ArtifactQuery) error
- func RemoveRunDir(dir string) error
- func ValidateJQFilter(filter string) error
- type ArtifactQuery
- type KnownHost
- type NavigatorSettings
- type Options
- type PlaybookArtifact
- type PrivateKey
Constants ¶
View Source
const ( PlaybookProgram = "ansible-playbook" ContainerEngineAuto = "auto" )
View Source
const (
SSHKnownHostsFileVar = "ansible_ssh_known_hosts_file"
)
Variables ¶
View Source
var ( ErrDirectory = errors.New("directory is not valid") ErrContainerEngineValidate = errors.New("container engine is not valid") ErrContainerEnginePath = errors.New("container engine must exist in PATH") ErrContainerEngineRunning = errors.New("container engine is not running or usable") ErrPlaybookPath = fmt.Errorf("%s does not exist in PATH", PlaybookProgram) ErrPlaybook = fmt.Errorf("%s is not functional", PlaybookProgram) )
Functions ¶
func ContainerEngineOptions ¶
func CreateInventoryFile ¶
func CreateKnownHosts ¶ added in v0.16.0
func CreateKnownHosts(dir string, knownHosts []KnownHost, settings *NavigatorSettings) error
func CreatePlaybookFile ¶
func CreatePrivateKeys ¶ added in v0.7.0
func CreatePrivateKeys(dir string, keys []PrivateKey, settings *NavigatorSettings) error
func CreateRunDir ¶ added in v0.2.0
func DirectoryPreflight ¶ added in v0.1.1
func GenerateNavigatorSettings ¶
func GenerateNavigatorSettings(settings *NavigatorSettings) (string, error)
func GetStatusFromPlaybookArtifact ¶ added in v0.5.0
func GetStdoutFromPlaybookArtifact ¶ added in v0.5.0
func NavigatorPathPreflight ¶ added in v0.13.1
func NavigatorPreflight ¶
TODO include output in error TODO require a min version
func PlaybookPreflight ¶ added in v0.14.0
func PlaybookPreflight() error
TODO include output in error TODO require a min version
func PullPolicyOptions ¶
func PullPolicyOptions() []string
func QueryPlaybookArtifact ¶
func QueryPlaybookArtifact(dir string, queries map[string]ArtifactQuery) error
func RemoveRunDir ¶ added in v0.2.0
func ValidateJQFilter ¶ added in v0.18.0
Types ¶
type ArtifactQuery ¶
type NavigatorSettings ¶
type NavigatorSettings struct {}
type PlaybookArtifact ¶ added in v0.5.0
type PrivateKey ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.