avtool

package module
v0.0.0-...-6dec4ba Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: GPL-3.0 Imports: 11 Imported by: 3

README

avtool

Decrypt ansible vault files in golang.

The tool uses the same command line parameters as the ansible-vault command.

Why?

This is useful if you are writing code in golang and need to manipulate Ansible vault files.

Also useful if you want to decrypt an Ansible vault file, and are not keen on installing python.

Downloading

See the Releases

Code

The code is derived from code in the ansible project:

https://github.com/ansible/ansible

Building

Install golang 1.7. To build, use the Makefile, run:

make ci

The tool will be built and placed in the build/ folder.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data, password string) (result string, err error)

Decrypt a string containing the ansible vault

func DecryptFile

func DecryptFile(filename, password string) (result string, err error)

func EncryptFile

func EncryptFile(filename, password string) (result string, err error)

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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