tfsecured

package module
v0.0.0-...-5717c73 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decryptor

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

func NewDecryptorBytes

func NewDecryptorBytes(key string, data []byte) *Decryptor

func NewDecryptorFile

func NewDecryptorFile(key string, path string) (*Decryptor, error)

func (*Decryptor) Decrypt

func (d *Decryptor) Decrypt() (*tf.Graph, error)

type Encryptor

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

func NewEncryptorBytes

func NewEncryptorBytes(key string, data []byte) *Encryptor

func NewEncryptorFile

func NewEncryptorFile(key string, path string) (*Encryptor, error)

func NewEncryptorGraph

func NewEncryptorGraph(key string, graph *tf.Graph) (*Encryptor, error)

func (*Encryptor) Encrypt

func (e *Encryptor) Encrypt() ([]byte, error)

Jump to

Keyboard shortcuts

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