vaultstatus

package module
v0.0.0-...-6d938a6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(w http.ResponseWriter, r *http.Request)

Types

type EnrichedStatus

type EnrichedStatus struct {
	Type                     string `json:"seal_type"`
	Initialized              string `json:"initialized"`
	Sealed                   string `json:"sealed"`
	T                        string `json:"total_recovery_shares"`
	N                        string `json:"threshold"`
	Progress                 string `json:"unseal_progress,omitempty"`
	Nonce                    string `json:"unseal_nonce,omitempty"`
	Version                  string `json:"version"`
	Migration                string `json:"migration,omitempty"`
	ClusterName              string `json:"cluster_name,omitempty"`
	ClusterID                string `json:"cluster_id,omitempty"`
	RecoverySeal             string `json:"recovery_seal,omitempty"`
	StorageType              string `json:"storage_type,omitempty"`
	HAEnabled                string `json:"ha_enabled"`
	HAMode                   string `json:"ha_mode,omitempty"`
	HACluster                string `json:"ha_cluster,omitempty"`
	IsSelf                   string `json:"is_self,omitempty"`
	ActiveTime               string `json:"active_time,omitempty"`
	LeaderAddress            string `json:"leader_address,omitempty"`
	LeaderClusterAddress     string `json:"leader_cluster_address,omitempty"`
	PerfStandby              string `json:"performance_standby,omitempty"`
	PerfStandbyLastRemoteWAL string `json:"performance_standby_last_remote_wal,omitempty"`
	LastWAL                  string `json:"last_wal,omitempty"`
	RaftCommittedIndex       string `json:"raft_committed_index,omitempty"`
	RaftAppliedIndex         string `json:"raft_applied_index,omitempty"`
}

type RequestBody

type RequestBody struct {
	Endpoint string `json:"endpoint"`
}

type Response

type Response struct {
	Payload EnrichedStatus      `json:"payload"`
	Headers map[string][]string `json:"headers"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL