Documentation ¶
Index ¶
- func CrateGeneralLayout(t *tcell.Terminal) (*container.Container, error)
- func LogsPoller(flags *rootFlags) (func(cs ...chan Logs), func(), error)
- func NewLayoutButtons(c *container.Container) (*layoutButtons, error)
- func NewRootCommand() *cobra.Command
- func PoolsDefaultPoller(flags *rootFlags) (func(cs ...chan PoolsDefault), func(), error)
- func RangePoller(flags *rootFlags, payload []byte) (func(cs ...chan RangeResponse), func(), error)
- func RebalanceWidget(progress int) (*donut.Donut, error)
- func TasksPoller(flags *rootFlags) (func(cs ...chan TasksResponse), func(), chan PoolsDefault, error)
- func UpdateButtonsLayout(buttons *layoutButtons, c *container.Container) error
- func UpdateKvOpsLayout(ctx context.Context, t *tcell.Terminal, c *container.Container) (pdChannel chan RangeResponse)
- func UpdateLogsLayout(ctx context.Context, t *tcell.Terminal, c *container.Container) (logsChannel chan Logs)
- func UpdateNodesLayout(ctx context.Context, t *tcell.Terminal, c *container.Container) (pdChannel chan PoolsDefault)
- func UpdateNodesServiceCountLayout(ctx context.Context, t *tcell.Terminal, c *container.Container) (pdChannel chan PoolsDefault)
- func UpdateRebalanceLayout(ctx context.Context, t *tcell.Terminal, c *container.Container) (pdChannel chan TasksResponse)
- type AddNode
- type Analytics
- type AutoCompactionSettings
- type Backfill
- type Backup
- type Buckets
- type ClusterLogsCollection
- type ComponentsVersion
- type Controllers
- type Counters
- type Data
- type DatabaseFragmentationThreshold
- type DetailedProgress
- type Details
- type EjectNode
- type Eventing
- type FailOver
- type FastWarmupSettings
- type Hdd
- type Index
- type InterestingStats
- type Log
- type Logs
- type Move
- type Node
- type NodesInfo
- type PerNode
- type PerNodeDetails
- type PerNodeProgress
- type PerNodeReplicationInfo
- type Persistence
- type Pools
- type PoolsDefault
- type PoolsPools
- type Ports
- type Query
- type RAM
- type RangeResponse
- type ReAddNode
- type ReFailOver
- type Rebalance
- type RemoteClusters
- type Replication
- type ReplicationInfo
- type Request
- type Search
- type SetAutoCompaction
- type SetFastWarmup
- type SetRecoveryType
- type Settings
- type StageInfo
- type StartGracefulFailover
- type StorageTotals
- type SystemStats
- type Takeover
- type Tasks
- type TasksItem
- type TasksResponse
- type TravelSample
- type VbucketLevelInfo
- type ViewFragmentationThreshold
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogsPoller ¶
func NewLayoutButtons ¶
newLayoutButtons returns buttons that dynamically switch the layouts.
func NewRootCommand ¶
func PoolsDefaultPoller ¶
func PoolsDefaultPoller(flags *rootFlags) (func(cs ...chan PoolsDefault), func(), error)
func RangePoller ¶
func RangePoller(flags *rootFlags, payload []byte) (func(cs ...chan RangeResponse), func(), error)
func TasksPoller ¶
func TasksPoller(flags *rootFlags) (func(cs ...chan TasksResponse), func(), chan PoolsDefault, error)
func UpdateButtonsLayout ¶
func UpdateKvOpsLayout ¶
func UpdateLogsLayout ¶
func UpdateNodesLayout ¶
func UpdateRebalanceLayout ¶
Types ¶
type AutoCompactionSettings ¶
type AutoCompactionSettings struct { DatabaseFragmentationThreshold DatabaseFragmentationThreshold `json:"databaseFragmentationThreshold"` ParallelDBAndViewCompaction bool `json:"parallelDBAndViewCompaction"` ViewFragmentationThreshold ViewFragmentationThreshold `json:"viewFragmentationThreshold"` }
type ClusterLogsCollection ¶
type ComponentsVersion ¶
type ComponentsVersion struct { Esaml string `json:"esaml"` Xmerl string `json:"xmerl"` Inets string `json:"inets"` OsMon string `json:"os_mon"` Sasl string `json:"sasl"` Ale string `json:"ale"` Stdlib string `json:"stdlib"` Asn1 string `json:"asn1"` Crypto string `json:"crypto"` PublicKey string `json:"public_key"` Chronicle string `json:"chronicle"` Kernel string `json:"kernel"` NsServer string `json:"ns_server"` Ssl string `json:"ssl"` Lhttpc string `json:"lhttpc"` }
type Controllers ¶
type Controllers struct { AddNode AddNode `json:"addNode"` ClusterLogsCollection ClusterLogsCollection `json:"clusterLogsCollection"` EjectNode EjectNode `json:"ejectNode"` FailOver FailOver `json:"failOver"` ReAddNode ReAddNode `json:"reAddNode"` ReFailOver ReFailOver `json:"reFailOver"` Rebalance Rebalance `json:"rebalance"` Replication Replication `json:"replication"` SetAutoCompaction SetAutoCompaction `json:"setAutoCompaction"` SetFastWarmup SetFastWarmup `json:"setFastWarmup"` SetRecoveryType SetRecoveryType `json:"setRecoveryType"` StartGracefulFailover StartGracefulFailover `json:"startGracefulFailover"` }
type DetailedProgress ¶
type Details ¶
type Details struct {
TravelSample TravelSample `json:"travel-sample"`
}
type FastWarmupSettings ¶
type InterestingStats ¶
type InterestingStats struct { CmdGet int `json:"cmd_get"` CouchDocsActualDiskSize int `json:"couch_docs_actual_disk_size"` CouchDocsDataSize int `json:"couch_docs_data_size"` CouchViewsActualDiskSize int `json:"couch_views_actual_disk_size"` CouchViewsDataSize int `json:"couch_views_data_size"` CurrItems int `json:"curr_items"` CurrItemsTot int `json:"curr_items_tot"` EpBgFetched int `json:"ep_bg_fetched"` GetHits int `json:"get_hits"` MemUsed int `json:"mem_used"` Ops int `json:"ops"` VbReplicaCurrItems int `json:"vb_replica_curr_items"` }
type Node ¶
type Node struct { ClusterCompatibility int `json:"clusterCompatibility"` ClusterMembership string `json:"clusterMembership"` CouchAPIBase string `json:"couchApiBase"` Hostname string `json:"hostname"` InterestingStats InterestingStats `json:"interestingStats"` McdMemoryAllocated int `json:"mcdMemoryAllocated"` McdMemoryReserved int `json:"mcdMemoryReserved"` MemoryFree int64 `json:"memoryFree"` MemoryTotal int64 `json:"memoryTotal"` Os string `json:"os"` OtpCookie string `json:"otpCookie"` OtpNode string `json:"otpNode"` Ports Ports `json:"ports"` RecoveryType string `json:"recoveryType"` Status string `json:"status"` SystemStats SystemStats `json:"systemStats"` ThisNode bool `json:"thisNode"` Uptime string `json:"uptime"` Version string `json:"version"` }
type PerNode ¶
type PerNode map[string]PerNodeDetails
type PerNodeDetails ¶
type PerNodeDetails struct {
Progress float64 `json:"progress"`
}
type PerNodeProgress ¶
type PerNodeReplicationInfo ¶
type Persistence ¶
type Persistence struct {
AverageTime float64 `json:"averageTime"`
}
type Pools ¶
type Pools struct { IsAdminCreds bool `json:"isAdminCreds"` IsROAdminCreds bool `json:"isROAdminCreds"` IsEnterprise bool `json:"isEnterprise"` ConfigProfile string `json:"configProfile"` AllowedServices []string `json:"allowedServices"` IsDeveloperPreview bool `json:"isDeveloperPreview"` PackageVariant string `json:"packageVariant"` Pools []PoolsPools `json:"pools"` Settings Settings `json:"settings"` UUID string `json:"uuid"` ImplementationVersion string `json:"implementationVersion"` ComponentsVersion ComponentsVersion `json:"componentsVersion"` }
type PoolsDefault ¶
type PoolsDefault struct { Etag string `json:"etag"` Alerts []any `json:"alerts"` AlertsSilenceURL string `json:"alertsSilenceURL"` AutoCompactionSettings AutoCompactionSettings `json:"autoCompactionSettings"` Buckets Buckets `json:"buckets"` Controllers Controllers `json:"controllers"` Counters Counters `json:"counters"` FastWarmupSettings FastWarmupSettings `json:"fastWarmupSettings"` MaxBucketCount int `json:"maxBucketCount"` Name string `json:"name"` NodeStatusesURI string `json:"nodeStatusesUri"` Nodes []Node `json:"nodes"` RebalanceProgressURI string `json:"rebalanceProgressUri"` RebalanceStatus string `json:"rebalanceStatus"` RemoteClusters RemoteClusters `json:"remoteClusters"` ServerGroupsURI string `json:"serverGroupsUri"` StopRebalanceURI string `json:"stopRebalanceUri"` StorageTotals StorageTotals `json:"storageTotals"` Tasks Tasks `json:"tasks"` VisualSettingsURI string `json:"visualSettingsUri"` }
type PoolsPools ¶
type RangeResponse ¶
type ReFailOver ¶
type ReFailOver struct {
URI string `json:"uri"`
}
type RemoteClusters ¶
type Replication ¶
type ReplicationInfo ¶
type ReplicationInfo map[string]PerNodeReplicationInfo
type SetAutoCompaction ¶
type SetFastWarmup ¶
type SetRecoveryType ¶
type SetRecoveryType struct {
URI string `json:"uri"`
}
type StartGracefulFailover ¶
type StartGracefulFailover struct {
URI string `json:"uri"`
}
type StorageTotals ¶
type SystemStats ¶
type TasksItem ¶
type TasksItem struct { StatusID string `json:"statusId"` Type string `json:"type"` Subtype string `json:"subtype"` RecommendedRefreshPeriod float64 `json:"recommendedRefreshPeriod"` Status string `json:"status"` Progress float64 `json:"progress"` PerNode PerNode `json:"perNode"` DetailedProgress DetailedProgress `json:"detailedProgress"` StageInfo StageInfo `json:"stageInfo"` RebalanceID string `json:"rebalanceId"` NodesInfo NodesInfo `json:"nodesInfo"` MasterNode string `json:"masterNode"` }
type TasksResponse ¶
type TasksResponse []TasksItem
type TravelSample ¶
type TravelSample struct { VbucketLevelInfo VbucketLevelInfo `json:"vbucketLevelInfo"` ReplicationInfo ReplicationInfo `json:"replicationInfo"` StartTime time.Time `json:"startTime"` CompletedTime bool `json:"completedTime"` TimeTaken int `json:"timeTaken"` }
type VbucketLevelInfo ¶
type VbucketLevelInfo struct { Move Move `json:"move"` Backfill Backfill `json:"backfill"` Takeover Takeover `json:"takeover"` Persistence Persistence `json:"persistence"` }
Click to show internal directories.
Click to hide internal directories.