resource

package
v0.0.0-...-e16029c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	App_List_FullMethodName             = "/api.console.resource.App/List"
	App_NamespaceAppList_FullMethodName = "/api.console.resource.App/NamespaceAppList"
	App_Get_FullMethodName              = "/api.console.resource.App/Get"
	App_Create_FullMethodName           = "/api.console.resource.App/Create"
	App_Update_FullMethodName           = "/api.console.resource.App/Update"
	App_Delete_FullMethodName           = "/api.console.resource.App/Delete"
)
View Source
const (
	Namespace_List_FullMethodName       = "/api.console.resource.Namespace/List"
	Namespace_SimpleList_FullMethodName = "/api.console.resource.Namespace/SimpleList"
	Namespace_Get_FullMethodName        = "/api.console.resource.Namespace/Get"
	Namespace_Create_FullMethodName     = "/api.console.resource.Namespace/Create"
	Namespace_Update_FullMethodName     = "/api.console.resource.Namespace/Update"
	Namespace_Delete_FullMethodName     = "/api.console.resource.Namespace/Delete"
)
View Source
const (
	Node_List_FullMethodName   = "/api.console.resource.Node/List"
	Node_Create_FullMethodName = "/api.console.resource.Node/Create"
	Node_Update_FullMethodName = "/api.console.resource.Node/Update"
)
View Source
const (
	Zone_List_FullMethodName       = "/api.console.resource.Zone/List"
	Zone_SimpleList_FullMethodName = "/api.console.resource.Zone/SimpleList"
	Zone_Get_FullMethodName        = "/api.console.resource.Zone/Get"
	Zone_Create_FullMethodName     = "/api.console.resource.Zone/Create"
	Zone_Update_FullMethodName     = "/api.console.resource.Zone/Update"
	Zone_Disable_FullMethodName    = "/api.console.resource.Zone/Disable"
	Zone_Delete_FullMethodName     = "/api.console.resource.Zone/Delete"
)
View Source
const OperationAppCreate = "/api.console.resource.App/Create"
View Source
const OperationAppDelete = "/api.console.resource.App/Delete"
View Source
const OperationAppGet = "/api.console.resource.App/Get"
View Source
const OperationAppList = "/api.console.resource.App/List"
View Source
const OperationAppNamespaceAppList = "/api.console.resource.App/NamespaceAppList"
View Source
const OperationAppUpdate = "/api.console.resource.App/Update"
View Source
const OperationNamespaceCreate = "/api.console.resource.Namespace/Create"
View Source
const OperationNamespaceDelete = "/api.console.resource.Namespace/Delete"
View Source
const OperationNamespaceGet = "/api.console.resource.Namespace/Get"
View Source
const OperationNamespaceList = "/api.console.resource.Namespace/List"
View Source
const OperationNamespaceSimpleList = "/api.console.resource.Namespace/SimpleList"
View Source
const OperationNamespaceUpdate = "/api.console.resource.Namespace/Update"
View Source
const OperationNodeCreate = "/api.console.resource.Node/Create"
View Source
const OperationNodeList = "/api.console.resource.Node/List"
View Source
const OperationNodeUpdate = "/api.console.resource.Node/Update"
View Source
const OperationZoneCreate = "/api.console.resource.Zone/Create"
View Source
const OperationZoneDelete = "/api.console.resource.Zone/Delete"
View Source
const OperationZoneDisable = "/api.console.resource.Zone/Disable"
View Source
const OperationZoneGet = "/api.console.resource.Zone/Get"
View Source
const OperationZoneList = "/api.console.resource.Zone/List"
View Source
const OperationZoneSimpleList = "/api.console.resource.Zone/SimpleList"
View Source
const OperationZoneUpdate = "/api.console.resource.Zone/Update"

Variables

View Source
var (
	MetadataType_name = map[int32]string{
		0: "hang",
	}
	MetadataType_value = map[string]int32{
		"hang": 0,
	}
)

Enum value maps for MetadataType.

View Source
var (
	AppInfo_AppType_name = map[int32]string{
		0: "UNKNOWN",
		1: "SYSTEM",
		2: "WEB",
		3: "API",
		4: "SUB_APP",
	}
	AppInfo_AppType_value = map[string]int32{
		"UNKNOWN": 0,
		"SYSTEM":  1,
		"WEB":     2,
		"API":     3,
		"SUB_APP": 4,
	}
)

Enum value maps for AppInfo_AppType.

View Source
var (
	AppInfo_AppPort_Protocol_name = map[int32]string{
		0: "UNKNOWN",
		1: "HTTP",
		2: "GRPC",
	}
	AppInfo_AppPort_Protocol_value = map[string]int32{
		"UNKNOWN": 0,
		"HTTP":    1,
		"GRPC":    2,
	}
)

Enum value maps for AppInfo_AppPort_Protocol.

View Source
var (
	AgentType_name = map[int32]string{
		0: "UNKNOWN",
		1: "NORMAL",
		2: "ABNORMAL",
	}
	AgentType_value = map[string]int32{
		"UNKNOWN":  0,
		"NORMAL":   1,
		"ABNORMAL": 2,
	}
)

Enum value maps for AgentType.

View Source
var (
	ZoneInfo_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "ENABLED",
		2: "DISABLED",
	}
	ZoneInfo_Status_value = map[string]int32{
		"UNKNOWN":  0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for ZoneInfo_Status.

View Source
var App_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.console.resource.App",
	HandlerType: (*AppServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _App_List_Handler,
		},
		{
			MethodName: "NamespaceAppList",
			Handler:    _App_NamespaceAppList_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _App_Get_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _App_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _App_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _App_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "console/resource/app.proto",
}

App_ServiceDesc is the grpc.ServiceDesc for App service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_console_resource_app_proto protoreflect.FileDescriptor
View Source
var File_console_resource_namespace_proto protoreflect.FileDescriptor
View Source
var File_console_resource_node_proto protoreflect.FileDescriptor
View Source
var File_console_resource_zone_proto protoreflect.FileDescriptor
View Source
var Namespace_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.console.resource.Namespace",
	HandlerType: (*NamespaceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Namespace_List_Handler,
		},
		{
			MethodName: "SimpleList",
			Handler:    _Namespace_SimpleList_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Namespace_Get_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _Namespace_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Namespace_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Namespace_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "console/resource/namespace.proto",
}

Namespace_ServiceDesc is the grpc.ServiceDesc for Namespace service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Node_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.console.resource.Node",
	HandlerType: (*NodeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Node_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _Node_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Node_Update_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "console/resource/node.proto",
}

Node_ServiceDesc is the grpc.ServiceDesc for Node service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Zone_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.console.resource.Zone",
	HandlerType: (*ZoneServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Zone_List_Handler,
		},
		{
			MethodName: "SimpleList",
			Handler:    _Zone_SimpleList_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Zone_Get_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _Zone_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Zone_Update_Handler,
		},
		{
			MethodName: "Disable",
			Handler:    _Zone_Disable_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Zone_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "console/resource/zone.proto",
}

Zone_ServiceDesc is the grpc.ServiceDesc for Zone service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAppHTTPServer

func RegisterAppHTTPServer(s *http.Server, srv AppHTTPServer)

func RegisterAppServer

func RegisterAppServer(s grpc.ServiceRegistrar, srv AppServer)

func RegisterNamespaceHTTPServer

func RegisterNamespaceHTTPServer(s *http.Server, srv NamespaceHTTPServer)

func RegisterNamespaceServer

func RegisterNamespaceServer(s grpc.ServiceRegistrar, srv NamespaceServer)

func RegisterNodeHTTPServer

func RegisterNodeHTTPServer(s *http.Server, srv NodeHTTPServer)

func RegisterNodeServer

func RegisterNodeServer(s grpc.ServiceRegistrar, srv NodeServer)

func RegisterZoneHTTPServer

func RegisterZoneHTTPServer(s *http.Server, srv ZoneHTTPServer)

func RegisterZoneServer

func RegisterZoneServer(s grpc.ServiceRegistrar, srv ZoneServer)

Types

type Agent

type Agent struct {

	// 部署状态
	Type AgentType `protobuf:"varint,1,opt,name=type,proto3,enum=api.console.resource.AgentType" json:"type,omitempty"`
	// 上次心跳时间
	HeartbeatTime int64 `protobuf:"varint,2,opt,name=heartbeat_time,json=heartbeatTime,proto3" json:"heartbeat_time,omitempty"`
	// Agent版本
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Agent) Descriptor deprecated

func (*Agent) Descriptor() ([]byte, []int)

Deprecated: Use Agent.ProtoReflect.Descriptor instead.

func (*Agent) GetHeartbeatTime

func (x *Agent) GetHeartbeatTime() int64

func (*Agent) GetType

func (x *Agent) GetType() AgentType

func (*Agent) GetVersion

func (x *Agent) GetVersion() string

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) ProtoReflect

func (x *Agent) ProtoReflect() protoreflect.Message

func (*Agent) Reset

func (x *Agent) Reset()

func (*Agent) String

func (x *Agent) String() string

type AgentType

type AgentType int32
const (
	// 未知
	AgentType_UNKNOWN AgentType = 0
	// 正常
	AgentType_NORMAL AgentType = 1
	// 异常
	AgentType_ABNORMAL AgentType = 2
)

func (AgentType) Descriptor

func (AgentType) Descriptor() protoreflect.EnumDescriptor

func (AgentType) Enum

func (x AgentType) Enum() *AgentType

func (AgentType) EnumDescriptor deprecated

func (AgentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AgentType.Descriptor instead.

func (AgentType) Number

func (x AgentType) Number() protoreflect.EnumNumber

func (AgentType) String

func (x AgentType) String() string

func (AgentType) Type

type AppClient

type AppClient interface {
	List(ctx context.Context, in *AppListRequest, opts ...grpc.CallOption) (*AppListReply, error)
	NamespaceAppList(ctx context.Context, in *NamespaceAppListRequest, opts ...grpc.CallOption) (*NamespaceAppListReply, error)
	Get(ctx context.Context, in *AppGetRequest, opts ...grpc.CallOption) (*AppGetReply, error)
	Create(ctx context.Context, in *AppCreateRequest, opts ...grpc.CallOption) (*AppCreateReply, error)
	Update(ctx context.Context, in *AppUpdateRequest, opts ...grpc.CallOption) (*AppUpdateReply, error)
	Delete(ctx context.Context, in *AppDeleteRequest, opts ...grpc.CallOption) (*AppDeleteReply, error)
}

AppClient is the client API for App service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAppClient

func NewAppClient(cc grpc.ClientConnInterface) AppClient

type AppCreateReply

type AppCreateReply struct {
	Data *AppInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AppCreateReply) Descriptor deprecated

func (*AppCreateReply) Descriptor() ([]byte, []int)

Deprecated: Use AppCreateReply.ProtoReflect.Descriptor instead.

func (*AppCreateReply) GetData

func (x *AppCreateReply) GetData() *AppInfo

func (*AppCreateReply) ProtoMessage

func (*AppCreateReply) ProtoMessage()

func (*AppCreateReply) ProtoReflect

func (x *AppCreateReply) ProtoReflect() protoreflect.Message

func (*AppCreateReply) Reset

func (x *AppCreateReply) Reset()

func (*AppCreateReply) String

func (x *AppCreateReply) String() string

type AppCreateRequest

type AppCreateRequest struct {
	Data *AppInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AppCreateRequest) Descriptor deprecated

func (*AppCreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use AppCreateRequest.ProtoReflect.Descriptor instead.

func (*AppCreateRequest) GetData

func (x *AppCreateRequest) GetData() *AppInfo

func (*AppCreateRequest) ProtoMessage

func (*AppCreateRequest) ProtoMessage()

func (*AppCreateRequest) ProtoReflect

func (x *AppCreateRequest) ProtoReflect() protoreflect.Message

func (*AppCreateRequest) Reset

func (x *AppCreateRequest) Reset()

func (*AppCreateRequest) String

func (x *AppCreateRequest) String() string

type AppDeleteReply

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

func (*AppDeleteReply) Descriptor deprecated

func (*AppDeleteReply) Descriptor() ([]byte, []int)

Deprecated: Use AppDeleteReply.ProtoReflect.Descriptor instead.

func (*AppDeleteReply) ProtoMessage

func (*AppDeleteReply) ProtoMessage()

func (*AppDeleteReply) ProtoReflect

func (x *AppDeleteReply) ProtoReflect() protoreflect.Message

func (*AppDeleteReply) Reset

func (x *AppDeleteReply) Reset()

func (*AppDeleteReply) String

func (x *AppDeleteReply) String() string

type AppDeleteRequest

type AppDeleteRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AppDeleteRequest) Descriptor deprecated

func (*AppDeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use AppDeleteRequest.ProtoReflect.Descriptor instead.

func (*AppDeleteRequest) GetId

func (x *AppDeleteRequest) GetId() int64

func (*AppDeleteRequest) ProtoMessage

func (*AppDeleteRequest) ProtoMessage()

func (*AppDeleteRequest) ProtoReflect

func (x *AppDeleteRequest) ProtoReflect() protoreflect.Message

func (*AppDeleteRequest) Reset

func (x *AppDeleteRequest) Reset()

func (*AppDeleteRequest) String

func (x *AppDeleteRequest) String() string

type AppGetReply

type AppGetReply struct {
	Data *AppInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AppGetReply) Descriptor deprecated

func (*AppGetReply) Descriptor() ([]byte, []int)

Deprecated: Use AppGetReply.ProtoReflect.Descriptor instead.

func (*AppGetReply) GetData

func (x *AppGetReply) GetData() *AppInfo

func (*AppGetReply) ProtoMessage

func (*AppGetReply) ProtoMessage()

func (*AppGetReply) ProtoReflect

func (x *AppGetReply) ProtoReflect() protoreflect.Message

func (*AppGetReply) Reset

func (x *AppGetReply) Reset()

func (*AppGetReply) String

func (x *AppGetReply) String() string

type AppGetRequest

type AppGetRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AppGetRequest) Descriptor deprecated

func (*AppGetRequest) Descriptor() ([]byte, []int)

Deprecated: Use AppGetRequest.ProtoReflect.Descriptor instead.

func (*AppGetRequest) GetId

func (x *AppGetRequest) GetId() int64

func (*AppGetRequest) ProtoMessage

func (*AppGetRequest) ProtoMessage()

func (*AppGetRequest) ProtoReflect

func (x *AppGetRequest) ProtoReflect() protoreflect.Message

func (*AppGetRequest) Reset

func (x *AppGetRequest) Reset()

func (*AppGetRequest) String

func (x *AppGetRequest) String() string

type AppHTTPClient

type AppHTTPClient interface {
	Create(ctx context.Context, req *AppCreateRequest, opts ...http.CallOption) (rsp *AppCreateReply, err error)
	Delete(ctx context.Context, req *AppDeleteRequest, opts ...http.CallOption) (rsp *AppDeleteReply, err error)
	Get(ctx context.Context, req *AppGetRequest, opts ...http.CallOption) (rsp *AppGetReply, err error)
	List(ctx context.Context, req *AppListRequest, opts ...http.CallOption) (rsp *AppListReply, err error)
	NamespaceAppList(ctx context.Context, req *NamespaceAppListRequest, opts ...http.CallOption) (rsp *NamespaceAppListReply, err error)
	Update(ctx context.Context, req *AppUpdateRequest, opts ...http.CallOption) (rsp *AppUpdateReply, err error)
}

func NewAppHTTPClient

func NewAppHTTPClient(client *http.Client) AppHTTPClient

type AppHTTPClientImpl

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

func (*AppHTTPClientImpl) Create

func (*AppHTTPClientImpl) Delete

func (*AppHTTPClientImpl) Get

func (*AppHTTPClientImpl) List

func (*AppHTTPClientImpl) NamespaceAppList

func (*AppHTTPClientImpl) Update

type AppInfo

type AppInfo struct {

	// 唯一键
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 应用名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 应用别名
	Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	// 应用描述
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// 应用图标
	Icon string `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"`
	// 应用端口
	Ports []*AppInfo_AppPort `protobuf:"bytes,6,rep,name=ports,proto3" json:"ports,omitempty"`
	// 应用类型
	Type AppInfo_AppType `protobuf:"varint,7,opt,name=type,proto3,enum=api.console.resource.AppInfo_AppType" json:"type,omitempty"`
	// 命名空间id
	NamespaceId int64 `protobuf:"varint,8,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	// 应用负责人
	Users []string `protobuf:"bytes,9,rep,name=users,proto3" json:"users,omitempty"`
	// 应用仓库
	Repos []string `protobuf:"bytes,10,rep,name=repos,proto3" json:"repos,omitempty"`
	// 创建时间
	CreatedAt int64 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 修改时间
	UpdatedAt int64 `protobuf:"varint,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*AppInfo) Descriptor deprecated

func (*AppInfo) Descriptor() ([]byte, []int)

Deprecated: Use AppInfo.ProtoReflect.Descriptor instead.

func (*AppInfo) GetAlias

func (x *AppInfo) GetAlias() string

func (*AppInfo) GetCreatedAt

func (x *AppInfo) GetCreatedAt() int64

func (*AppInfo) GetDescription

func (x *AppInfo) GetDescription() string

func (*AppInfo) GetIcon

func (x *AppInfo) GetIcon() string

func (*AppInfo) GetId

func (x *AppInfo) GetId() int64

func (*AppInfo) GetName

func (x *AppInfo) GetName() string

func (*AppInfo) GetNamespaceId

func (x *AppInfo) GetNamespaceId() int64

func (*AppInfo) GetPorts

func (x *AppInfo) GetPorts() []*AppInfo_AppPort

func (*AppInfo) GetRepos

func (x *AppInfo) GetRepos() []string

func (*AppInfo) GetType

func (x *AppInfo) GetType() AppInfo_AppType

func (*AppInfo) GetUpdatedAt

func (x *AppInfo) GetUpdatedAt() int64

func (*AppInfo) GetUsers

func (x *AppInfo) GetUsers() []string

func (*AppInfo) ProtoMessage

func (*AppInfo) ProtoMessage()

func (*AppInfo) ProtoReflect

func (x *AppInfo) ProtoReflect() protoreflect.Message

func (*AppInfo) Reset

func (x *AppInfo) Reset()

func (*AppInfo) String

func (x *AppInfo) String() string

type AppInfo_AppPort

type AppInfo_AppPort struct {

	// 端口 0代表随机端口
	Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	// 协议
	Protocol AppInfo_AppPort_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=api.console.resource.AppInfo_AppPort_Protocol" json:"protocol,omitempty"`
	// 备注
	Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
	// contains filtered or unexported fields
}

应用端口描述

func (*AppInfo_AppPort) Descriptor deprecated

func (*AppInfo_AppPort) Descriptor() ([]byte, []int)

Deprecated: Use AppInfo_AppPort.ProtoReflect.Descriptor instead.

func (*AppInfo_AppPort) GetPort

func (x *AppInfo_AppPort) GetPort() uint32

func (*AppInfo_AppPort) GetProtocol

func (x *AppInfo_AppPort) GetProtocol() AppInfo_AppPort_Protocol

func (*AppInfo_AppPort) GetRemark

func (x *AppInfo_AppPort) GetRemark() string

func (*AppInfo_AppPort) ProtoMessage

func (*AppInfo_AppPort) ProtoMessage()

func (*AppInfo_AppPort) ProtoReflect

func (x *AppInfo_AppPort) ProtoReflect() protoreflect.Message

func (*AppInfo_AppPort) Reset

func (x *AppInfo_AppPort) Reset()

func (*AppInfo_AppPort) String

func (x *AppInfo_AppPort) String() string

type AppInfo_AppPort_Protocol

type AppInfo_AppPort_Protocol int32
const (
	AppInfo_AppPort_UNKNOWN AppInfo_AppPort_Protocol = 0
	AppInfo_AppPort_HTTP    AppInfo_AppPort_Protocol = 1
	AppInfo_AppPort_GRPC    AppInfo_AppPort_Protocol = 2
)

func (AppInfo_AppPort_Protocol) Descriptor

func (AppInfo_AppPort_Protocol) Enum

func (AppInfo_AppPort_Protocol) EnumDescriptor deprecated

func (AppInfo_AppPort_Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use AppInfo_AppPort_Protocol.Descriptor instead.

func (AppInfo_AppPort_Protocol) Number

func (AppInfo_AppPort_Protocol) String

func (x AppInfo_AppPort_Protocol) String() string

func (AppInfo_AppPort_Protocol) Type

type AppInfo_AppType

type AppInfo_AppType int32

应用类型:1-系统应用,2-WEB应用,3-API应用,4-子服务,0,5-未定义

const (
	// 未定义
	AppInfo_UNKNOWN AppInfo_AppType = 0
	// 系统应用
	AppInfo_SYSTEM AppInfo_AppType = 1
	// WEB应用
	AppInfo_WEB AppInfo_AppType = 2
	// API应用
	AppInfo_API AppInfo_AppType = 3
	// 子服务
	AppInfo_SUB_APP AppInfo_AppType = 4
)

func (AppInfo_AppType) Descriptor

func (AppInfo_AppType) Enum

func (x AppInfo_AppType) Enum() *AppInfo_AppType

func (AppInfo_AppType) EnumDescriptor deprecated

func (AppInfo_AppType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AppInfo_AppType.Descriptor instead.

func (AppInfo_AppType) Number

func (AppInfo_AppType) String

func (x AppInfo_AppType) String() string

func (AppInfo_AppType) Type

type AppListReply

type AppListReply struct {
	Pagination *protobuf.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Data       []*AppInfo           `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AppListReply) Descriptor deprecated

func (*AppListReply) Descriptor() ([]byte, []int)

Deprecated: Use AppListReply.ProtoReflect.Descriptor instead.

func (*AppListReply) GetData

func (x *AppListReply) GetData() []*AppInfo

func (*AppListReply) GetPagination

func (x *AppListReply) GetPagination() *protobuf.Pagination

func (*AppListReply) ProtoMessage

func (*AppListReply) ProtoMessage()

func (*AppListReply) ProtoReflect

func (x *AppListReply) ProtoReflect() protoreflect.Message

func (*AppListReply) Reset

func (x *AppListReply) Reset()

func (*AppListReply) String

func (x *AppListReply) String() string

type AppListRequest

type AppListRequest struct {

	// 分页参数
	Pagination *protobuf.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// 命名空间ID
	NamespaceId int64 `protobuf:"varint,2,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	// 应用名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*AppListRequest) Descriptor deprecated

func (*AppListRequest) Descriptor() ([]byte, []int)

Deprecated: Use AppListRequest.ProtoReflect.Descriptor instead.

func (*AppListRequest) GetName

func (x *AppListRequest) GetName() string

func (*AppListRequest) GetNamespaceId

func (x *AppListRequest) GetNamespaceId() int64

func (*AppListRequest) GetPagination

func (x *AppListRequest) GetPagination() *protobuf.Pagination

func (*AppListRequest) ProtoMessage

func (*AppListRequest) ProtoMessage()

func (*AppListRequest) ProtoReflect

func (x *AppListRequest) ProtoReflect() protoreflect.Message

func (*AppListRequest) Reset

func (x *AppListRequest) Reset()

func (*AppListRequest) String

func (x *AppListRequest) String() string

type AppServer

AppServer is the server API for App service. All implementations must embed UnimplementedAppServer for forward compatibility.

type AppUpdateReply

type AppUpdateReply struct {
	Data *AppInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AppUpdateReply) Descriptor deprecated

func (*AppUpdateReply) Descriptor() ([]byte, []int)

Deprecated: Use AppUpdateReply.ProtoReflect.Descriptor instead.

func (*AppUpdateReply) GetData

func (x *AppUpdateReply) GetData() *AppInfo

func (*AppUpdateReply) ProtoMessage

func (*AppUpdateReply) ProtoMessage()

func (*AppUpdateReply) ProtoReflect

func (x *AppUpdateReply) ProtoReflect() protoreflect.Message

func (*AppUpdateReply) Reset

func (x *AppUpdateReply) Reset()

func (*AppUpdateReply) String

func (x *AppUpdateReply) String() string

type AppUpdateRequest

type AppUpdateRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AppUpdateRequest) Descriptor deprecated

func (*AppUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use AppUpdateRequest.ProtoReflect.Descriptor instead.

func (*AppUpdateRequest) GetId

func (x *AppUpdateRequest) GetId() int64

func (*AppUpdateRequest) ProtoMessage

func (*AppUpdateRequest) ProtoMessage()

func (*AppUpdateRequest) ProtoReflect

func (x *AppUpdateRequest) ProtoReflect() protoreflect.Message

func (*AppUpdateRequest) Reset

func (x *AppUpdateRequest) Reset()

func (*AppUpdateRequest) String

func (x *AppUpdateRequest) String() string

type CreateNodeReply

type CreateNodeReply struct {
	Data *NodeInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNodeReply) Descriptor deprecated

func (*CreateNodeReply) Descriptor() ([]byte, []int)

Deprecated: Use CreateNodeReply.ProtoReflect.Descriptor instead.

func (*CreateNodeReply) GetData

func (x *CreateNodeReply) GetData() *NodeInfo

func (*CreateNodeReply) ProtoMessage

func (*CreateNodeReply) ProtoMessage()

func (*CreateNodeReply) ProtoReflect

func (x *CreateNodeReply) ProtoReflect() protoreflect.Message

func (*CreateNodeReply) Reset

func (x *CreateNodeReply) Reset()

func (*CreateNodeReply) String

func (x *CreateNodeReply) String() string

type CreateNodeRequest

type CreateNodeRequest struct {

	// 节点名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 节点IP
	Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	// Agent自动上报开关
	AutoDetect bool `protobuf:"varint,3,opt,name=auto_detect,json=autoDetect,proto3" json:"auto_detect,omitempty"`
	// 可用区ID
	ZoneId int32 `protobuf:"varint,4,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// 环境变量
	Env string `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNodeRequest) Descriptor deprecated

func (*CreateNodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateNodeRequest.ProtoReflect.Descriptor instead.

func (*CreateNodeRequest) GetAutoDetect

func (x *CreateNodeRequest) GetAutoDetect() bool

func (*CreateNodeRequest) GetEnv

func (x *CreateNodeRequest) GetEnv() string

func (*CreateNodeRequest) GetIp

func (x *CreateNodeRequest) GetIp() string

func (*CreateNodeRequest) GetName

func (x *CreateNodeRequest) GetName() string

func (*CreateNodeRequest) GetZoneId

func (x *CreateNodeRequest) GetZoneId() int32

func (*CreateNodeRequest) ProtoMessage

func (*CreateNodeRequest) ProtoMessage()

func (*CreateNodeRequest) ProtoReflect

func (x *CreateNodeRequest) ProtoReflect() protoreflect.Message

func (*CreateNodeRequest) Reset

func (x *CreateNodeRequest) Reset()

func (*CreateNodeRequest) String

func (x *CreateNodeRequest) String() string

type CreateZoneReply

type CreateZoneReply struct {

	// 可用区
	Data *ZoneInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateZoneReply) Descriptor deprecated

func (*CreateZoneReply) Descriptor() ([]byte, []int)

Deprecated: Use CreateZoneReply.ProtoReflect.Descriptor instead.

func (*CreateZoneReply) GetData

func (x *CreateZoneReply) GetData() *ZoneInfo

func (*CreateZoneReply) ProtoMessage

func (*CreateZoneReply) ProtoMessage()

func (*CreateZoneReply) ProtoReflect

func (x *CreateZoneReply) ProtoReflect() protoreflect.Message

func (*CreateZoneReply) Reset

func (x *CreateZoneReply) Reset()

func (*CreateZoneReply) String

func (x *CreateZoneReply) String() string

type CreateZoneRequest

type CreateZoneRequest struct {

	// 可用区名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 可用区代码
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// 地区名称
	RegionName string `protobuf:"bytes,3,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"`
	// 地区代码
	RegionCode string `protobuf:"bytes,4,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
	// 环境
	Env string `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateZoneRequest) Descriptor deprecated

func (*CreateZoneRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateZoneRequest.ProtoReflect.Descriptor instead.

func (*CreateZoneRequest) GetCode

func (x *CreateZoneRequest) GetCode() string

func (*CreateZoneRequest) GetEnv

func (x *CreateZoneRequest) GetEnv() string

func (*CreateZoneRequest) GetName

func (x *CreateZoneRequest) GetName() string

func (*CreateZoneRequest) GetRegionCode

func (x *CreateZoneRequest) GetRegionCode() string

func (*CreateZoneRequest) GetRegionName

func (x *CreateZoneRequest) GetRegionName() string

func (*CreateZoneRequest) ProtoMessage

func (*CreateZoneRequest) ProtoMessage()

func (*CreateZoneRequest) ProtoReflect

func (x *CreateZoneRequest) ProtoReflect() protoreflect.Message

func (*CreateZoneRequest) Reset

func (x *CreateZoneRequest) Reset()

func (*CreateZoneRequest) String

func (x *CreateZoneRequest) String() string

type DeleteZoneReply

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

func (*DeleteZoneReply) Descriptor deprecated

func (*DeleteZoneReply) Descriptor() ([]byte, []int)

Deprecated: Use DeleteZoneReply.ProtoReflect.Descriptor instead.

func (*DeleteZoneReply) ProtoMessage

func (*DeleteZoneReply) ProtoMessage()

func (*DeleteZoneReply) ProtoReflect

func (x *DeleteZoneReply) ProtoReflect() protoreflect.Message

func (*DeleteZoneReply) Reset

func (x *DeleteZoneReply) Reset()

func (*DeleteZoneReply) String

func (x *DeleteZoneReply) String() string

type DeleteZoneRequest

type DeleteZoneRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteZoneRequest) Descriptor deprecated

func (*DeleteZoneRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteZoneRequest.ProtoReflect.Descriptor instead.

func (*DeleteZoneRequest) GetId

func (x *DeleteZoneRequest) GetId() int32

func (*DeleteZoneRequest) ProtoMessage

func (*DeleteZoneRequest) ProtoMessage()

func (*DeleteZoneRequest) ProtoReflect

func (x *DeleteZoneRequest) ProtoReflect() protoreflect.Message

func (*DeleteZoneRequest) Reset

func (x *DeleteZoneRequest) Reset()

func (*DeleteZoneRequest) String

func (x *DeleteZoneRequest) String() string

type DisableZoneReply

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

func (*DisableZoneReply) Descriptor deprecated

func (*DisableZoneReply) Descriptor() ([]byte, []int)

Deprecated: Use DisableZoneReply.ProtoReflect.Descriptor instead.

func (*DisableZoneReply) ProtoMessage

func (*DisableZoneReply) ProtoMessage()

func (*DisableZoneReply) ProtoReflect

func (x *DisableZoneReply) ProtoReflect() protoreflect.Message

func (*DisableZoneReply) Reset

func (x *DisableZoneReply) Reset()

func (*DisableZoneReply) String

func (x *DisableZoneReply) String() string

type DisableZoneRequest

type DisableZoneRequest struct {

	// 可用区ID
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 备注
	Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"`
	// contains filtered or unexported fields
}

func (*DisableZoneRequest) Descriptor deprecated

func (*DisableZoneRequest) Descriptor() ([]byte, []int)

Deprecated: Use DisableZoneRequest.ProtoReflect.Descriptor instead.

func (*DisableZoneRequest) GetId

func (x *DisableZoneRequest) GetId() int32

func (*DisableZoneRequest) GetRemark

func (x *DisableZoneRequest) GetRemark() string

func (*DisableZoneRequest) ProtoMessage

func (*DisableZoneRequest) ProtoMessage()

func (*DisableZoneRequest) ProtoReflect

func (x *DisableZoneRequest) ProtoReflect() protoreflect.Message

func (*DisableZoneRequest) Reset

func (x *DisableZoneRequest) Reset()

func (*DisableZoneRequest) String

func (x *DisableZoneRequest) String() string

type GetZoneListReply

type GetZoneListReply struct {
	Pagination *protobuf.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// 可用区列表
	Data []*ZoneInfo `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetZoneListReply) Descriptor deprecated

func (*GetZoneListReply) Descriptor() ([]byte, []int)

Deprecated: Use GetZoneListReply.ProtoReflect.Descriptor instead.

func (*GetZoneListReply) GetData

func (x *GetZoneListReply) GetData() []*ZoneInfo

func (*GetZoneListReply) GetPagination

func (x *GetZoneListReply) GetPagination() *protobuf.Pagination

func (*GetZoneListReply) ProtoMessage

func (*GetZoneListReply) ProtoMessage()

func (*GetZoneListReply) ProtoReflect

func (x *GetZoneListReply) ProtoReflect() protoreflect.Message

func (*GetZoneListReply) Reset

func (x *GetZoneListReply) Reset()

func (*GetZoneListReply) String

func (x *GetZoneListReply) String() string

type GetZoneListRequest

type GetZoneListRequest struct {

	// 分页信息
	Pagination *protobuf.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// 查询条件 env 环境变量
	Env string `protobuf:"bytes,3,opt,name=env,proto3" json:"env,omitempty"`
	// 查询条件 status 状态 1=正常,2=禁用
	Status ZoneInfo_Status `protobuf:"varint,4,opt,name=status,proto3,enum=api.console.resource.ZoneInfo_Status" json:"status,omitempty"`
	// 排序字段
	OrderBy []*OrderBy `protobuf:"bytes,5,rep,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*GetZoneListRequest) Descriptor deprecated

func (*GetZoneListRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetZoneListRequest.ProtoReflect.Descriptor instead.

func (*GetZoneListRequest) GetEnv

func (x *GetZoneListRequest) GetEnv() string

func (*GetZoneListRequest) GetOrderBy

func (x *GetZoneListRequest) GetOrderBy() []*OrderBy

func (*GetZoneListRequest) GetPagination

func (x *GetZoneListRequest) GetPagination() *protobuf.Pagination

func (*GetZoneListRequest) GetStatus

func (x *GetZoneListRequest) GetStatus() ZoneInfo_Status

func (*GetZoneListRequest) ProtoMessage

func (*GetZoneListRequest) ProtoMessage()

func (*GetZoneListRequest) ProtoReflect

func (x *GetZoneListRequest) ProtoReflect() protoreflect.Message

func (*GetZoneListRequest) Reset

func (x *GetZoneListRequest) Reset()

func (*GetZoneListRequest) String

func (x *GetZoneListRequest) String() string

type GetZoneReply

type GetZoneReply struct {

	// 可用区
	Data *ZoneInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetZoneReply) Descriptor deprecated

func (*GetZoneReply) Descriptor() ([]byte, []int)

Deprecated: Use GetZoneReply.ProtoReflect.Descriptor instead.

func (*GetZoneReply) GetData

func (x *GetZoneReply) GetData() *ZoneInfo

func (*GetZoneReply) ProtoMessage

func (*GetZoneReply) ProtoMessage()

func (*GetZoneReply) ProtoReflect

func (x *GetZoneReply) ProtoReflect() protoreflect.Message

func (*GetZoneReply) Reset

func (x *GetZoneReply) Reset()

func (*GetZoneReply) String

func (x *GetZoneReply) String() string

type GetZoneRequest

type GetZoneRequest struct {

	// 可用区ID
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetZoneRequest) Descriptor deprecated

func (*GetZoneRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetZoneRequest.ProtoReflect.Descriptor instead.

func (*GetZoneRequest) GetId

func (x *GetZoneRequest) GetId() int32

func (*GetZoneRequest) ProtoMessage

func (*GetZoneRequest) ProtoMessage()

func (*GetZoneRequest) ProtoReflect

func (x *GetZoneRequest) ProtoReflect() protoreflect.Message

func (*GetZoneRequest) Reset

func (x *GetZoneRequest) Reset()

func (*GetZoneRequest) String

func (x *GetZoneRequest) String() string

type MetadataType

type MetadataType int32
const (
	// 挂起状态
	MetadataType_hang MetadataType = 0
)

func (MetadataType) Descriptor

func (MetadataType) Enum

func (x MetadataType) Enum() *MetadataType

func (MetadataType) EnumDescriptor deprecated

func (MetadataType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MetadataType.Descriptor instead.

func (MetadataType) Number

func (MetadataType) String

func (x MetadataType) String() string

func (MetadataType) Type

type NamespaceApp

type NamespaceApp struct {
	Id             int64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name           string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Alias          string          `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	Type           AppInfo_AppType `protobuf:"varint,4,opt,name=type,proto3,enum=api.console.resource.AppInfo_AppType" json:"type,omitempty"` // 应用类型
	NamespaceId    int64           `protobuf:"varint,5,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	NamespaceName  string          `protobuf:"bytes,6,opt,name=namespace_name,json=namespaceName,proto3" json:"namespace_name,omitempty"`
	NamespaceAlias string          `protobuf:"bytes,7,opt,name=namespace_alias,json=namespaceAlias,proto3" json:"namespace_alias,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceApp) Descriptor deprecated

func (*NamespaceApp) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceApp.ProtoReflect.Descriptor instead.

func (*NamespaceApp) GetAlias

func (x *NamespaceApp) GetAlias() string

func (*NamespaceApp) GetId

func (x *NamespaceApp) GetId() int64

func (*NamespaceApp) GetName

func (x *NamespaceApp) GetName() string

func (*NamespaceApp) GetNamespaceAlias

func (x *NamespaceApp) GetNamespaceAlias() string

func (*NamespaceApp) GetNamespaceId

func (x *NamespaceApp) GetNamespaceId() int64

func (*NamespaceApp) GetNamespaceName

func (x *NamespaceApp) GetNamespaceName() string

func (*NamespaceApp) GetType

func (x *NamespaceApp) GetType() AppInfo_AppType

func (*NamespaceApp) ProtoMessage

func (*NamespaceApp) ProtoMessage()

func (*NamespaceApp) ProtoReflect

func (x *NamespaceApp) ProtoReflect() protoreflect.Message

func (*NamespaceApp) Reset

func (x *NamespaceApp) Reset()

func (*NamespaceApp) String

func (x *NamespaceApp) String() string

type NamespaceAppListReply

type NamespaceAppListReply struct {
	Data []*NamespaceApp `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceAppListReply) Descriptor deprecated

func (*NamespaceAppListReply) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceAppListReply.ProtoReflect.Descriptor instead.

func (*NamespaceAppListReply) GetData

func (x *NamespaceAppListReply) GetData() []*NamespaceApp

func (*NamespaceAppListReply) ProtoMessage

func (*NamespaceAppListReply) ProtoMessage()

func (*NamespaceAppListReply) ProtoReflect

func (x *NamespaceAppListReply) ProtoReflect() protoreflect.Message

func (*NamespaceAppListReply) Reset

func (x *NamespaceAppListReply) Reset()

func (*NamespaceAppListReply) String

func (x *NamespaceAppListReply) String() string

type NamespaceAppListRequest

type NamespaceAppListRequest struct {
	Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceAppListRequest) Descriptor deprecated

func (*NamespaceAppListRequest) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceAppListRequest.ProtoReflect.Descriptor instead.

func (*NamespaceAppListRequest) GetName

func (x *NamespaceAppListRequest) GetName() string

func (*NamespaceAppListRequest) ProtoMessage

func (*NamespaceAppListRequest) ProtoMessage()

func (*NamespaceAppListRequest) ProtoReflect

func (x *NamespaceAppListRequest) ProtoReflect() protoreflect.Message

func (*NamespaceAppListRequest) Reset

func (x *NamespaceAppListRequest) Reset()

func (*NamespaceAppListRequest) String

func (x *NamespaceAppListRequest) String() string

type NamespaceClient

NamespaceClient is the client API for Namespace service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewNamespaceClient

func NewNamespaceClient(cc grpc.ClientConnInterface) NamespaceClient

type NamespaceCreateReply

type NamespaceCreateReply struct {
	Data *NamespaceInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceCreateReply) Descriptor deprecated

func (*NamespaceCreateReply) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceCreateReply.ProtoReflect.Descriptor instead.

func (*NamespaceCreateReply) GetData

func (x *NamespaceCreateReply) GetData() *NamespaceInfo

func (*NamespaceCreateReply) ProtoMessage

func (*NamespaceCreateReply) ProtoMessage()

func (*NamespaceCreateReply) ProtoReflect

func (x *NamespaceCreateReply) ProtoReflect() protoreflect.Message

func (*NamespaceCreateReply) Reset

func (x *NamespaceCreateReply) Reset()

func (*NamespaceCreateReply) String

func (x *NamespaceCreateReply) String() string

type NamespaceCreateRequest

type NamespaceCreateRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Alias       string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceCreateRequest) Descriptor deprecated

func (*NamespaceCreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceCreateRequest.ProtoReflect.Descriptor instead.

func (*NamespaceCreateRequest) GetAlias

func (x *NamespaceCreateRequest) GetAlias() string

func (*NamespaceCreateRequest) GetDescription

func (x *NamespaceCreateRequest) GetDescription() string

func (*NamespaceCreateRequest) GetName

func (x *NamespaceCreateRequest) GetName() string

func (*NamespaceCreateRequest) ProtoMessage

func (*NamespaceCreateRequest) ProtoMessage()

func (*NamespaceCreateRequest) ProtoReflect

func (x *NamespaceCreateRequest) ProtoReflect() protoreflect.Message

func (*NamespaceCreateRequest) Reset

func (x *NamespaceCreateRequest) Reset()

func (*NamespaceCreateRequest) String

func (x *NamespaceCreateRequest) String() string

type NamespaceDeleteReply

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

func (*NamespaceDeleteReply) Descriptor deprecated

func (*NamespaceDeleteReply) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceDeleteReply.ProtoReflect.Descriptor instead.

func (*NamespaceDeleteReply) ProtoMessage

func (*NamespaceDeleteReply) ProtoMessage()

func (*NamespaceDeleteReply) ProtoReflect

func (x *NamespaceDeleteReply) ProtoReflect() protoreflect.Message

func (*NamespaceDeleteReply) Reset

func (x *NamespaceDeleteReply) Reset()

func (*NamespaceDeleteReply) String

func (x *NamespaceDeleteReply) String() string

type NamespaceDeleteRequest

type NamespaceDeleteRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceDeleteRequest) Descriptor deprecated

func (*NamespaceDeleteRequest) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceDeleteRequest.ProtoReflect.Descriptor instead.

func (*NamespaceDeleteRequest) GetId

func (x *NamespaceDeleteRequest) GetId() int64

func (*NamespaceDeleteRequest) ProtoMessage

func (*NamespaceDeleteRequest) ProtoMessage()

func (*NamespaceDeleteRequest) ProtoReflect

func (x *NamespaceDeleteRequest) ProtoReflect() protoreflect.Message

func (*NamespaceDeleteRequest) Reset

func (x *NamespaceDeleteRequest) Reset()

func (*NamespaceDeleteRequest) String

func (x *NamespaceDeleteRequest) String() string

type NamespaceGetReply

type NamespaceGetReply struct {
	Data *NamespaceInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceGetReply) Descriptor deprecated

func (*NamespaceGetReply) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceGetReply.ProtoReflect.Descriptor instead.

func (*NamespaceGetReply) GetData

func (x *NamespaceGetReply) GetData() *NamespaceInfo

func (*NamespaceGetReply) ProtoMessage

func (*NamespaceGetReply) ProtoMessage()

func (*NamespaceGetReply) ProtoReflect

func (x *NamespaceGetReply) ProtoReflect() protoreflect.Message

func (*NamespaceGetReply) Reset

func (x *NamespaceGetReply) Reset()

func (*NamespaceGetReply) String

func (x *NamespaceGetReply) String() string

type NamespaceGetRequest

type NamespaceGetRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceGetRequest) Descriptor deprecated

func (*NamespaceGetRequest) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceGetRequest.ProtoReflect.Descriptor instead.

func (*NamespaceGetRequest) GetId

func (x *NamespaceGetRequest) GetId() string

func (*NamespaceGetRequest) ProtoMessage

func (*NamespaceGetRequest) ProtoMessage()

func (*NamespaceGetRequest) ProtoReflect

func (x *NamespaceGetRequest) ProtoReflect() protoreflect.Message

func (*NamespaceGetRequest) Reset

func (x *NamespaceGetRequest) Reset()

func (*NamespaceGetRequest) String

func (x *NamespaceGetRequest) String() string

type NamespaceHTTPClient

type NamespaceHTTPClient interface {
	Create(ctx context.Context, req *NamespaceCreateRequest, opts ...http.CallOption) (rsp *NamespaceCreateReply, err error)
	Delete(ctx context.Context, req *NamespaceDeleteRequest, opts ...http.CallOption) (rsp *NamespaceDeleteReply, err error)
	Get(ctx context.Context, req *NamespaceGetRequest, opts ...http.CallOption) (rsp *NamespaceGetReply, err error)
	List(ctx context.Context, req *NamespaceListRequest, opts ...http.CallOption) (rsp *NamespaceListReply, err error)
	SimpleList(ctx context.Context, req *NamespaceSimpleListRequest, opts ...http.CallOption) (rsp *NamespaceSimpleListReply, err error)
	Update(ctx context.Context, req *NamespaceUpdateRequest, opts ...http.CallOption) (rsp *NamespaceUpdateReply, err error)
}

func NewNamespaceHTTPClient

func NewNamespaceHTTPClient(client *http.Client) NamespaceHTTPClient

type NamespaceHTTPClientImpl

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

func (*NamespaceHTTPClientImpl) Create

func (*NamespaceHTTPClientImpl) Delete

func (*NamespaceHTTPClientImpl) Get

func (*NamespaceHTTPClientImpl) List

func (*NamespaceHTTPClientImpl) SimpleList

func (*NamespaceHTTPClientImpl) Update

type NamespaceInfo

type NamespaceInfo struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Alias       string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Running     int32  `protobuf:"varint,7,opt,name=running,proto3" json:"running,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceInfo) Descriptor deprecated

func (*NamespaceInfo) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceInfo.ProtoReflect.Descriptor instead.

func (*NamespaceInfo) GetAlias

func (x *NamespaceInfo) GetAlias() string

func (*NamespaceInfo) GetCreatedAt

func (x *NamespaceInfo) GetCreatedAt() string

func (*NamespaceInfo) GetDescription

func (x *NamespaceInfo) GetDescription() string

func (*NamespaceInfo) GetId

func (x *NamespaceInfo) GetId() int64

func (*NamespaceInfo) GetName

func (x *NamespaceInfo) GetName() string

func (*NamespaceInfo) GetRunning

func (x *NamespaceInfo) GetRunning() int32

func (*NamespaceInfo) GetUpdatedAt

func (x *NamespaceInfo) GetUpdatedAt() string

func (*NamespaceInfo) ProtoMessage

func (*NamespaceInfo) ProtoMessage()

func (*NamespaceInfo) ProtoReflect

func (x *NamespaceInfo) ProtoReflect() protoreflect.Message

func (*NamespaceInfo) Reset

func (x *NamespaceInfo) Reset()

func (*NamespaceInfo) String

func (x *NamespaceInfo) String() string

type NamespaceListReply

type NamespaceListReply struct {
	Pagination *protobuf.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Data       []*NamespaceInfo     `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceListReply) Descriptor deprecated

func (*NamespaceListReply) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceListReply.ProtoReflect.Descriptor instead.

func (*NamespaceListReply) GetData

func (x *NamespaceListReply) GetData() []*NamespaceInfo

func (*NamespaceListReply) GetPagination

func (x *NamespaceListReply) GetPagination() *protobuf.Pagination

func (*NamespaceListReply) ProtoMessage

func (*NamespaceListReply) ProtoMessage()

func (*NamespaceListReply) ProtoReflect

func (x *NamespaceListReply) ProtoReflect() protoreflect.Message

func (*NamespaceListReply) Reset

func (x *NamespaceListReply) Reset()

func (*NamespaceListReply) String

func (x *NamespaceListReply) String() string

type NamespaceListRequest

type NamespaceListRequest struct {
	Pagination *protobuf.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Name       string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceListRequest) Descriptor deprecated

func (*NamespaceListRequest) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceListRequest.ProtoReflect.Descriptor instead.

func (*NamespaceListRequest) GetName

func (x *NamespaceListRequest) GetName() string

func (*NamespaceListRequest) GetPagination

func (x *NamespaceListRequest) GetPagination() *protobuf.Pagination

func (*NamespaceListRequest) ProtoMessage

func (*NamespaceListRequest) ProtoMessage()

func (*NamespaceListRequest) ProtoReflect

func (x *NamespaceListRequest) ProtoReflect() protoreflect.Message

func (*NamespaceListRequest) Reset

func (x *NamespaceListRequest) Reset()

func (*NamespaceListRequest) String

func (x *NamespaceListRequest) String() string

type NamespaceServer

NamespaceServer is the server API for Namespace service. All implementations must embed UnimplementedNamespaceServer for forward compatibility.

type NamespaceSimple

type NamespaceSimple struct {
	Id    int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceSimple) Descriptor deprecated

func (*NamespaceSimple) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceSimple.ProtoReflect.Descriptor instead.

func (*NamespaceSimple) GetAlias

func (x *NamespaceSimple) GetAlias() string

func (*NamespaceSimple) GetId

func (x *NamespaceSimple) GetId() int64

func (*NamespaceSimple) GetName

func (x *NamespaceSimple) GetName() string

func (*NamespaceSimple) ProtoMessage

func (*NamespaceSimple) ProtoMessage()

func (*NamespaceSimple) ProtoReflect

func (x *NamespaceSimple) ProtoReflect() protoreflect.Message

func (*NamespaceSimple) Reset

func (x *NamespaceSimple) Reset()

func (*NamespaceSimple) String

func (x *NamespaceSimple) String() string

type NamespaceSimpleListReply

type NamespaceSimpleListReply struct {
	Data []*NamespaceSimple `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceSimpleListReply) Descriptor deprecated

func (*NamespaceSimpleListReply) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceSimpleListReply.ProtoReflect.Descriptor instead.

func (*NamespaceSimpleListReply) GetData

func (x *NamespaceSimpleListReply) GetData() []*NamespaceSimple

func (*NamespaceSimpleListReply) ProtoMessage

func (*NamespaceSimpleListReply) ProtoMessage()

func (*NamespaceSimpleListReply) ProtoReflect

func (x *NamespaceSimpleListReply) ProtoReflect() protoreflect.Message

func (*NamespaceSimpleListReply) Reset

func (x *NamespaceSimpleListReply) Reset()

func (*NamespaceSimpleListReply) String

func (x *NamespaceSimpleListReply) String() string

type NamespaceSimpleListRequest

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

func (*NamespaceSimpleListRequest) Descriptor deprecated

func (*NamespaceSimpleListRequest) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceSimpleListRequest.ProtoReflect.Descriptor instead.

func (*NamespaceSimpleListRequest) ProtoMessage

func (*NamespaceSimpleListRequest) ProtoMessage()

func (*NamespaceSimpleListRequest) ProtoReflect

func (*NamespaceSimpleListRequest) Reset

func (x *NamespaceSimpleListRequest) Reset()

func (*NamespaceSimpleListRequest) String

func (x *NamespaceSimpleListRequest) String() string

type NamespaceUpdateReply

type NamespaceUpdateReply struct {
	Data *NamespaceInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceUpdateReply) Descriptor deprecated

func (*NamespaceUpdateReply) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceUpdateReply.ProtoReflect.Descriptor instead.

func (*NamespaceUpdateReply) GetData

func (x *NamespaceUpdateReply) GetData() *NamespaceInfo

func (*NamespaceUpdateReply) ProtoMessage

func (*NamespaceUpdateReply) ProtoMessage()

func (*NamespaceUpdateReply) ProtoReflect

func (x *NamespaceUpdateReply) ProtoReflect() protoreflect.Message

func (*NamespaceUpdateReply) Reset

func (x *NamespaceUpdateReply) Reset()

func (*NamespaceUpdateReply) String

func (x *NamespaceUpdateReply) String() string

type NamespaceUpdateRequest

type NamespaceUpdateRequest struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Alias       string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceUpdateRequest) Descriptor deprecated

func (*NamespaceUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use NamespaceUpdateRequest.ProtoReflect.Descriptor instead.

func (*NamespaceUpdateRequest) GetAlias

func (x *NamespaceUpdateRequest) GetAlias() string

func (*NamespaceUpdateRequest) GetDescription

func (x *NamespaceUpdateRequest) GetDescription() string

func (*NamespaceUpdateRequest) GetId

func (x *NamespaceUpdateRequest) GetId() int64

func (*NamespaceUpdateRequest) GetName

func (x *NamespaceUpdateRequest) GetName() string

func (*NamespaceUpdateRequest) ProtoMessage

func (*NamespaceUpdateRequest) ProtoMessage()

func (*NamespaceUpdateRequest) ProtoReflect

func (x *NamespaceUpdateRequest) ProtoReflect() protoreflect.Message

func (*NamespaceUpdateRequest) Reset

func (x *NamespaceUpdateRequest) Reset()

func (*NamespaceUpdateRequest) String

func (x *NamespaceUpdateRequest) String() string

type NodeClient

type NodeClient interface {
	List(ctx context.Context, in *NodeListRequest, opts ...grpc.CallOption) (*NodeListReply, error)
	Create(ctx context.Context, in *CreateNodeRequest, opts ...grpc.CallOption) (*CreateNodeReply, error)
	Update(ctx context.Context, in *UpdateNodeRequest, opts ...grpc.CallOption) (*UpdateNodeReply, error)
}

NodeClient is the client API for Node service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

节点服务

节点服务提供可用部署节点相关的接口

func NewNodeClient

func NewNodeClient(cc grpc.ClientConnInterface) NodeClient

type NodeHTTPClient

type NodeHTTPClient interface {
	Create(ctx context.Context, req *CreateNodeRequest, opts ...http.CallOption) (rsp *CreateNodeReply, err error)
	List(ctx context.Context, req *NodeListRequest, opts ...http.CallOption) (rsp *NodeListReply, err error)
	Update(ctx context.Context, req *UpdateNodeRequest, opts ...http.CallOption) (rsp *UpdateNodeReply, err error)
}

func NewNodeHTTPClient

func NewNodeHTTPClient(client *http.Client) NodeHTTPClient

type NodeHTTPClientImpl

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

func (*NodeHTTPClientImpl) Create

func (*NodeHTTPClientImpl) List

func (*NodeHTTPClientImpl) Update

type NodeInfo

type NodeInfo struct {

	// 节点ID
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 节点名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 节点IP
	Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	// Agent状态
	Agent *Agent `protobuf:"bytes,4,opt,name=agent,proto3" json:"agent,omitempty"`
	// 节点创建时间
	CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 节点更新时间
	UpdatedAt int64 `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// 可用区ID
	ZoneId int32 `protobuf:"varint,7,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// 可用区编码
	ZoneCode string `protobuf:"bytes,8,opt,name=zone_code,json=zoneCode,proto3" json:"zone_code,omitempty"`
	// 可用区名称
	ZoneName string `protobuf:"bytes,9,opt,name=zone_name,json=zoneName,proto3" json:"zone_name,omitempty"`
	// 地区
	RegionCode string `protobuf:"bytes,10,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
	// 地区名称
	RegionName string `protobuf:"bytes,11,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"`
	// 环境变量
	Env string `protobuf:"bytes,12,opt,name=env,proto3" json:"env,omitempty"`
	// 自动上报信息
	AutoDetect bool `protobuf:"varint,13,opt,name=auto_detect,json=autoDetect,proto3" json:"auto_detect,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeInfo) Descriptor deprecated

func (*NodeInfo) Descriptor() ([]byte, []int)

Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.

func (*NodeInfo) GetAgent

func (x *NodeInfo) GetAgent() *Agent

func (*NodeInfo) GetAutoDetect

func (x *NodeInfo) GetAutoDetect() bool

func (*NodeInfo) GetCreatedAt

func (x *NodeInfo) GetCreatedAt() int64

func (*NodeInfo) GetEnv

func (x *NodeInfo) GetEnv() string

func (*NodeInfo) GetId

func (x *NodeInfo) GetId() int32

func (*NodeInfo) GetIp

func (x *NodeInfo) GetIp() string

func (*NodeInfo) GetName

func (x *NodeInfo) GetName() string

func (*NodeInfo) GetRegionCode

func (x *NodeInfo) GetRegionCode() string

func (*NodeInfo) GetRegionName

func (x *NodeInfo) GetRegionName() string

func (*NodeInfo) GetUpdatedAt

func (x *NodeInfo) GetUpdatedAt() int64

func (*NodeInfo) GetZoneCode

func (x *NodeInfo) GetZoneCode() string

func (*NodeInfo) GetZoneId

func (x *NodeInfo) GetZoneId() int32

func (*NodeInfo) GetZoneName

func (x *NodeInfo) GetZoneName() string

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) ProtoReflect

func (x *NodeInfo) ProtoReflect() protoreflect.Message

func (*NodeInfo) Reset

func (x *NodeInfo) Reset()

func (*NodeInfo) String

func (x *NodeInfo) String() string

type NodeListReply

type NodeListReply struct {
	Pagination *protobuf.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Data       []*NodeInfo          `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeListReply) Descriptor deprecated

func (*NodeListReply) Descriptor() ([]byte, []int)

Deprecated: Use NodeListReply.ProtoReflect.Descriptor instead.

func (*NodeListReply) GetData

func (x *NodeListReply) GetData() []*NodeInfo

func (*NodeListReply) GetPagination

func (x *NodeListReply) GetPagination() *protobuf.Pagination

func (*NodeListReply) ProtoMessage

func (*NodeListReply) ProtoMessage()

func (*NodeListReply) ProtoReflect

func (x *NodeListReply) ProtoReflect() protoreflect.Message

func (*NodeListReply) Reset

func (x *NodeListReply) Reset()

func (*NodeListReply) String

func (x *NodeListReply) String() string

type NodeListRequest

type NodeListRequest struct {
	Pagination *protobuf.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeListRequest) Descriptor deprecated

func (*NodeListRequest) Descriptor() ([]byte, []int)

Deprecated: Use NodeListRequest.ProtoReflect.Descriptor instead.

func (*NodeListRequest) GetPagination

func (x *NodeListRequest) GetPagination() *protobuf.Pagination

func (*NodeListRequest) ProtoMessage

func (*NodeListRequest) ProtoMessage()

func (*NodeListRequest) ProtoReflect

func (x *NodeListRequest) ProtoReflect() protoreflect.Message

func (*NodeListRequest) Reset

func (x *NodeListRequest) Reset()

func (*NodeListRequest) String

func (x *NodeListRequest) String() string

type NodeServer

type NodeServer interface {
	List(context.Context, *NodeListRequest) (*NodeListReply, error)
	Create(context.Context, *CreateNodeRequest) (*CreateNodeReply, error)
	Update(context.Context, *UpdateNodeRequest) (*UpdateNodeReply, error)
	// contains filtered or unexported methods
}

NodeServer is the server API for Node service. All implementations must embed UnimplementedNodeServer for forward compatibility.

节点服务

节点服务提供可用部署节点相关的接口

type OrderBy

type OrderBy struct {

	// 排序字段
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	// 排序方式 asc: 升序 desc: 降序
	Order string `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

排序

func (*OrderBy) Descriptor deprecated

func (*OrderBy) Descriptor() ([]byte, []int)

Deprecated: Use OrderBy.ProtoReflect.Descriptor instead.

func (*OrderBy) GetField

func (x *OrderBy) GetField() string

func (*OrderBy) GetOrder

func (x *OrderBy) GetOrder() string

func (*OrderBy) ProtoMessage

func (*OrderBy) ProtoMessage()

func (*OrderBy) ProtoReflect

func (x *OrderBy) ProtoReflect() protoreflect.Message

func (*OrderBy) Reset

func (x *OrderBy) Reset()

func (*OrderBy) String

func (x *OrderBy) String() string

type SimpleListReply

type SimpleListReply struct {
	Data []*SimpleZoneInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SimpleListReply) Descriptor deprecated

func (*SimpleListReply) Descriptor() ([]byte, []int)

Deprecated: Use SimpleListReply.ProtoReflect.Descriptor instead.

func (*SimpleListReply) GetData

func (x *SimpleListReply) GetData() []*SimpleZoneInfo

func (*SimpleListReply) ProtoMessage

func (*SimpleListReply) ProtoMessage()

func (*SimpleListReply) ProtoReflect

func (x *SimpleListReply) ProtoReflect() protoreflect.Message

func (*SimpleListReply) Reset

func (x *SimpleListReply) Reset()

func (*SimpleListReply) String

func (x *SimpleListReply) String() string

type SimpleListRequest

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

func (*SimpleListRequest) Descriptor deprecated

func (*SimpleListRequest) Descriptor() ([]byte, []int)

Deprecated: Use SimpleListRequest.ProtoReflect.Descriptor instead.

func (*SimpleListRequest) ProtoMessage

func (*SimpleListRequest) ProtoMessage()

func (*SimpleListRequest) ProtoReflect

func (x *SimpleListRequest) ProtoReflect() protoreflect.Message

func (*SimpleListRequest) Reset

func (x *SimpleListRequest) Reset()

func (*SimpleListRequest) String

func (x *SimpleListRequest) String() string

type SimpleZoneInfo

type SimpleZoneInfo struct {

	// 可用区ID
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 可用区名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 可用区代码
	Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

简单的可用区信息(主要用来枚举展示)

func (*SimpleZoneInfo) Descriptor deprecated

func (*SimpleZoneInfo) Descriptor() ([]byte, []int)

Deprecated: Use SimpleZoneInfo.ProtoReflect.Descriptor instead.

func (*SimpleZoneInfo) GetCode

func (x *SimpleZoneInfo) GetCode() string

func (*SimpleZoneInfo) GetId

func (x *SimpleZoneInfo) GetId() int32

func (*SimpleZoneInfo) GetName

func (x *SimpleZoneInfo) GetName() string

func (*SimpleZoneInfo) ProtoMessage

func (*SimpleZoneInfo) ProtoMessage()

func (*SimpleZoneInfo) ProtoReflect

func (x *SimpleZoneInfo) ProtoReflect() protoreflect.Message

func (*SimpleZoneInfo) Reset

func (x *SimpleZoneInfo) Reset()

func (*SimpleZoneInfo) String

func (x *SimpleZoneInfo) String() string

type UnimplementedAppServer

type UnimplementedAppServer struct{}

UnimplementedAppServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAppServer) Create

func (UnimplementedAppServer) Delete

func (UnimplementedAppServer) Get

func (UnimplementedAppServer) List

func (UnimplementedAppServer) NamespaceAppList

func (UnimplementedAppServer) Update

type UnimplementedNamespaceServer

type UnimplementedNamespaceServer struct{}

UnimplementedNamespaceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedNamespaceServer) Create

func (UnimplementedNamespaceServer) Delete

func (UnimplementedNamespaceServer) Get

func (UnimplementedNamespaceServer) List

func (UnimplementedNamespaceServer) Update

type UnimplementedNodeServer

type UnimplementedNodeServer struct{}

UnimplementedNodeServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedNodeServer) Create

func (UnimplementedNodeServer) List

func (UnimplementedNodeServer) Update

type UnimplementedZoneServer

type UnimplementedZoneServer struct{}

UnimplementedZoneServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedZoneServer) Create

func (UnimplementedZoneServer) Delete

func (UnimplementedZoneServer) Disable

func (UnimplementedZoneServer) Get

func (UnimplementedZoneServer) List

func (UnimplementedZoneServer) SimpleList

func (UnimplementedZoneServer) Update

type UnsafeAppServer

type UnsafeAppServer interface {
	// contains filtered or unexported methods
}

UnsafeAppServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AppServer will result in compilation errors.

type UnsafeNamespaceServer

type UnsafeNamespaceServer interface {
	// contains filtered or unexported methods
}

UnsafeNamespaceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NamespaceServer will result in compilation errors.

type UnsafeNodeServer

type UnsafeNodeServer interface {
	// contains filtered or unexported methods
}

UnsafeNodeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeServer will result in compilation errors.

type UnsafeZoneServer

type UnsafeZoneServer interface {
	// contains filtered or unexported methods
}

UnsafeZoneServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ZoneServer will result in compilation errors.

type UpdateNodeReply

type UpdateNodeReply struct {
	Data *NodeInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateNodeReply) Descriptor deprecated

func (*UpdateNodeReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNodeReply.ProtoReflect.Descriptor instead.

func (*UpdateNodeReply) GetData

func (x *UpdateNodeReply) GetData() *NodeInfo

func (*UpdateNodeReply) ProtoMessage

func (*UpdateNodeReply) ProtoMessage()

func (*UpdateNodeReply) ProtoReflect

func (x *UpdateNodeReply) ProtoReflect() protoreflect.Message

func (*UpdateNodeReply) Reset

func (x *UpdateNodeReply) Reset()

func (*UpdateNodeReply) String

func (x *UpdateNodeReply) String() string

type UpdateNodeRequest

type UpdateNodeRequest struct {

	// 节点名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 节点IP
	Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	// Agent自动上报开关
	AutoDetect bool `protobuf:"varint,3,opt,name=auto_detect,json=autoDetect,proto3" json:"auto_detect,omitempty"`
	// 可用区ID
	ZoneId int32 `protobuf:"varint,4,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// 环境变量
	Env string `protobuf:"bytes,5,opt,name=env,proto3" json:"env,omitempty"`
	// 节点ID
	Id int32 `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateNodeRequest) Descriptor deprecated

func (*UpdateNodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNodeRequest.ProtoReflect.Descriptor instead.

func (*UpdateNodeRequest) GetAutoDetect

func (x *UpdateNodeRequest) GetAutoDetect() bool

func (*UpdateNodeRequest) GetEnv

func (x *UpdateNodeRequest) GetEnv() string

func (*UpdateNodeRequest) GetId

func (x *UpdateNodeRequest) GetId() int32

func (*UpdateNodeRequest) GetIp

func (x *UpdateNodeRequest) GetIp() string

func (*UpdateNodeRequest) GetName

func (x *UpdateNodeRequest) GetName() string

func (*UpdateNodeRequest) GetZoneId

func (x *UpdateNodeRequest) GetZoneId() int32

func (*UpdateNodeRequest) ProtoMessage

func (*UpdateNodeRequest) ProtoMessage()

func (*UpdateNodeRequest) ProtoReflect

func (x *UpdateNodeRequest) ProtoReflect() protoreflect.Message

func (*UpdateNodeRequest) Reset

func (x *UpdateNodeRequest) Reset()

func (*UpdateNodeRequest) String

func (x *UpdateNodeRequest) String() string

type UpdateZoneReply

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

func (*UpdateZoneReply) Descriptor deprecated

func (*UpdateZoneReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdateZoneReply.ProtoReflect.Descriptor instead.

func (*UpdateZoneReply) ProtoMessage

func (*UpdateZoneReply) ProtoMessage()

func (*UpdateZoneReply) ProtoReflect

func (x *UpdateZoneReply) ProtoReflect() protoreflect.Message

func (*UpdateZoneReply) Reset

func (x *UpdateZoneReply) Reset()

func (*UpdateZoneReply) String

func (x *UpdateZoneReply) String() string

type UpdateZoneRequest

type UpdateZoneRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 可用区名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 可用区代码
	Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// 地区名称
	RegionName string `protobuf:"bytes,4,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"`
	// 地区代码
	RegionCode string `protobuf:"bytes,5,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
	// 环境
	Env string `protobuf:"bytes,6,opt,name=env,proto3" json:"env,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateZoneRequest) Descriptor deprecated

func (*UpdateZoneRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateZoneRequest.ProtoReflect.Descriptor instead.

func (*UpdateZoneRequest) GetCode

func (x *UpdateZoneRequest) GetCode() string

func (*UpdateZoneRequest) GetEnv

func (x *UpdateZoneRequest) GetEnv() string

func (*UpdateZoneRequest) GetId

func (x *UpdateZoneRequest) GetId() int32

func (*UpdateZoneRequest) GetName

func (x *UpdateZoneRequest) GetName() string

func (*UpdateZoneRequest) GetRegionCode

func (x *UpdateZoneRequest) GetRegionCode() string

func (*UpdateZoneRequest) GetRegionName

func (x *UpdateZoneRequest) GetRegionName() string

func (*UpdateZoneRequest) ProtoMessage

func (*UpdateZoneRequest) ProtoMessage()

func (*UpdateZoneRequest) ProtoReflect

func (x *UpdateZoneRequest) ProtoReflect() protoreflect.Message

func (*UpdateZoneRequest) Reset

func (x *UpdateZoneRequest) Reset()

func (*UpdateZoneRequest) String

func (x *UpdateZoneRequest) String() string

type ZoneClient

type ZoneClient interface {
	// List returns a list of zones.
	//
	// The list is sorted by zone id.
	List(ctx context.Context, in *GetZoneListRequest, opts ...grpc.CallOption) (*GetZoneListReply, error)
	// SimpleList returns a simple-list of zones.
	//
	// The list is sorted by zone create time.
	SimpleList(ctx context.Context, in *SimpleListRequest, opts ...grpc.CallOption) (*SimpleListReply, error)
	// Get returns the zone.
	//
	// Query parameter "id" is required.
	// Example: /api/console/zone/1
	Get(ctx context.Context, in *GetZoneRequest, opts ...grpc.CallOption) (*GetZoneReply, error)
	// Create creates a new zone.
	//
	// ...
	Create(ctx context.Context, in *CreateZoneRequest, opts ...grpc.CallOption) (*CreateZoneReply, error)
	// Update updates the zone.
	//
	// ...
	Update(ctx context.Context, in *UpdateZoneRequest, opts ...grpc.CallOption) (*UpdateZoneReply, error)
	// Disable disables the zone.
	//
	// ...
	Disable(ctx context.Context, in *DisableZoneRequest, opts ...grpc.CallOption) (*DisableZoneReply, error)
	// Delete deletes the zone.
	//
	// ...
	Delete(ctx context.Context, in *DeleteZoneRequest, opts ...grpc.CallOption) (*DeleteZoneReply, error)
}

ZoneClient is the client API for Zone service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

ZoneService is the resource `data-center` definition.

version: v1

func NewZoneClient

func NewZoneClient(cc grpc.ClientConnInterface) ZoneClient

type ZoneHTTPClient

type ZoneHTTPClient interface {
	Create(ctx context.Context, req *CreateZoneRequest, opts ...http.CallOption) (rsp *CreateZoneReply, err error)
	Delete(ctx context.Context, req *DeleteZoneRequest, opts ...http.CallOption) (rsp *DeleteZoneReply, err error)
	Disable(ctx context.Context, req *DisableZoneRequest, opts ...http.CallOption) (rsp *DisableZoneReply, err error)
	Get(ctx context.Context, req *GetZoneRequest, opts ...http.CallOption) (rsp *GetZoneReply, err error)
	List(ctx context.Context, req *GetZoneListRequest, opts ...http.CallOption) (rsp *GetZoneListReply, err error)
	SimpleList(ctx context.Context, req *SimpleListRequest, opts ...http.CallOption) (rsp *SimpleListReply, err error)
	Update(ctx context.Context, req *UpdateZoneRequest, opts ...http.CallOption) (rsp *UpdateZoneReply, err error)
}

func NewZoneHTTPClient

func NewZoneHTTPClient(client *http.Client) ZoneHTTPClient

type ZoneHTTPClientImpl

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

func (*ZoneHTTPClientImpl) Create

func (*ZoneHTTPClientImpl) Delete

func (*ZoneHTTPClientImpl) Disable

func (*ZoneHTTPClientImpl) Get

func (*ZoneHTTPClientImpl) List

func (*ZoneHTTPClientImpl) SimpleList

func (*ZoneHTTPClientImpl) Update

type ZoneHTTPServer

type ZoneHTTPServer interface {
	// Create Create creates a new zone.
	//
	// ...
	Create(context.Context, *CreateZoneRequest) (*CreateZoneReply, error)
	// Delete Delete deletes the zone.
	//
	// ...
	Delete(context.Context, *DeleteZoneRequest) (*DeleteZoneReply, error)
	// Disable Disable disables the zone.
	//
	// ...
	Disable(context.Context, *DisableZoneRequest) (*DisableZoneReply, error)
	// Get Get returns the zone.
	//
	// Query parameter "id" is required.
	// Example: /api/console/zone/1
	Get(context.Context, *GetZoneRequest) (*GetZoneReply, error)
	// List List returns a list of zones.
	//
	// The list is sorted by zone id.
	List(context.Context, *GetZoneListRequest) (*GetZoneListReply, error)
	// SimpleList SimpleList returns a simple-list of zones.
	//
	// The list is sorted by zone create time.
	SimpleList(context.Context, *SimpleListRequest) (*SimpleListReply, error)
	// Update Update updates the zone.
	//
	// ...
	Update(context.Context, *UpdateZoneRequest) (*UpdateZoneReply, error)
}

type ZoneInfo

type ZoneInfo struct {

	// 可用区ID
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 可用区名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// 可用区代码
	Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	// 地区名称
	RegionName string `protobuf:"bytes,4,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"`
	// 地区代码
	RegionCode string `protobuf:"bytes,5,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
	// 环境
	Env string `protobuf:"bytes,6,opt,name=env,proto3" json:"env,omitempty"`
	// 状态
	Status ZoneInfo_Status `protobuf:"varint,7,opt,name=status,proto3,enum=api.console.resource.ZoneInfo_Status" json:"status,omitempty"`
	// 创建时间
	CreatedAt string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// 更新时间
	UpdatedAt string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

可用区

func (*ZoneInfo) Descriptor deprecated

func (*ZoneInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZoneInfo.ProtoReflect.Descriptor instead.

func (*ZoneInfo) GetCode

func (x *ZoneInfo) GetCode() string

func (*ZoneInfo) GetCreatedAt

func (x *ZoneInfo) GetCreatedAt() string

func (*ZoneInfo) GetEnv

func (x *ZoneInfo) GetEnv() string

func (*ZoneInfo) GetId

func (x *ZoneInfo) GetId() int32

func (*ZoneInfo) GetName

func (x *ZoneInfo) GetName() string

func (*ZoneInfo) GetRegionCode

func (x *ZoneInfo) GetRegionCode() string

func (*ZoneInfo) GetRegionName

func (x *ZoneInfo) GetRegionName() string

func (*ZoneInfo) GetStatus

func (x *ZoneInfo) GetStatus() ZoneInfo_Status

func (*ZoneInfo) GetUpdatedAt

func (x *ZoneInfo) GetUpdatedAt() string

func (*ZoneInfo) ProtoMessage

func (*ZoneInfo) ProtoMessage()

func (*ZoneInfo) ProtoReflect

func (x *ZoneInfo) ProtoReflect() protoreflect.Message

func (*ZoneInfo) Reset

func (x *ZoneInfo) Reset()

func (*ZoneInfo) String

func (x *ZoneInfo) String() string

type ZoneInfo_Status

type ZoneInfo_Status int32

状态

const (
	// 未知
	ZoneInfo_UNKNOWN ZoneInfo_Status = 0
	// 正常
	ZoneInfo_ENABLED ZoneInfo_Status = 1
	// 禁用
	ZoneInfo_DISABLED ZoneInfo_Status = 2
)

func (ZoneInfo_Status) Descriptor

func (ZoneInfo_Status) Enum

func (x ZoneInfo_Status) Enum() *ZoneInfo_Status

func (ZoneInfo_Status) EnumDescriptor deprecated

func (ZoneInfo_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use ZoneInfo_Status.Descriptor instead.

func (ZoneInfo_Status) Number

func (ZoneInfo_Status) String

func (x ZoneInfo_Status) String() string

func (ZoneInfo_Status) Type

type ZoneServer

type ZoneServer interface {
	// List returns a list of zones.
	//
	// The list is sorted by zone id.
	List(context.Context, *GetZoneListRequest) (*GetZoneListReply, error)
	// SimpleList returns a simple-list of zones.
	//
	// The list is sorted by zone create time.
	SimpleList(context.Context, *SimpleListRequest) (*SimpleListReply, error)
	// Get returns the zone.
	//
	// Query parameter "id" is required.
	// Example: /api/console/zone/1
	Get(context.Context, *GetZoneRequest) (*GetZoneReply, error)
	// Create creates a new zone.
	//
	// ...
	Create(context.Context, *CreateZoneRequest) (*CreateZoneReply, error)
	// Update updates the zone.
	//
	// ...
	Update(context.Context, *UpdateZoneRequest) (*UpdateZoneReply, error)
	// Disable disables the zone.
	//
	// ...
	Disable(context.Context, *DisableZoneRequest) (*DisableZoneReply, error)
	// Delete deletes the zone.
	//
	// ...
	Delete(context.Context, *DeleteZoneRequest) (*DeleteZoneReply, error)
	// contains filtered or unexported methods
}

ZoneServer is the server API for Zone service. All implementations must embed UnimplementedZoneServer for forward compatibility.

ZoneService is the resource `data-center` definition.

version: v1

Jump to

Keyboard shortcuts

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