Documentation ¶
Index ¶
- Variables
- func RegisterCelestialServiceServer(s *grpc.Server, srv CelestialServiceServer)
- type CelestialServiceClient
- type CelestialServiceServer
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (m *Data) GetData() map[string]string
- func (*Data) ProtoMessage()
- func (m *Data) Reset()
- func (m *Data) String() string
- func (m *Data) XXX_DiscardUnknown()
- func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Data) XXX_Merge(src proto.Message)
- func (m *Data) XXX_Size() int
- func (m *Data) XXX_Unmarshal(b []byte) error
- type ListReq
- func (*ListReq) Descriptor() ([]byte, []int)
- func (m *ListReq) GetExtras() map[string]string
- func (m *ListReq) GetKind() ReqKind
- func (*ListReq) ProtoMessage()
- func (m *ListReq) Reset()
- func (m *ListReq) String() string
- func (m *ListReq) XXX_DiscardUnknown()
- func (m *ListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListReq) XXX_Merge(src proto.Message)
- func (m *ListReq) XXX_Size() int
- func (m *ListReq) XXX_Unmarshal(b []byte) error
- type ListResp
- func (*ListResp) Descriptor() ([]byte, []int)
- func (m *ListResp) GetClusterId() string
- func (m *ListResp) GetData() []*Data
- func (m *ListResp) GetError() string
- func (m *ListResp) GetExtras() map[string]string
- func (m *ListResp) GetNodeId() string
- func (m *ListResp) GetRegionId() string
- func (*ListResp) ProtoMessage()
- func (m *ListResp) Reset()
- func (m *ListResp) String() string
- func (m *ListResp) XXX_DiscardUnknown()
- func (m *ListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResp) XXX_Merge(src proto.Message)
- func (m *ListResp) XXX_Size() int
- func (m *ListResp) XXX_Unmarshal(b []byte) error
- type MutateReq
- func (*MutateReq) Descriptor() ([]byte, []int)
- func (m *MutateReq) GetIndex() []string
- func (m *MutateReq) GetMutate() *core.Task
- func (*MutateReq) ProtoMessage()
- func (m *MutateReq) Reset()
- func (m *MutateReq) String() string
- func (m *MutateReq) XXX_DiscardUnknown()
- func (m *MutateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MutateReq) XXX_Merge(src proto.Message)
- func (m *MutateReq) XXX_Size() int
- func (m *MutateReq) XXX_Unmarshal(b []byte) error
- type MutateResp
- func (*MutateResp) Descriptor() ([]byte, []int)
- func (m *MutateResp) GetError() string
- func (*MutateResp) ProtoMessage()
- func (m *MutateResp) Reset()
- func (m *MutateResp) String() string
- func (m *MutateResp) XXX_DiscardUnknown()
- func (m *MutateResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MutateResp) XXX_Merge(src proto.Message)
- func (m *MutateResp) XXX_Size() int
- func (m *MutateResp) XXX_Unmarshal(b []byte) error
- type ReqKind
- type UnimplementedCelestialServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ReqKind_name = map[int32]string{
0: "SECRETS",
1: "CONFIGS",
2: "ACTIONS",
3: "NAMESPACES",
4: "ROLES",
5: "TOPOLOGY",
}
View Source
var ReqKind_value = map[string]int32{
"SECRETS": 0,
"CONFIGS": 1,
"ACTIONS": 2,
"NAMESPACES": 3,
"ROLES": 4,
"TOPOLOGY": 5,
}
Functions ¶
func RegisterCelestialServiceServer ¶
func RegisterCelestialServiceServer(s *grpc.Server, srv CelestialServiceServer)
Types ¶
type CelestialServiceClient ¶
type CelestialServiceClient interface { List(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error) Mutate(ctx context.Context, in *MutateReq, opts ...grpc.CallOption) (*MutateResp, error) }
CelestialServiceClient is the client API for CelestialService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCelestialServiceClient ¶
func NewCelestialServiceClient(cc grpc.ClientConnInterface) CelestialServiceClient
type CelestialServiceServer ¶
type CelestialServiceServer interface { List(context.Context, *ListReq) (*ListResp, error) Mutate(context.Context, *MutateReq) (*MutateResp, error) }
CelestialServiceServer is the server API for CelestialService service.
type Data ¶
type Data struct { Data map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Data) Descriptor ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) XXX_DiscardUnknown ¶
func (m *Data) XXX_DiscardUnknown()
func (*Data) XXX_Unmarshal ¶
type ListReq ¶
type ListReq struct { Kind ReqKind `protobuf:"varint,1,opt,name=kind,proto3,enum=celestial.ReqKind" json:"kind,omitempty"` Extras map[string]string `` /* 153-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List messages
func (*ListReq) Descriptor ¶
func (*ListReq) ProtoMessage ¶
func (*ListReq) ProtoMessage()
func (*ListReq) XXX_DiscardUnknown ¶
func (m *ListReq) XXX_DiscardUnknown()
func (*ListReq) XXX_Marshal ¶
func (*ListReq) XXX_Unmarshal ¶
type ListResp ¶
type ListResp struct { RegionId string `protobuf:"bytes,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` NodeId string `protobuf:"bytes,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Data []*Data `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` Extras map[string]string `` /* 153-byte string literal not displayed */ Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListResp) Descriptor ¶
func (*ListResp) GetClusterId ¶
func (*ListResp) GetRegionId ¶
func (*ListResp) ProtoMessage ¶
func (*ListResp) ProtoMessage()
func (*ListResp) XXX_DiscardUnknown ¶
func (m *ListResp) XXX_DiscardUnknown()
func (*ListResp) XXX_Marshal ¶
func (*ListResp) XXX_Unmarshal ¶
type MutateReq ¶
type MutateReq struct { Mutate *core.Task `protobuf:"bytes,1,opt,name=mutate,proto3" json:"mutate,omitempty"` Index []string `protobuf:"bytes,2,rep,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MutateReq) Descriptor ¶
func (*MutateReq) ProtoMessage ¶
func (*MutateReq) ProtoMessage()
func (*MutateReq) XXX_DiscardUnknown ¶
func (m *MutateReq) XXX_DiscardUnknown()
func (*MutateReq) XXX_Marshal ¶
func (*MutateReq) XXX_Unmarshal ¶
type MutateResp ¶
type MutateResp struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Mutate messages
func (*MutateResp) Descriptor ¶
func (*MutateResp) Descriptor() ([]byte, []int)
func (*MutateResp) GetError ¶
func (m *MutateResp) GetError() string
func (*MutateResp) ProtoMessage ¶
func (*MutateResp) ProtoMessage()
func (*MutateResp) Reset ¶
func (m *MutateResp) Reset()
func (*MutateResp) String ¶
func (m *MutateResp) String() string
func (*MutateResp) XXX_DiscardUnknown ¶
func (m *MutateResp) XXX_DiscardUnknown()
func (*MutateResp) XXX_Marshal ¶
func (m *MutateResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MutateResp) XXX_Merge ¶
func (m *MutateResp) XXX_Merge(src proto.Message)
func (*MutateResp) XXX_Size ¶
func (m *MutateResp) XXX_Size() int
func (*MutateResp) XXX_Unmarshal ¶
func (m *MutateResp) XXX_Unmarshal(b []byte) error
type UnimplementedCelestialServiceServer ¶
type UnimplementedCelestialServiceServer struct { }
UnimplementedCelestialServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCelestialServiceServer) Mutate ¶
func (*UnimplementedCelestialServiceServer) Mutate(ctx context.Context, req *MutateReq) (*MutateResp, error)
Click to show internal directories.
Click to hide internal directories.