core

package
v0.0.0-...-95e4144 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(jsonIn []byte) ([]byte, error)

Create processes a create request.

func CreateUser

func CreateUser(jsonIn []byte) ([]byte, error)

Create User processes a create-user request.

func Decrypt

func Decrypt(jsonIn []byte) ([]byte, error)

Decrypt processes a decrypt request.

func Delegate

func Delegate(jsonIn []byte) ([]byte, error)

Delegate processes a delegation request.

func Encrypt

func Encrypt(jsonIn []byte) ([]byte, error)

Encrypt processes an encrypt request.

func Export

func Export(jsonIn []byte) ([]byte, error)

Export returns a backed up vault.

func Init

func Init(path string) error

Init reads the records from disk from a given path

func Modify

func Modify(jsonIn []byte) ([]byte, error)

Modify processes a modify request.

func Owners

func Owners(jsonIn []byte) ([]byte, error)

Owners processes a owners request.

func Password

func Password(jsonIn []byte) ([]byte, error)

Password processes a password change request.

func Purge

func Purge(jsonIn []byte) ([]byte, error)

Purge processes a delegation purge request.

func ReEncrypt

func ReEncrypt(jsonIn []byte) ([]byte, error)

ReEncrypt processes an Re-encrypt request.

func Summary

func Summary(jsonIn []byte) ([]byte, error)

Summary processes a summary request.

Types

type CreateRequest

type CreateRequest struct {
	Name     string
	Password string
}

type CreateUserRequest

type CreateUserRequest struct {
	Name     string
	Password string
	UserType string
}

type DecryptRequest

type DecryptRequest struct {
	Name     string
	Password string

	Data []byte
}

type DecryptWithDelegates

type DecryptWithDelegates struct {
	Data      []byte
	Secure    bool
	Delegates []string
}

type DelegateRequest

type DelegateRequest struct {
	Name     string
	Password string

	Uses   int
	Time   string
	Slot   string
	Users  []string
	Labels []string
}

type EncryptRequest

type EncryptRequest struct {
	Name     string
	Password string

	Owners      []string
	LeftOwners  []string
	RightOwners []string
	Predicate   string

	Data []byte

	Labels []string
}

type ExportRequest

type ExportRequest struct {
	Name     string
	Password string
}

type ModifyRequest

type ModifyRequest struct {
	Name     string
	Password string

	ToModify string
	Command  string
}

type OwnersData

type OwnersData struct {
	Status    string
	Owners    []string
	Predicate string
}

type OwnersRequest

type OwnersRequest struct {
	Data []byte
}

type PasswordRequest

type PasswordRequest struct {
	Name     string
	Password string

	NewPassword string
}

type PurgeRequest

type PurgeRequest struct {
	Name     string
	Password string
}

type ReEncryptRequest

type ReEncryptRequest EncryptRequest

type ResponseData

type ResponseData struct {
	Status   string
	Response []byte `json:",omitempty"`
}

type SummaryData

type SummaryData struct {
	Status string
	Live   map[string]keycache.ActiveUser
	All    map[string]passvault.Summary
}

type SummaryRequest

type SummaryRequest struct {
	Name     string
	Password string
}

Jump to

Keyboard shortcuts

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