client

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteServer

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

RemoteServer represents a remote RedOctober server.

func NewRemoteServer

func NewRemoteServer(serverAddress, CAFile string) (*RemoteServer, error)

NewRemoteServer generates a RemoteServer with the server address and the root CA the server uses to authenticate itself.

func (*RemoteServer) Create

Create creates an admin account at the remote server

func (*RemoteServer) CreateUser

func (c *RemoteServer) CreateUser(req core.CreateUserRequest) (*core.ResponseData, error)

CreateUser issues a create-user request to the remote server

func (*RemoteServer) Decrypt

func (c *RemoteServer) Decrypt(req core.DecryptRequest) (*core.ResponseData, error)

Decrypt issues an decrypt request to the remote server

func (*RemoteServer) DecryptIntoData

func (c *RemoteServer) DecryptIntoData(req core.DecryptRequest) ([]byte, error)

DecryptIntoData issues an decrypt request to the remote server and extract the decrypted data from the response

func (*RemoteServer) Delegate

func (c *RemoteServer) Delegate(req core.DelegateRequest) (*core.ResponseData, error)

Delegate issues a delegate request to the remote server

func (*RemoteServer) Encrypt

func (c *RemoteServer) Encrypt(req core.EncryptRequest) (*core.ResponseData, error)

Encrypt issues an encrypt request to the remote server

func (*RemoteServer) Modify

Modify issues a modify request to the remote server

func (*RemoteServer) Password

func (c *RemoteServer) Password(req []byte) (*core.ResponseData, error)

Password issues an password request to the remote server

func (*RemoteServer) Purge

Purge issues a purge request to the remote server

func (*RemoteServer) ReEncrypt

func (c *RemoteServer) ReEncrypt(req core.ReEncryptRequest) (*core.ResponseData, error)

ReEncrypt issues an re-encrypt request to the remote server

func (*RemoteServer) Summary

func (c *RemoteServer) Summary(req core.SummaryRequest) (*core.SummaryData, error)

Summary returns the summary reported by the remote server

Jump to

Keyboard shortcuts

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