Documentation ¶
Index ¶
- type RemoteServer
- func (c *RemoteServer) Create(req core.CreateRequest) (*core.ResponseData, error)
- func (c *RemoteServer) CreateUser(req core.CreateUserRequest) (*core.ResponseData, error)
- func (c *RemoteServer) Decrypt(req core.DecryptRequest) (*core.ResponseData, error)
- func (c *RemoteServer) DecryptIntoData(req core.DecryptRequest) ([]byte, error)
- func (c *RemoteServer) Delegate(req core.DelegateRequest) (*core.ResponseData, error)
- func (c *RemoteServer) Encrypt(req core.EncryptRequest) (*core.ResponseData, error)
- func (c *RemoteServer) Modify(req core.ModifyRequest) (*core.ResponseData, error)
- func (c *RemoteServer) Order(req core.OrderRequest) (*core.ResponseData, error)
- func (c *RemoteServer) OrderCancel(req core.OrderInfoRequest) (*core.ResponseData, error)
- func (c *RemoteServer) OrderInfo(req core.OrderInfoRequest) (*core.ResponseData, error)
- func (c *RemoteServer) OrderOutstanding(req core.OrderOutstandingRequest) (*core.ResponseData, error)
- func (c *RemoteServer) Owners(req core.OwnersRequest) (*core.OwnersData, error)
- func (c *RemoteServer) Password(req []byte) (*core.ResponseData, error)
- func (c *RemoteServer) Purge(req core.DelegateRequest) (*core.ResponseData, error)
- func (c *RemoteServer) ReEncrypt(req core.ReEncryptRequest) (*core.ResponseData, error)
- func (c *RemoteServer) Summary(req core.SummaryRequest) (*core.SummaryData, error)
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 ¶
func (c *RemoteServer) Create(req core.CreateRequest) (*core.ResponseData, error)
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 ¶
func (c *RemoteServer) Modify(req core.ModifyRequest) (*core.ResponseData, error)
Modify issues a modify request to the remote server
func (*RemoteServer) Order ¶
func (c *RemoteServer) Order(req core.OrderRequest) (*core.ResponseData, error)
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 ¶
func (c *RemoteServer) Purge(req core.DelegateRequest) (*core.ResponseData, error)
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