aboutsummaryrefslogtreecommitdiff
path: root/worker/types/messages.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/types/messages.go')
-rw-r--r--worker/types/messages.go18
1 files changed, 7 insertions, 11 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go
index 00937a9..69df6ca 100644
--- a/worker/types/messages.go
+++ b/worker/types/messages.go
@@ -26,11 +26,6 @@ func (m Message) InResponseTo() WorkerMessage {
// Meta-messages
-// TODO: Figure out a nice way of merging Ack and Done
-type Ack struct {
- Message
-}
-
type Done struct {
Message
}
@@ -46,8 +41,9 @@ type Unsupported struct {
// Actions
-type Ping struct {
+type ApproveCertificate struct {
Message
+ Approved bool
}
type Configure struct {
@@ -69,13 +65,13 @@ type ListDirectories struct {
// Messages
-type Directory struct {
+type CertificateApprovalRequest struct {
Message
- Name *string
+ CertPool *x509.CertPool
}
-// Respond with an Ack to approve or Disconnect to reject
-type ApproveCertificate struct {
+type Directory struct {
Message
- CertPool *x509.CertPool
+ Attributes []string
+ Name string
}