Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAppHTTPServer(s *http.Server, srv AppHTTPServer)
- func RegisterAppServer(s grpc.ServiceRegistrar, srv AppServer)
- func RegisterNamespaceHTTPServer(s *http.Server, srv NamespaceHTTPServer)
- func RegisterNamespaceServer(s grpc.ServiceRegistrar, srv NamespaceServer)
- func RegisterNodeHTTPServer(s *http.Server, srv NodeHTTPServer)
- func RegisterNodeServer(s grpc.ServiceRegistrar, srv NodeServer)
- func RegisterZoneHTTPServer(s *http.Server, srv ZoneHTTPServer)
- func RegisterZoneServer(s grpc.ServiceRegistrar, srv ZoneServer)
- type Agent
- func (*Agent) Descriptor() ([]byte, []int)deprecated
- func (x *Agent) GetHeartbeatTime() int64
- func (x *Agent) GetType() AgentType
- func (x *Agent) GetVersion() string
- func (*Agent) ProtoMessage()
- func (x *Agent) ProtoReflect() protoreflect.Message
- func (x *Agent) Reset()
- func (x *Agent) String() string
- type AgentType
- type AppClient
- type AppCreateReply
- type AppCreateRequest
- type AppDeleteReply
- type AppDeleteRequest
- type AppGetReply
- type AppGetRequest
- type AppHTTPClient
- type AppHTTPClientImpl
- func (c *AppHTTPClientImpl) Create(ctx context.Context, in *AppCreateRequest, opts ...http.CallOption) (*AppCreateReply, error)
- func (c *AppHTTPClientImpl) Delete(ctx context.Context, in *AppDeleteRequest, opts ...http.CallOption) (*AppDeleteReply, error)
- func (c *AppHTTPClientImpl) Get(ctx context.Context, in *AppGetRequest, opts ...http.CallOption) (*AppGetReply, error)
- func (c *AppHTTPClientImpl) List(ctx context.Context, in *AppListRequest, opts ...http.CallOption) (*AppListReply, error)
- func (c *AppHTTPClientImpl) NamespaceAppList(ctx context.Context, in *NamespaceAppListRequest, opts ...http.CallOption) (*NamespaceAppListReply, error)
- func (c *AppHTTPClientImpl) Update(ctx context.Context, in *AppUpdateRequest, opts ...http.CallOption) (*AppUpdateReply, error)
- type AppHTTPServer
- type AppInfo
- func (*AppInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AppInfo) GetAlias() string
- func (x *AppInfo) GetCreatedAt() int64
- func (x *AppInfo) GetDescription() string
- func (x *AppInfo) GetIcon() string
- func (x *AppInfo) GetId() int64
- func (x *AppInfo) GetName() string
- func (x *AppInfo) GetNamespaceId() int64
- func (x *AppInfo) GetPorts() []*AppInfo_AppPort
- func (x *AppInfo) GetRepos() []string
- func (x *AppInfo) GetType() AppInfo_AppType
- func (x *AppInfo) GetUpdatedAt() int64
- func (x *AppInfo) GetUsers() []string
- func (*AppInfo) ProtoMessage()
- func (x *AppInfo) ProtoReflect() protoreflect.Message
- func (x *AppInfo) Reset()
- func (x *AppInfo) String() string
- type AppInfo_AppPort
- func (*AppInfo_AppPort) Descriptor() ([]byte, []int)deprecated
- func (x *AppInfo_AppPort) GetPort() uint32
- func (x *AppInfo_AppPort) GetProtocol() AppInfo_AppPort_Protocol
- func (x *AppInfo_AppPort) GetRemark() string
- func (*AppInfo_AppPort) ProtoMessage()
- func (x *AppInfo_AppPort) ProtoReflect() protoreflect.Message
- func (x *AppInfo_AppPort) Reset()
- func (x *AppInfo_AppPort) String() string
- type AppInfo_AppPort_Protocol
- func (AppInfo_AppPort_Protocol) Descriptor() protoreflect.EnumDescriptor
- func (x AppInfo_AppPort_Protocol) Enum() *AppInfo_AppPort_Protocol
- func (AppInfo_AppPort_Protocol) EnumDescriptor() ([]byte, []int)deprecated
- func (x AppInfo_AppPort_Protocol) Number() protoreflect.EnumNumber
- func (x AppInfo_AppPort_Protocol) String() string
- func (AppInfo_AppPort_Protocol) Type() protoreflect.EnumType
- type AppInfo_AppType
- func (AppInfo_AppType) Descriptor() protoreflect.EnumDescriptor
- func (x AppInfo_AppType) Enum() *AppInfo_AppType
- func (AppInfo_AppType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AppInfo_AppType) Number() protoreflect.EnumNumber
- func (x AppInfo_AppType) String() string
- func (AppInfo_AppType) Type() protoreflect.EnumType
- type AppListReply
- func (*AppListReply) Descriptor() ([]byte, []int)deprecated
- func (x *AppListReply) GetData() []*AppInfo
- func (x *AppListReply) GetPagination() *protobuf.Pagination
- func (*AppListReply) ProtoMessage()
- func (x *AppListReply) ProtoReflect() protoreflect.Message
- func (x *AppListReply) Reset()
- func (x *AppListReply) String() string
- type AppListRequest
- func (*AppListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AppListRequest) GetName() string
- func (x *AppListRequest) GetNamespaceId() int64
- func (x *AppListRequest) GetPagination() *protobuf.Pagination
- func (*AppListRequest) ProtoMessage()
- func (x *AppListRequest) ProtoReflect() protoreflect.Message
- func (x *AppListRequest) Reset()
- func (x *AppListRequest) String() string
- type AppServer
- type AppUpdateReply
- type AppUpdateRequest
- type CreateNodeReply
- type CreateNodeRequest
- func (*CreateNodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNodeRequest) GetAutoDetect() bool
- func (x *CreateNodeRequest) GetEnv() string
- func (x *CreateNodeRequest) GetIp() string
- func (x *CreateNodeRequest) GetName() string
- func (x *CreateNodeRequest) GetZoneId() int32
- func (*CreateNodeRequest) ProtoMessage()
- func (x *CreateNodeRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNodeRequest) Reset()
- func (x *CreateNodeRequest) String() string
- type CreateZoneReply
- type CreateZoneRequest
- func (*CreateZoneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateZoneRequest) GetCode() string
- func (x *CreateZoneRequest) GetEnv() string
- func (x *CreateZoneRequest) GetName() string
- func (x *CreateZoneRequest) GetRegionCode() string
- func (x *CreateZoneRequest) GetRegionName() string
- func (*CreateZoneRequest) ProtoMessage()
- func (x *CreateZoneRequest) ProtoReflect() protoreflect.Message
- func (x *CreateZoneRequest) Reset()
- func (x *CreateZoneRequest) String() string
- type DeleteZoneReply
- type DeleteZoneRequest
- type DisableZoneReply
- type DisableZoneRequest
- func (*DisableZoneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisableZoneRequest) GetId() int32
- func (x *DisableZoneRequest) GetRemark() string
- func (*DisableZoneRequest) ProtoMessage()
- func (x *DisableZoneRequest) ProtoReflect() protoreflect.Message
- func (x *DisableZoneRequest) Reset()
- func (x *DisableZoneRequest) String() string
- type GetZoneListReply
- func (*GetZoneListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetZoneListReply) GetData() []*ZoneInfo
- func (x *GetZoneListReply) GetPagination() *protobuf.Pagination
- func (*GetZoneListReply) ProtoMessage()
- func (x *GetZoneListReply) ProtoReflect() protoreflect.Message
- func (x *GetZoneListReply) Reset()
- func (x *GetZoneListReply) String() string
- type GetZoneListRequest
- func (*GetZoneListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetZoneListRequest) GetEnv() string
- func (x *GetZoneListRequest) GetOrderBy() []*OrderBy
- func (x *GetZoneListRequest) GetPagination() *protobuf.Pagination
- func (x *GetZoneListRequest) GetStatus() ZoneInfo_Status
- func (*GetZoneListRequest) ProtoMessage()
- func (x *GetZoneListRequest) ProtoReflect() protoreflect.Message
- func (x *GetZoneListRequest) Reset()
- func (x *GetZoneListRequest) String() string
- type GetZoneReply
- type GetZoneRequest
- type MetadataType
- func (MetadataType) Descriptor() protoreflect.EnumDescriptor
- func (x MetadataType) Enum() *MetadataType
- func (MetadataType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetadataType) Number() protoreflect.EnumNumber
- func (x MetadataType) String() string
- func (MetadataType) Type() protoreflect.EnumType
- type NamespaceApp
- func (*NamespaceApp) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceApp) GetAlias() string
- func (x *NamespaceApp) GetId() int64
- func (x *NamespaceApp) GetName() string
- func (x *NamespaceApp) GetNamespaceAlias() string
- func (x *NamespaceApp) GetNamespaceId() int64
- func (x *NamespaceApp) GetNamespaceName() string
- func (x *NamespaceApp) GetType() AppInfo_AppType
- func (*NamespaceApp) ProtoMessage()
- func (x *NamespaceApp) ProtoReflect() protoreflect.Message
- func (x *NamespaceApp) Reset()
- func (x *NamespaceApp) String() string
- type NamespaceAppListReply
- func (*NamespaceAppListReply) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceAppListReply) GetData() []*NamespaceApp
- func (*NamespaceAppListReply) ProtoMessage()
- func (x *NamespaceAppListReply) ProtoReflect() protoreflect.Message
- func (x *NamespaceAppListReply) Reset()
- func (x *NamespaceAppListReply) String() string
- type NamespaceAppListRequest
- func (*NamespaceAppListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceAppListRequest) GetName() string
- func (*NamespaceAppListRequest) ProtoMessage()
- func (x *NamespaceAppListRequest) ProtoReflect() protoreflect.Message
- func (x *NamespaceAppListRequest) Reset()
- func (x *NamespaceAppListRequest) String() string
- type NamespaceClient
- type NamespaceCreateReply
- func (*NamespaceCreateReply) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceCreateReply) GetData() *NamespaceInfo
- func (*NamespaceCreateReply) ProtoMessage()
- func (x *NamespaceCreateReply) ProtoReflect() protoreflect.Message
- func (x *NamespaceCreateReply) Reset()
- func (x *NamespaceCreateReply) String() string
- type NamespaceCreateRequest
- func (*NamespaceCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceCreateRequest) GetAlias() string
- func (x *NamespaceCreateRequest) GetDescription() string
- func (x *NamespaceCreateRequest) GetName() string
- func (*NamespaceCreateRequest) ProtoMessage()
- func (x *NamespaceCreateRequest) ProtoReflect() protoreflect.Message
- func (x *NamespaceCreateRequest) Reset()
- func (x *NamespaceCreateRequest) String() string
- type NamespaceDeleteReply
- type NamespaceDeleteRequest
- func (*NamespaceDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceDeleteRequest) GetId() int64
- func (*NamespaceDeleteRequest) ProtoMessage()
- func (x *NamespaceDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *NamespaceDeleteRequest) Reset()
- func (x *NamespaceDeleteRequest) String() string
- type NamespaceGetReply
- func (*NamespaceGetReply) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceGetReply) GetData() *NamespaceInfo
- func (*NamespaceGetReply) ProtoMessage()
- func (x *NamespaceGetReply) ProtoReflect() protoreflect.Message
- func (x *NamespaceGetReply) Reset()
- func (x *NamespaceGetReply) String() string
- type NamespaceGetRequest
- func (*NamespaceGetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceGetRequest) GetId() string
- func (*NamespaceGetRequest) ProtoMessage()
- func (x *NamespaceGetRequest) ProtoReflect() protoreflect.Message
- func (x *NamespaceGetRequest) Reset()
- func (x *NamespaceGetRequest) String() string
- type NamespaceHTTPClient
- type NamespaceHTTPClientImpl
- func (c *NamespaceHTTPClientImpl) Create(ctx context.Context, in *NamespaceCreateRequest, opts ...http.CallOption) (*NamespaceCreateReply, error)
- func (c *NamespaceHTTPClientImpl) Delete(ctx context.Context, in *NamespaceDeleteRequest, opts ...http.CallOption) (*NamespaceDeleteReply, error)
- func (c *NamespaceHTTPClientImpl) Get(ctx context.Context, in *NamespaceGetRequest, opts ...http.CallOption) (*NamespaceGetReply, error)
- func (c *NamespaceHTTPClientImpl) List(ctx context.Context, in *NamespaceListRequest, opts ...http.CallOption) (*NamespaceListReply, error)
- func (c *NamespaceHTTPClientImpl) SimpleList(ctx context.Context, in *NamespaceSimpleListRequest, opts ...http.CallOption) (*NamespaceSimpleListReply, error)
- func (c *NamespaceHTTPClientImpl) Update(ctx context.Context, in *NamespaceUpdateRequest, opts ...http.CallOption) (*NamespaceUpdateReply, error)
- type NamespaceHTTPServer
- type NamespaceInfo
- func (*NamespaceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceInfo) GetAlias() string
- func (x *NamespaceInfo) GetCreatedAt() string
- func (x *NamespaceInfo) GetDescription() string
- func (x *NamespaceInfo) GetId() int64
- func (x *NamespaceInfo) GetName() string
- func (x *NamespaceInfo) GetRunning() int32
- func (x *NamespaceInfo) GetUpdatedAt() string
- func (*NamespaceInfo) ProtoMessage()
- func (x *NamespaceInfo) ProtoReflect() protoreflect.Message
- func (x *NamespaceInfo) Reset()
- func (x *NamespaceInfo) String() string
- type NamespaceListReply
- func (*NamespaceListReply) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceListReply) GetData() []*NamespaceInfo
- func (x *NamespaceListReply) GetPagination() *protobuf.Pagination
- func (*NamespaceListReply) ProtoMessage()
- func (x *NamespaceListReply) ProtoReflect() protoreflect.Message
- func (x *NamespaceListReply) Reset()
- func (x *NamespaceListReply) String() string
- type NamespaceListRequest
- func (*NamespaceListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceListRequest) GetName() string
- func (x *NamespaceListRequest) GetPagination() *protobuf.Pagination
- func (*NamespaceListRequest) ProtoMessage()
- func (x *NamespaceListRequest) ProtoReflect() protoreflect.Message
- func (x *NamespaceListRequest) Reset()
- func (x *NamespaceListRequest) String() string
- type NamespaceServer
- type NamespaceSimple
- func (*NamespaceSimple) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceSimple) GetAlias() string
- func (x *NamespaceSimple) GetId() int64
- func (x *NamespaceSimple) GetName() string
- func (*NamespaceSimple) ProtoMessage()
- func (x *NamespaceSimple) ProtoReflect() protoreflect.Message
- func (x *NamespaceSimple) Reset()
- func (x *NamespaceSimple) String() string
- type NamespaceSimpleListReply
- func (*NamespaceSimpleListReply) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceSimpleListReply) GetData() []*NamespaceSimple
- func (*NamespaceSimpleListReply) ProtoMessage()
- func (x *NamespaceSimpleListReply) ProtoReflect() protoreflect.Message
- func (x *NamespaceSimpleListReply) Reset()
- func (x *NamespaceSimpleListReply) String() string
- type NamespaceSimpleListRequest
- type NamespaceUpdateReply
- func (*NamespaceUpdateReply) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceUpdateReply) GetData() *NamespaceInfo
- func (*NamespaceUpdateReply) ProtoMessage()
- func (x *NamespaceUpdateReply) ProtoReflect() protoreflect.Message
- func (x *NamespaceUpdateReply) Reset()
- func (x *NamespaceUpdateReply) String() string
- type NamespaceUpdateRequest
- func (*NamespaceUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceUpdateRequest) GetAlias() string
- func (x *NamespaceUpdateRequest) GetDescription() string
- func (x *NamespaceUpdateRequest) GetId() int64
- func (x *NamespaceUpdateRequest) GetName() string
- func (*NamespaceUpdateRequest) ProtoMessage()
- func (x *NamespaceUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *NamespaceUpdateRequest) Reset()
- func (x *NamespaceUpdateRequest) String() string
- type NodeClient
- type NodeHTTPClient
- type NodeHTTPClientImpl
- func (c *NodeHTTPClientImpl) Create(ctx context.Context, in *CreateNodeRequest, opts ...http.CallOption) (*CreateNodeReply, error)
- func (c *NodeHTTPClientImpl) List(ctx context.Context, in *NodeListRequest, opts ...http.CallOption) (*NodeListReply, error)
- func (c *NodeHTTPClientImpl) Update(ctx context.Context, in *UpdateNodeRequest, opts ...http.CallOption) (*UpdateNodeReply, error)
- type NodeHTTPServer
- type NodeInfo
- func (*NodeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NodeInfo) GetAgent() *Agent
- func (x *NodeInfo) GetAutoDetect() bool
- func (x *NodeInfo) GetCreatedAt() int64
- func (x *NodeInfo) GetEnv() string
- func (x *NodeInfo) GetId() int32
- func (x *NodeInfo) GetIp() string
- func (x *NodeInfo) GetName() string
- func (x *NodeInfo) GetRegionCode() string
- func (x *NodeInfo) GetRegionName() string
- func (x *NodeInfo) GetUpdatedAt() int64
- func (x *NodeInfo) GetZoneCode() string
- func (x *NodeInfo) GetZoneId() int32
- func (x *NodeInfo) GetZoneName() string
- func (*NodeInfo) ProtoMessage()
- func (x *NodeInfo) ProtoReflect() protoreflect.Message
- func (x *NodeInfo) Reset()
- func (x *NodeInfo) String() string
- type NodeListReply
- func (*NodeListReply) Descriptor() ([]byte, []int)deprecated
- func (x *NodeListReply) GetData() []*NodeInfo
- func (x *NodeListReply) GetPagination() *protobuf.Pagination
- func (*NodeListReply) ProtoMessage()
- func (x *NodeListReply) ProtoReflect() protoreflect.Message
- func (x *NodeListReply) Reset()
- func (x *NodeListReply) String() string
- type NodeListRequest
- func (*NodeListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NodeListRequest) GetPagination() *protobuf.Pagination
- func (*NodeListRequest) ProtoMessage()
- func (x *NodeListRequest) ProtoReflect() protoreflect.Message
- func (x *NodeListRequest) Reset()
- func (x *NodeListRequest) String() string
- type NodeServer
- type OrderBy
- type SimpleListReply
- type SimpleListRequest
- type SimpleZoneInfo
- func (*SimpleZoneInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SimpleZoneInfo) GetCode() string
- func (x *SimpleZoneInfo) GetId() int32
- func (x *SimpleZoneInfo) GetName() string
- func (*SimpleZoneInfo) ProtoMessage()
- func (x *SimpleZoneInfo) ProtoReflect() protoreflect.Message
- func (x *SimpleZoneInfo) Reset()
- func (x *SimpleZoneInfo) String() string
- type UnimplementedAppServer
- func (UnimplementedAppServer) Create(context.Context, *AppCreateRequest) (*AppCreateReply, error)
- func (UnimplementedAppServer) Delete(context.Context, *AppDeleteRequest) (*AppDeleteReply, error)
- func (UnimplementedAppServer) Get(context.Context, *AppGetRequest) (*AppGetReply, error)
- func (UnimplementedAppServer) List(context.Context, *AppListRequest) (*AppListReply, error)
- func (UnimplementedAppServer) NamespaceAppList(context.Context, *NamespaceAppListRequest) (*NamespaceAppListReply, error)
- func (UnimplementedAppServer) Update(context.Context, *AppUpdateRequest) (*AppUpdateReply, error)
- type UnimplementedNamespaceServer
- func (UnimplementedNamespaceServer) Create(context.Context, *NamespaceCreateRequest) (*NamespaceCreateReply, error)
- func (UnimplementedNamespaceServer) Delete(context.Context, *NamespaceDeleteRequest) (*NamespaceDeleteReply, error)
- func (UnimplementedNamespaceServer) Get(context.Context, *NamespaceGetRequest) (*NamespaceGetReply, error)
- func (UnimplementedNamespaceServer) List(context.Context, *NamespaceListRequest) (*NamespaceListReply, error)
- func (UnimplementedNamespaceServer) SimpleList(context.Context, *NamespaceSimpleListRequest) (*NamespaceSimpleListReply, error)
- func (UnimplementedNamespaceServer) Update(context.Context, *NamespaceUpdateRequest) (*NamespaceUpdateReply, error)
- type UnimplementedNodeServer
- type UnimplementedZoneServer
- func (UnimplementedZoneServer) Create(context.Context, *CreateZoneRequest) (*CreateZoneReply, error)
- func (UnimplementedZoneServer) Delete(context.Context, *DeleteZoneRequest) (*DeleteZoneReply, error)
- func (UnimplementedZoneServer) Disable(context.Context, *DisableZoneRequest) (*DisableZoneReply, error)
- func (UnimplementedZoneServer) Get(context.Context, *GetZoneRequest) (*GetZoneReply, error)
- func (UnimplementedZoneServer) List(context.Context, *GetZoneListRequest) (*GetZoneListReply, error)
- func (UnimplementedZoneServer) SimpleList(context.Context, *SimpleListRequest) (*SimpleListReply, error)
- func (UnimplementedZoneServer) Update(context.Context, *UpdateZoneRequest) (*UpdateZoneReply, error)
- type UnsafeAppServer
- type UnsafeNamespaceServer
- type UnsafeNodeServer
- type UnsafeZoneServer
- type UpdateNodeReply
- type UpdateNodeRequest
- func (*UpdateNodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNodeRequest) GetAutoDetect() bool
- func (x *UpdateNodeRequest) GetEnv() string
- func (x *UpdateNodeRequest) GetId() int32
- func (x *UpdateNodeRequest) GetIp() string
- func (x *UpdateNodeRequest) GetName() string
- func (x *UpdateNodeRequest) GetZoneId() int32
- func (*UpdateNodeRequest) ProtoMessage()
- func (x *UpdateNodeRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNodeRequest) Reset()
- func (x *UpdateNodeRequest) String() string
- type UpdateZoneReply
- type UpdateZoneRequest
- func (*UpdateZoneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateZoneRequest) GetCode() string
- func (x *UpdateZoneRequest) GetEnv() string
- func (x *UpdateZoneRequest) GetId() int32
- func (x *UpdateZoneRequest) GetName() string
- func (x *UpdateZoneRequest) GetRegionCode() string
- func (x *UpdateZoneRequest) GetRegionName() string
- func (*UpdateZoneRequest) ProtoMessage()
- func (x *UpdateZoneRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateZoneRequest) Reset()
- func (x *UpdateZoneRequest) String() string
- type ZoneClient
- type ZoneHTTPClient
- type ZoneHTTPClientImpl
- func (c *ZoneHTTPClientImpl) Create(ctx context.Context, in *CreateZoneRequest, opts ...http.CallOption) (*CreateZoneReply, error)
- func (c *ZoneHTTPClientImpl) Delete(ctx context.Context, in *DeleteZoneRequest, opts ...http.CallOption) (*DeleteZoneReply, error)
- func (c *ZoneHTTPClientImpl) Disable(ctx context.Context, in *DisableZoneRequest, opts ...http.CallOption) (*DisableZoneReply, error)
- func (c *ZoneHTTPClientImpl) Get(ctx context.Context, in *GetZoneRequest, opts ...http.CallOption) (*GetZoneReply, error)
- func (c *ZoneHTTPClientImpl) List(ctx context.Context, in *GetZoneListRequest, opts ...http.CallOption) (*GetZoneListReply, error)
- func (c *ZoneHTTPClientImpl) SimpleList(ctx context.Context, in *SimpleListRequest, opts ...http.CallOption) (*SimpleListReply, error)
- func (c *ZoneHTTPClientImpl) Update(ctx context.Context, in *UpdateZoneRequest, opts ...http.CallOption) (*UpdateZoneReply, error)
- type ZoneHTTPServer
- type ZoneInfo
- func (*ZoneInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ZoneInfo) GetCode() string
- func (x *ZoneInfo) GetCreatedAt() string
- func (x *ZoneInfo) GetEnv() string
- func (x *ZoneInfo) GetId() int32
- func (x *ZoneInfo) GetName() string
- func (x *ZoneInfo) GetRegionCode() string
- func (x *ZoneInfo) GetRegionName() string
- func (x *ZoneInfo) GetStatus() ZoneInfo_Status
- func (x *ZoneInfo) GetUpdatedAt() string
- func (*ZoneInfo) ProtoMessage()
- func (x *ZoneInfo) ProtoReflect() protoreflect.Message
- func (x *ZoneInfo) Reset()
- func (x *ZoneInfo) String() string
- type ZoneInfo_Status
- func (ZoneInfo_Status) Descriptor() protoreflect.EnumDescriptor
- func (x ZoneInfo_Status) Enum() *ZoneInfo_Status
- func (ZoneInfo_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x ZoneInfo_Status) Number() protoreflect.EnumNumber
- func (x ZoneInfo_Status) String() string
- func (ZoneInfo_Status) Type() protoreflect.EnumType
- type ZoneServer
Constants ¶
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" )
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" )
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" )
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" )
const OperationAppCreate = "/api.console.resource.App/Create"
const OperationAppDelete = "/api.console.resource.App/Delete"
const OperationAppGet = "/api.console.resource.App/Get"
const OperationAppList = "/api.console.resource.App/List"
const OperationAppNamespaceAppList = "/api.console.resource.App/NamespaceAppList"
const OperationAppUpdate = "/api.console.resource.App/Update"
const OperationNamespaceCreate = "/api.console.resource.Namespace/Create"
const OperationNamespaceDelete = "/api.console.resource.Namespace/Delete"
const OperationNamespaceGet = "/api.console.resource.Namespace/Get"
const OperationNamespaceList = "/api.console.resource.Namespace/List"
const OperationNamespaceSimpleList = "/api.console.resource.Namespace/SimpleList"
const OperationNamespaceUpdate = "/api.console.resource.Namespace/Update"
const OperationNodeCreate = "/api.console.resource.Node/Create"
const OperationNodeList = "/api.console.resource.Node/List"
const OperationNodeUpdate = "/api.console.resource.Node/Update"
const OperationZoneCreate = "/api.console.resource.Zone/Create"
const OperationZoneDelete = "/api.console.resource.Zone/Delete"
const OperationZoneDisable = "/api.console.resource.Zone/Disable"
const OperationZoneGet = "/api.console.resource.Zone/Get"
const OperationZoneList = "/api.console.resource.Zone/List"
const OperationZoneSimpleList = "/api.console.resource.Zone/SimpleList"
const OperationZoneUpdate = "/api.console.resource.Zone/Update"
Variables ¶
var ( MetadataType_name = map[int32]string{ 0: "hang", } MetadataType_value = map[string]int32{ "hang": 0, } )
Enum value maps for MetadataType.
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.
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.
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.
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.
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)
var File_console_resource_app_proto protoreflect.FileDescriptor
var File_console_resource_namespace_proto protoreflect.FileDescriptor
var File_console_resource_node_proto protoreflect.FileDescriptor
var File_console_resource_zone_proto protoreflect.FileDescriptor
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)
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)
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) GetHeartbeatTime ¶
func (*Agent) GetVersion ¶
func (*Agent) ProtoMessage ¶
func (*Agent) ProtoMessage()
func (*Agent) ProtoReflect ¶
func (x *Agent) ProtoReflect() protoreflect.Message
type AgentType ¶
type AgentType int32
func (AgentType) Descriptor ¶
func (AgentType) Descriptor() protoreflect.EnumDescriptor
func (AgentType) EnumDescriptor
deprecated
func (AgentType) Number ¶
func (x AgentType) Number() protoreflect.EnumNumber
func (AgentType) Type ¶
func (AgentType) Type() protoreflect.EnumType
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 (c *AppHTTPClientImpl) Create(ctx context.Context, in *AppCreateRequest, opts ...http.CallOption) (*AppCreateReply, error)
func (*AppHTTPClientImpl) Delete ¶
func (c *AppHTTPClientImpl) Delete(ctx context.Context, in *AppDeleteRequest, opts ...http.CallOption) (*AppDeleteReply, error)
func (*AppHTTPClientImpl) Get ¶
func (c *AppHTTPClientImpl) Get(ctx context.Context, in *AppGetRequest, opts ...http.CallOption) (*AppGetReply, error)
func (*AppHTTPClientImpl) List ¶
func (c *AppHTTPClientImpl) List(ctx context.Context, in *AppListRequest, opts ...http.CallOption) (*AppListReply, error)
func (*AppHTTPClientImpl) NamespaceAppList ¶
func (c *AppHTTPClientImpl) NamespaceAppList(ctx context.Context, in *NamespaceAppListRequest, opts ...http.CallOption) (*NamespaceAppListReply, error)
func (*AppHTTPClientImpl) Update ¶
func (c *AppHTTPClientImpl) Update(ctx context.Context, in *AppUpdateRequest, opts ...http.CallOption) (*AppUpdateReply, error)
type AppHTTPServer ¶
type AppHTTPServer interface {
Create(context.Context, *AppCreateRequest) (*AppCreateReply, error)
Delete(context.Context, *AppDeleteRequest) (*AppDeleteReply, error)
Get(context.Context, *AppGetRequest) (*AppGetReply, error)
List(context.Context, *AppListRequest) (*AppListReply, error)
NamespaceAppList(context.Context, *NamespaceAppListRequest) (*NamespaceAppListReply, error)
Update(context.Context, *AppUpdateRequest) (*AppUpdateReply, error)
}
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) GetCreatedAt ¶
func (*AppInfo) GetDescription ¶
func (*AppInfo) GetNamespaceId ¶
func (*AppInfo) GetPorts ¶
func (x *AppInfo) GetPorts() []*AppInfo_AppPort
func (*AppInfo) GetType ¶
func (x *AppInfo) GetType() AppInfo_AppType
func (*AppInfo) GetUpdatedAt ¶
func (*AppInfo) ProtoMessage ¶
func (*AppInfo) ProtoMessage()
func (*AppInfo) ProtoReflect ¶
func (x *AppInfo) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (AppInfo_AppPort_Protocol) Enum ¶
func (x AppInfo_AppPort_Protocol) Enum() *AppInfo_AppPort_Protocol
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 (x AppInfo_AppPort_Protocol) Number() protoreflect.EnumNumber
func (AppInfo_AppPort_Protocol) String ¶
func (x AppInfo_AppPort_Protocol) String() string
func (AppInfo_AppPort_Protocol) Type ¶
func (AppInfo_AppPort_Protocol) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x AppInfo_AppType) Number() protoreflect.EnumNumber
func (AppInfo_AppType) String ¶
func (x AppInfo_AppType) String() string
func (AppInfo_AppType) Type ¶
func (AppInfo_AppType) Type() protoreflect.EnumType
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 ¶
type AppServer interface {
List(context.Context, *AppListRequest) (*AppListReply, error)
NamespaceAppList(context.Context, *NamespaceAppListRequest) (*NamespaceAppListReply, error)
Get(context.Context, *AppGetRequest) (*AppGetReply, error)
Create(context.Context, *AppCreateRequest) (*AppCreateReply, error)
Update(context.Context, *AppUpdateRequest) (*AppUpdateReply, error)
Delete(context.Context, *AppDeleteRequest) (*AppDeleteReply, error)
// contains filtered or unexported methods
}
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) Descriptor() protoreflect.EnumDescriptor
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 (x MetadataType) Number() protoreflect.EnumNumber
func (MetadataType) String ¶
func (x MetadataType) String() string
func (MetadataType) Type ¶
func (MetadataType) Type() protoreflect.EnumType
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 ¶
type NamespaceClient interface {
List(ctx context.Context, in *NamespaceListRequest, opts ...grpc.CallOption) (*NamespaceListReply, error)
SimpleList(ctx context.Context, in *NamespaceSimpleListRequest, opts ...grpc.CallOption) (*NamespaceSimpleListReply, error)
Get(ctx context.Context, in *NamespaceGetRequest, opts ...grpc.CallOption) (*NamespaceGetReply, error)
Create(ctx context.Context, in *NamespaceCreateRequest, opts ...grpc.CallOption) (*NamespaceCreateReply, error)
Update(ctx context.Context, in *NamespaceUpdateRequest, opts ...grpc.CallOption) (*NamespaceUpdateReply, error)
Delete(ctx context.Context, in *NamespaceDeleteRequest, opts ...grpc.CallOption) (*NamespaceDeleteReply, error)
}
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 (c *NamespaceHTTPClientImpl) Create(ctx context.Context, in *NamespaceCreateRequest, opts ...http.CallOption) (*NamespaceCreateReply, error)
func (*NamespaceHTTPClientImpl) Delete ¶
func (c *NamespaceHTTPClientImpl) Delete(ctx context.Context, in *NamespaceDeleteRequest, opts ...http.CallOption) (*NamespaceDeleteReply, error)
func (*NamespaceHTTPClientImpl) Get ¶
func (c *NamespaceHTTPClientImpl) Get(ctx context.Context, in *NamespaceGetRequest, opts ...http.CallOption) (*NamespaceGetReply, error)
func (*NamespaceHTTPClientImpl) List ¶
func (c *NamespaceHTTPClientImpl) List(ctx context.Context, in *NamespaceListRequest, opts ...http.CallOption) (*NamespaceListReply, error)
func (*NamespaceHTTPClientImpl) SimpleList ¶
func (c *NamespaceHTTPClientImpl) SimpleList(ctx context.Context, in *NamespaceSimpleListRequest, opts ...http.CallOption) (*NamespaceSimpleListReply, error)
func (*NamespaceHTTPClientImpl) Update ¶
func (c *NamespaceHTTPClientImpl) Update(ctx context.Context, in *NamespaceUpdateRequest, opts ...http.CallOption) (*NamespaceUpdateReply, error)
type NamespaceHTTPServer ¶
type NamespaceHTTPServer interface {
Create(context.Context, *NamespaceCreateRequest) (*NamespaceCreateReply, error)
Delete(context.Context, *NamespaceDeleteRequest) (*NamespaceDeleteReply, error)
Get(context.Context, *NamespaceGetRequest) (*NamespaceGetReply, error)
List(context.Context, *NamespaceListRequest) (*NamespaceListReply, error)
SimpleList(context.Context, *NamespaceSimpleListRequest) (*NamespaceSimpleListReply, error)
Update(context.Context, *NamespaceUpdateRequest) (*NamespaceUpdateReply, error)
}
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 ¶
type NamespaceServer interface {
List(context.Context, *NamespaceListRequest) (*NamespaceListReply, error)
SimpleList(context.Context, *NamespaceSimpleListRequest) (*NamespaceSimpleListReply, error)
Get(context.Context, *NamespaceGetRequest) (*NamespaceGetReply, error)
Create(context.Context, *NamespaceCreateRequest) (*NamespaceCreateReply, error)
Update(context.Context, *NamespaceUpdateRequest) (*NamespaceUpdateReply, error)
Delete(context.Context, *NamespaceDeleteRequest) (*NamespaceDeleteReply, error)
// contains filtered or unexported methods
}
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 (x *NamespaceSimpleListRequest) ProtoReflect() protoreflect.Message
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 (c *NodeHTTPClientImpl) Create(ctx context.Context, in *CreateNodeRequest, opts ...http.CallOption) (*CreateNodeReply, error)
func (*NodeHTTPClientImpl) List ¶
func (c *NodeHTTPClientImpl) List(ctx context.Context, in *NodeListRequest, opts ...http.CallOption) (*NodeListReply, error)
func (*NodeHTTPClientImpl) Update ¶
func (c *NodeHTTPClientImpl) Update(ctx context.Context, in *UpdateNodeRequest, opts ...http.CallOption) (*UpdateNodeReply, error)
type NodeHTTPServer ¶
type NodeHTTPServer interface {
Create(context.Context, *CreateNodeRequest) (*CreateNodeReply, error)
List(context.Context, *NodeListRequest) (*NodeListReply, error)
Update(context.Context, *UpdateNodeRequest) (*UpdateNodeReply, error)
}
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) GetAutoDetect ¶
func (*NodeInfo) GetCreatedAt ¶
func (*NodeInfo) GetRegionCode ¶
func (*NodeInfo) GetRegionName ¶
func (*NodeInfo) GetUpdatedAt ¶
func (*NodeInfo) GetZoneCode ¶
func (*NodeInfo) GetZoneName ¶
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
func (*NodeInfo) ProtoReflect ¶
func (x *NodeInfo) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*OrderBy) ProtoMessage()
func (*OrderBy) ProtoReflect ¶
func (x *OrderBy) ProtoReflect() protoreflect.Message
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) Create(context.Context, *AppCreateRequest) (*AppCreateReply, error)
func (UnimplementedAppServer) Delete ¶
func (UnimplementedAppServer) Delete(context.Context, *AppDeleteRequest) (*AppDeleteReply, error)
func (UnimplementedAppServer) Get ¶
func (UnimplementedAppServer) Get(context.Context, *AppGetRequest) (*AppGetReply, error)
func (UnimplementedAppServer) List ¶
func (UnimplementedAppServer) List(context.Context, *AppListRequest) (*AppListReply, error)
func (UnimplementedAppServer) NamespaceAppList ¶
func (UnimplementedAppServer) NamespaceAppList(context.Context, *NamespaceAppListRequest) (*NamespaceAppListReply, error)
func (UnimplementedAppServer) Update ¶
func (UnimplementedAppServer) Update(context.Context, *AppUpdateRequest) (*AppUpdateReply, error)
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) Create(context.Context, *NamespaceCreateRequest) (*NamespaceCreateReply, error)
func (UnimplementedNamespaceServer) Delete ¶
func (UnimplementedNamespaceServer) Delete(context.Context, *NamespaceDeleteRequest) (*NamespaceDeleteReply, error)
func (UnimplementedNamespaceServer) Get ¶
func (UnimplementedNamespaceServer) Get(context.Context, *NamespaceGetRequest) (*NamespaceGetReply, error)
func (UnimplementedNamespaceServer) List ¶
func (UnimplementedNamespaceServer) List(context.Context, *NamespaceListRequest) (*NamespaceListReply, error)
func (UnimplementedNamespaceServer) SimpleList ¶
func (UnimplementedNamespaceServer) SimpleList(context.Context, *NamespaceSimpleListRequest) (*NamespaceSimpleListReply, error)
func (UnimplementedNamespaceServer) Update ¶
func (UnimplementedNamespaceServer) Update(context.Context, *NamespaceUpdateRequest) (*NamespaceUpdateReply, error)
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) Create(context.Context, *CreateNodeRequest) (*CreateNodeReply, error)
func (UnimplementedNodeServer) List ¶
func (UnimplementedNodeServer) List(context.Context, *NodeListRequest) (*NodeListReply, error)
func (UnimplementedNodeServer) Update ¶
func (UnimplementedNodeServer) Update(context.Context, *UpdateNodeRequest) (*UpdateNodeReply, error)
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) Create(context.Context, *CreateZoneRequest) (*CreateZoneReply, error)
func (UnimplementedZoneServer) Delete ¶
func (UnimplementedZoneServer) Delete(context.Context, *DeleteZoneRequest) (*DeleteZoneReply, error)
func (UnimplementedZoneServer) Disable ¶
func (UnimplementedZoneServer) Disable(context.Context, *DisableZoneRequest) (*DisableZoneReply, error)
func (UnimplementedZoneServer) Get ¶
func (UnimplementedZoneServer) Get(context.Context, *GetZoneRequest) (*GetZoneReply, error)
func (UnimplementedZoneServer) List ¶
func (UnimplementedZoneServer) List(context.Context, *GetZoneListRequest) (*GetZoneListReply, error)
func (UnimplementedZoneServer) SimpleList ¶
func (UnimplementedZoneServer) SimpleList(context.Context, *SimpleListRequest) (*SimpleListReply, error)
func (UnimplementedZoneServer) Update ¶
func (UnimplementedZoneServer) Update(context.Context, *UpdateZoneRequest) (*UpdateZoneReply, error)
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 (c *ZoneHTTPClientImpl) Create(ctx context.Context, in *CreateZoneRequest, opts ...http.CallOption) (*CreateZoneReply, error)
func (*ZoneHTTPClientImpl) Delete ¶
func (c *ZoneHTTPClientImpl) Delete(ctx context.Context, in *DeleteZoneRequest, opts ...http.CallOption) (*DeleteZoneReply, error)
func (*ZoneHTTPClientImpl) Disable ¶
func (c *ZoneHTTPClientImpl) Disable(ctx context.Context, in *DisableZoneRequest, opts ...http.CallOption) (*DisableZoneReply, error)
func (*ZoneHTTPClientImpl) Get ¶
func (c *ZoneHTTPClientImpl) Get(ctx context.Context, in *GetZoneRequest, opts ...http.CallOption) (*GetZoneReply, error)
func (*ZoneHTTPClientImpl) List ¶
func (c *ZoneHTTPClientImpl) List(ctx context.Context, in *GetZoneListRequest, opts ...http.CallOption) (*GetZoneListReply, error)
func (*ZoneHTTPClientImpl) SimpleList ¶
func (c *ZoneHTTPClientImpl) SimpleList(ctx context.Context, in *SimpleListRequest, opts ...http.CallOption) (*SimpleListReply, error)
func (*ZoneHTTPClientImpl) Update ¶
func (c *ZoneHTTPClientImpl) Update(ctx context.Context, in *UpdateZoneRequest, opts ...http.CallOption) (*UpdateZoneReply, error)
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) GetCreatedAt ¶
func (*ZoneInfo) GetRegionCode ¶
func (*ZoneInfo) GetRegionName ¶
func (*ZoneInfo) GetStatus ¶
func (x *ZoneInfo) GetStatus() ZoneInfo_Status
func (*ZoneInfo) GetUpdatedAt ¶
func (*ZoneInfo) ProtoMessage ¶
func (*ZoneInfo) ProtoMessage()
func (*ZoneInfo) ProtoReflect ¶
func (x *ZoneInfo) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 (x ZoneInfo_Status) Number() protoreflect.EnumNumber
func (ZoneInfo_Status) String ¶
func (x ZoneInfo_Status) String() string
func (ZoneInfo_Status) Type ¶
func (ZoneInfo_Status) Type() protoreflect.EnumType
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