Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make BootstrapEntry struct in sync with that in Porx repo #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions api/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ type BootstrapEntry struct {
Type NodeType
// Ts is the last updated timestamp of this bootstrap entry
Ts time.Time
// Version is the bootstrap entry version
// Version DEPRECATED This will always be "v2" for backward compatibility. New code should use EntryVersion.
Version string
// EntryVersion is the bootstrap entry version
EntryVersion int
// used only for tests
// PeerPort is the peer port for kvdb node
PeerPort string `json:"peerport,omitemty"`
PeerPort string `json:"peerport,omitempty"`
// ClientPort is the client port for kvdb node
ClientPort string `json:"clientport,omitempty"`
// Domain is the domain name advertised in the peer urls for this kvdb node
Expand All @@ -33,6 +35,12 @@ type BootstrapEntry struct {
// DataDirType is the type of data directory being used by internal kvdb on
// this node
DataDirType Type
// Filesystem UUID of the disk used by the kvdb node for it's db
DiskUUID string
// IsStorageless is set to true if the node is storageless
IsStorageless bool
// Zone is the zone of the node
Zone string
}

// NodeState is the state of a kvdb bootstrap node
Expand Down