github.com/Cloud-Foundations/Dominator@v0.3.4/proto/mdbserver/messages.go (about)

     1  package mdbserver
     2  
     3  import (
     4  	"github.com/Cloud-Foundations/Dominator/lib/mdb"
     5  )
     6  
     7  type ListImagesRequest struct{}
     8  
     9  type ListImagesResponse struct {
    10  	PlannedImages  []string
    11  	RequiredImages []string
    12  }
    13  
    14  // The GetMdbUpdates() RPC is fully streamed.
    15  // The client sends no information to the server.
    16  // The server sends a stream of MdbUpdate messages.
    17  // At connection start, the full MDB data are presented in .MachinesToAdd and
    18  // .MachinesToUpdate and .MachinesToDelete will be nil.
    19  
    20  type MdbUpdate struct {
    21  	MachinesToAdd    []mdb.Machine
    22  	MachinesToUpdate []mdb.Machine
    23  	MachinesToDelete []string
    24  }