cluster_dto

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckCluster

type CheckCluster struct {
	Address string `json:"address"`
}

type Cluster

type Cluster struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
}

type Detail

type Detail struct {
	Updater     auto.Label     `json:"updater"`
	Creator     auto.Label     `json:"creator"`
	Id          string         `json:"id,omitempty"`
	Name        string         `json:"name,omitempty"`
	Description string         `json:"description,omitempty"`
	Prefix      string         `json:"prefix,omitempty"`
	CreateTime  auto.TimeLabel `json:"create_time,omitempty"`
	UpdateTime  auto.TimeLabel `json:"update_time,omitempty"`
	CanDelete   bool           `json:"can_delete"`
}

type Item

type Item struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	Description string         `json:"description"`
	ClusterNum  int            `json:"cluster_num"`
	CreateTime  auto.TimeLabel `json:"create_time" `
	UpdateTime  auto.TimeLabel `json:"update_time"`
	Updater     auto.Label     `json:"updater" aolabel:"user"`
	Creator     auto.Label     `json:"creator" aolabel:"user"`
}

type Node

type Node struct {
	Id       string   `json:"id"`
	Name     string   `json:"name"`
	Admins   []string `json:"manager_address"`
	Peers    []string `json:"peer_address"`
	Gateways []string `json:"service_address"`
	Status   int      `json:"status"`
}

type ResetCluster

type ResetCluster struct {
	ManagerAddress string `json:"manager_address"`
}

type Simple

type Simple struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type SimpleWithCluster

type SimpleWithCluster struct {
	Id       string     `json:"id,omitempty"`
	Name     string     `json:"name,omitempty"`
	Clusters []*Cluster `json:"clusters,omitempty"`
}

Jump to

Keyboard shortcuts

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