v1

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemInfoResp added in v0.4.0

type SystemInfoResp struct {
	NomadAddress              string
	PolicyEngine              string
	StorageBackend            string
	InternalAutoScalingEngine bool
	StrictPolicyChecking      bool
}

type SystemLeaderResp added in v0.4.0

type SystemLeaderResp struct {
	IsSelf               bool
	HAEnabled            bool
	LeaderAddress        string
	LeaderClusterAddress string
}

type SystemServer added in v0.4.0

type SystemServer struct {
	// contains filtered or unexported fields
}

func NewSystemServer added in v0.4.0

func NewSystemServer(l zerolog.Logger, nomad *api.Client, server *serverCfg.Config, tel *metrics.InmemSink, mem *cluster.Member) *SystemServer

func (*SystemServer) GetHealth added in v0.4.0

func (s *SystemServer) GetHealth(w http.ResponseWriter, r *http.Request)

func (*SystemServer) GetInfo added in v0.4.0

func (s *SystemServer) GetInfo(w http.ResponseWriter, r *http.Request)

func (*SystemServer) GetLeader added in v0.4.0

func (s *SystemServer) GetLeader(w http.ResponseWriter, r *http.Request)

func (*SystemServer) GetMetrics added in v0.4.0

func (s *SystemServer) GetMetrics(w http.ResponseWriter, r *http.Request)

type SystemStatusResp added in v0.4.0

type SystemStatusResp struct {
	ClusterName string
	ClusterID   uuid.UUID
	HAEnabled   string
	Version     string
}

type UIServer

type UIServer struct {
	// contains filtered or unexported fields
}

func NewUIServer

func NewUIServer() *UIServer

func (*UIServer) Get

func (s *UIServer) Get(w http.ResponseWriter, r *http.Request)

func (*UIServer) Redirect

func (s *UIServer) Redirect(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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