client

package
v0.0.0-...-75dfb8e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 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) Order

Order issues an order request to the remote server

func (*RemoteServer) OrderCancel

func (c *RemoteServer) OrderCancel(req core.OrderInfoRequest) (*core.ResponseData, error)

OrderCancel issues an order cancel request to the remote server

func (*RemoteServer) OrderInfo

func (c *RemoteServer) OrderInfo(req core.OrderInfoRequest) (*core.ResponseData, error)

OrderInfo issues an order info request to the remote server

func (*RemoteServer) OrderOutstanding

func (c *RemoteServer) OrderOutstanding(req core.OrderOutstandingRequest) (*core.ResponseData, error)

OrderOutstanding issues an order outstanding request to the remote server

func (*RemoteServer) Owners

func (c *RemoteServer) Owners(req core.OwnersRequest) (*core.OwnersData, error)

Owners issues an Owners 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) ResetPersisted

func (c *RemoteServer) ResetPersisted(req core.PurgeRequest) (*core.ResponseData, error)

ResetPersisted issues a persisted delegation reset request, clearing out any persisted delegations. This must be done by an admin user.

func (*RemoteServer) Restore

Restore issues a restore request to the server. Note that a restore request is the same as a delegation request, except that the user and label lists are ignored.

func (*RemoteServer) Status

Status returns the current delegation persistence state from 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