Documentation ¶
Overview ¶
Package adminapi is a generated protocol buffer package.
It is generated from these files:
adminapi.proto
It has these top-level messages:
ManifestAddParams ManifestAddResponse MetaKeyValue ManifestDelParams ManifestDelResponse ManifestDelPrefixParams ManifestDelPrefixResponse ManifestLsDevsParams ManifestLsDevsResponse ManifestDevice Status
Package adminapi is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterBTrDBAdminHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBTrDBAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BTrDBAdminClient) error
- func RegisterBTrDBAdminHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBTrDBAdminServer(s *grpc.Server, srv BTrDBAdminServer)
- func ServeGRPC(ec *etcd.Client, laddr string)
- func ServeHTTP(ec *etcd.Client, laddr string, svcaddr string)
- type BTrDBAdminClient
- type BTrDBAdminServer
- type ManifestAddParams
- type ManifestAddResponse
- type ManifestDelParams
- type ManifestDelPrefixParams
- type ManifestDelPrefixResponse
- func (*ManifestDelPrefixResponse) Descriptor() ([]byte, []int)
- func (m *ManifestDelPrefixResponse) GetNumdeleted() uint32
- func (m *ManifestDelPrefixResponse) GetStat() *Status
- func (*ManifestDelPrefixResponse) ProtoMessage()
- func (m *ManifestDelPrefixResponse) Reset()
- func (m *ManifestDelPrefixResponse) String() string
- type ManifestDelResponse
- type ManifestDevice
- type ManifestLsDevsParams
- type ManifestLsDevsResponse
- func (*ManifestLsDevsResponse) Descriptor() ([]byte, []int)
- func (m *ManifestLsDevsResponse) GetDevices() []*ManifestDevice
- func (m *ManifestLsDevsResponse) GetStat() *Status
- func (*ManifestLsDevsResponse) ProtoMessage()
- func (m *ManifestLsDevsResponse) Reset()
- func (m *ManifestLsDevsResponse) String() string
- type MetaKeyValue
- type Status
- type TUserObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBTrDBAdminHandler ¶
func RegisterBTrDBAdminHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBTrDBAdminHandler registers the http handlers for service BTrDBAdmin to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBTrDBAdminHandlerClient ¶
func RegisterBTrDBAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BTrDBAdminClient) error
RegisterBTrDBAdminHandler registers the http handlers for service BTrDBAdmin to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BTrDBAdminClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BTrDBAdminClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BTrDBAdminClient" to call the correct interceptors.
func RegisterBTrDBAdminHandlerFromEndpoint ¶
func RegisterBTrDBAdminHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBTrDBAdminHandlerFromEndpoint is same as RegisterBTrDBAdminHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBTrDBAdminServer ¶
func RegisterBTrDBAdminServer(s *grpc.Server, srv BTrDBAdminServer)
Types ¶
type BTrDBAdminClient ¶
type BTrDBAdminClient interface { // Requires Manifest capability ManifestAdd(ctx context.Context, in *ManifestAddParams, opts ...grpc.CallOption) (*ManifestAddResponse, error) ManifestDel(ctx context.Context, in *ManifestDelParams, opts ...grpc.CallOption) (*ManifestDelResponse, error) ManifestDelPrefix(ctx context.Context, in *ManifestDelPrefixParams, opts ...grpc.CallOption) (*ManifestDelPrefixResponse, error) ManifestLsDevs(ctx context.Context, in *ManifestLsDevsParams, opts ...grpc.CallOption) (*ManifestLsDevsResponse, error) }
func NewBTrDBAdminClient ¶
func NewBTrDBAdminClient(cc *grpc.ClientConn) BTrDBAdminClient
type BTrDBAdminServer ¶
type BTrDBAdminServer interface { // Requires Manifest capability ManifestAdd(context.Context, *ManifestAddParams) (*ManifestAddResponse, error) ManifestDel(context.Context, *ManifestDelParams) (*ManifestDelResponse, error) ManifestDelPrefix(context.Context, *ManifestDelPrefixParams) (*ManifestDelPrefixResponse, error) ManifestLsDevs(context.Context, *ManifestLsDevsParams) (*ManifestLsDevsResponse, error) }
type ManifestAddParams ¶
type ManifestAddParams struct { Deviceid string `protobuf:"bytes,1,opt,name=deviceid" json:"deviceid,omitempty"` Metadata []*MetaKeyValue `protobuf:"bytes,2,rep,name=metadata" json:"metadata,omitempty"` }
func (*ManifestAddParams) Descriptor ¶
func (*ManifestAddParams) Descriptor() ([]byte, []int)
func (*ManifestAddParams) GetDeviceid ¶
func (m *ManifestAddParams) GetDeviceid() string
func (*ManifestAddParams) GetMetadata ¶
func (m *ManifestAddParams) GetMetadata() []*MetaKeyValue
func (*ManifestAddParams) ProtoMessage ¶
func (*ManifestAddParams) ProtoMessage()
func (*ManifestAddParams) Reset ¶
func (m *ManifestAddParams) Reset()
func (*ManifestAddParams) String ¶
func (m *ManifestAddParams) String() string
type ManifestAddResponse ¶
type ManifestAddResponse struct {
Stat *Status `protobuf:"bytes,1,opt,name=stat" json:"stat,omitempty"`
}
func (*ManifestAddResponse) Descriptor ¶
func (*ManifestAddResponse) Descriptor() ([]byte, []int)
func (*ManifestAddResponse) GetStat ¶
func (m *ManifestAddResponse) GetStat() *Status
func (*ManifestAddResponse) ProtoMessage ¶
func (*ManifestAddResponse) ProtoMessage()
func (*ManifestAddResponse) Reset ¶
func (m *ManifestAddResponse) Reset()
func (*ManifestAddResponse) String ¶
func (m *ManifestAddResponse) String() string
type ManifestDelParams ¶
type ManifestDelParams struct {
Deviceid string `protobuf:"bytes,1,opt,name=deviceid" json:"deviceid,omitempty"`
}
func (*ManifestDelParams) Descriptor ¶
func (*ManifestDelParams) Descriptor() ([]byte, []int)
func (*ManifestDelParams) GetDeviceid ¶
func (m *ManifestDelParams) GetDeviceid() string
func (*ManifestDelParams) ProtoMessage ¶
func (*ManifestDelParams) ProtoMessage()
func (*ManifestDelParams) Reset ¶
func (m *ManifestDelParams) Reset()
func (*ManifestDelParams) String ¶
func (m *ManifestDelParams) String() string
type ManifestDelPrefixParams ¶
type ManifestDelPrefixParams struct {
Deviceidprefix string `protobuf:"bytes,1,opt,name=deviceidprefix" json:"deviceidprefix,omitempty"`
}
func (*ManifestDelPrefixParams) Descriptor ¶
func (*ManifestDelPrefixParams) Descriptor() ([]byte, []int)
func (*ManifestDelPrefixParams) GetDeviceidprefix ¶
func (m *ManifestDelPrefixParams) GetDeviceidprefix() string
func (*ManifestDelPrefixParams) ProtoMessage ¶
func (*ManifestDelPrefixParams) ProtoMessage()
func (*ManifestDelPrefixParams) Reset ¶
func (m *ManifestDelPrefixParams) Reset()
func (*ManifestDelPrefixParams) String ¶
func (m *ManifestDelPrefixParams) String() string
type ManifestDelPrefixResponse ¶
type ManifestDelPrefixResponse struct { Stat *Status `protobuf:"bytes,1,opt,name=stat" json:"stat,omitempty"` Numdeleted uint32 `protobuf:"varint,2,opt,name=numdeleted" json:"numdeleted,omitempty"` }
func (*ManifestDelPrefixResponse) Descriptor ¶
func (*ManifestDelPrefixResponse) Descriptor() ([]byte, []int)
func (*ManifestDelPrefixResponse) GetNumdeleted ¶
func (m *ManifestDelPrefixResponse) GetNumdeleted() uint32
func (*ManifestDelPrefixResponse) GetStat ¶
func (m *ManifestDelPrefixResponse) GetStat() *Status
func (*ManifestDelPrefixResponse) ProtoMessage ¶
func (*ManifestDelPrefixResponse) ProtoMessage()
func (*ManifestDelPrefixResponse) Reset ¶
func (m *ManifestDelPrefixResponse) Reset()
func (*ManifestDelPrefixResponse) String ¶
func (m *ManifestDelPrefixResponse) String() string
type ManifestDelResponse ¶
type ManifestDelResponse struct {
Stat *Status `protobuf:"bytes,1,opt,name=stat" json:"stat,omitempty"`
}
func (*ManifestDelResponse) Descriptor ¶
func (*ManifestDelResponse) Descriptor() ([]byte, []int)
func (*ManifestDelResponse) GetStat ¶
func (m *ManifestDelResponse) GetStat() *Status
func (*ManifestDelResponse) ProtoMessage ¶
func (*ManifestDelResponse) ProtoMessage()
func (*ManifestDelResponse) Reset ¶
func (m *ManifestDelResponse) Reset()
func (*ManifestDelResponse) String ¶
func (m *ManifestDelResponse) String() string
type ManifestDevice ¶
type ManifestDevice struct { Deviceid string `protobuf:"bytes,1,opt,name=deviceid" json:"deviceid,omitempty"` Metadata []*MetaKeyValue `protobuf:"bytes,2,rep,name=metadata" json:"metadata,omitempty"` }
func (*ManifestDevice) Descriptor ¶
func (*ManifestDevice) Descriptor() ([]byte, []int)
func (*ManifestDevice) GetDeviceid ¶
func (m *ManifestDevice) GetDeviceid() string
func (*ManifestDevice) GetMetadata ¶
func (m *ManifestDevice) GetMetadata() []*MetaKeyValue
func (*ManifestDevice) ProtoMessage ¶
func (*ManifestDevice) ProtoMessage()
func (*ManifestDevice) Reset ¶
func (m *ManifestDevice) Reset()
func (*ManifestDevice) String ¶
func (m *ManifestDevice) String() string
type ManifestLsDevsParams ¶
type ManifestLsDevsParams struct {
Deviceidprefix string `protobuf:"bytes,1,opt,name=deviceidprefix" json:"deviceidprefix,omitempty"`
}
func (*ManifestLsDevsParams) Descriptor ¶
func (*ManifestLsDevsParams) Descriptor() ([]byte, []int)
func (*ManifestLsDevsParams) GetDeviceidprefix ¶
func (m *ManifestLsDevsParams) GetDeviceidprefix() string
func (*ManifestLsDevsParams) ProtoMessage ¶
func (*ManifestLsDevsParams) ProtoMessage()
func (*ManifestLsDevsParams) Reset ¶
func (m *ManifestLsDevsParams) Reset()
func (*ManifestLsDevsParams) String ¶
func (m *ManifestLsDevsParams) String() string
type ManifestLsDevsResponse ¶
type ManifestLsDevsResponse struct { Stat *Status `protobuf:"bytes,1,opt,name=stat" json:"stat,omitempty"` Devices []*ManifestDevice `protobuf:"bytes,2,rep,name=devices" json:"devices,omitempty"` }
func (*ManifestLsDevsResponse) Descriptor ¶
func (*ManifestLsDevsResponse) Descriptor() ([]byte, []int)
func (*ManifestLsDevsResponse) GetDevices ¶
func (m *ManifestLsDevsResponse) GetDevices() []*ManifestDevice
func (*ManifestLsDevsResponse) GetStat ¶
func (m *ManifestLsDevsResponse) GetStat() *Status
func (*ManifestLsDevsResponse) ProtoMessage ¶
func (*ManifestLsDevsResponse) ProtoMessage()
func (*ManifestLsDevsResponse) Reset ¶
func (m *ManifestLsDevsResponse) Reset()
func (*ManifestLsDevsResponse) String ¶
func (m *ManifestLsDevsResponse) String() string
type MetaKeyValue ¶
type MetaKeyValue struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*MetaKeyValue) Descriptor ¶
func (*MetaKeyValue) Descriptor() ([]byte, []int)
func (*MetaKeyValue) GetKey ¶
func (m *MetaKeyValue) GetKey() string
func (*MetaKeyValue) GetValue ¶
func (m *MetaKeyValue) GetValue() string
func (*MetaKeyValue) ProtoMessage ¶
func (*MetaKeyValue) ProtoMessage()
func (*MetaKeyValue) Reset ¶
func (m *MetaKeyValue) Reset()
func (*MetaKeyValue) String ¶
func (m *MetaKeyValue) String() string
type Status ¶
type Status struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg" json:"msg,omitempty"` }
func (*Status) Descriptor ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()