operations

package
v0.0.0-...-4474ee7 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationAddClusterNode

type OperationAddClusterNode struct {
	Url     string `json:"Url"`
	Tag     string `json:"Tag"`
	Watcher bool   `json:"Watcher"`
}

func (*OperationAddClusterNode) GetCommand

func (operation *OperationAddClusterNode) GetCommand(conventions *ravendb.DocumentConventions) (ravendb.RavenCommand, error)

type OperationAddDatabaseNode

type OperationAddDatabaseNode struct {
	Name string `json:"Name"`
	Node string `json:"Node"`
}

func (*OperationAddDatabaseNode) GetCommand

func (operation *OperationAddDatabaseNode) GetCommand(conventions *ravendb.DocumentConventions) (ravendb.RavenCommand, error)

type OperationBootstrap

type OperationBootstrap struct {
}

func (*OperationBootstrap) GetCommand

func (o *OperationBootstrap) GetCommand(conventions *ravendb.DocumentConventions) (ravendb.RavenCommand, error)

type OperationDatabaseHealthCheck

type OperationDatabaseHealthCheck struct{}

func (*OperationDatabaseHealthCheck) GetCommand

func (operation *OperationDatabaseHealthCheck) GetCommand(conventions *ravendb.DocumentConventions) (ravendb.RavenCommand, error)

type OperationDemoteClusterNode

type OperationDemoteClusterNode struct {
	Node string `json:"Node"`
}

func (*OperationDemoteClusterNode) GetCommand

func (operation *OperationDemoteClusterNode) GetCommand(conventions *ravendb.DocumentConventions) (ravendb.RavenCommand, error)

type OperationGetBuildNumber

type OperationGetBuildNumber struct {
	BuildVersion   int    `json:"BuildVersion"`
	ProductVersion string `json:"ProductVersion"`
	CommitHash     string `json:"CommitHash"`
	FullVersion    string `json:"FullVersion"`
}

func (*OperationGetBuildNumber) GetCommand

func (operation *OperationGetBuildNumber) GetCommand(conventions *ravendb.DocumentConventions) (ravendb.RavenCommand, error)

type OperationGetClusterTopology

type OperationGetClusterTopology struct {
	Topology           ravendb.ClusterTopology
	Etag               int    `json:"Etag"`
	Leader             string `json:"Leader"`
	LeaderShipDuration int    `json:"LeaderShipDuration"`
	CurrentState       string `json:"CurrentState"`
	NodeTag            string `json:"NodeTag"`
	CurrentTerm        int    `json:"CurrentTerm"`
	NodeLicenseDetails struct {
		UtilizedCores       int         `json:"UtilizedCores"`
		MaxUtilizedCores    interface{} `json:"MaxUtilizedCores"`
		NumberOfCores       int         `json:"NumberOfCores"`
		InstalledMemoryInGb float64     `json:"InstalledMemoryInGb"`
		UsableMemoryInGb    float64     `json:"UsableMemoryInGb"`
		BuildInfo           struct {
			ProductVersion string `json:"ProductVersion"`
			BuildVersion   int    `json:"BuildVersion"`
			CommitHash     string `json:"CommitHash"`
			FullVersion    string `json:"FullVersion"`
		} `json:"BuildInfo"`
		OsInfo struct {
			Type         string `json:"Type"`
			FullName     string `json:"FullName"`
			Version      string `json:"Version"`
			BuildVersion string `json:"BuildVersion"`
			Is64Bit      bool   `json:"Is64Bit"`
		} `json:"OsInfo"`
	}
	LastStateChangeReason string   `json:"LastStateChangeReason"`
	Status                struct{} `json:"Status"`
}

func (*OperationGetClusterTopology) GetCommand

func (operation *OperationGetClusterTopology) GetCommand(conventions *ravendb.DocumentConventions) (ravendb.RavenCommand, error)

type OperationPromoteClusterNode

type OperationPromoteClusterNode struct {
	Node string `json:"Node"`
}

func NewOperationPromoteClusterNode

func NewOperationPromoteClusterNode(node string) *OperationPromoteClusterNode

func NewRemovePromoteClusterNode

func NewRemovePromoteClusterNode(node string) *OperationPromoteClusterNode

func (*OperationPromoteClusterNode) GetCommand

func (operation *OperationPromoteClusterNode) GetCommand(conventions *ravendb.DocumentConventions) (ravendb.RavenCommand, error)

type RemoveClusterNode

type RemoveClusterNode struct {
	Node string `json:"Node"`
	Tag  string `json:"Tag"`
}

func (*RemoveClusterNode) GetCommand

func (operation *RemoveClusterNode) GetCommand(conventions *ravendb.DocumentConventions) (ravendb.RavenCommand, error)

Jump to

Keyboard shortcuts

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