Documentation
¶
Index ¶
- Variables
- func RegisterDeviceRoleServiceServer(s *grpc.Server, srv DeviceRoleServiceServer)
- func RegisterZtpAdminServiceServer(s *grpc.Server, srv ZtpAdminServiceServer)
- type DeviceConfig
- func (*DeviceConfig) Descriptor() ([]byte, []int)
- func (m *DeviceConfig) GetProperties() []*DeviceProperty
- func (m *DeviceConfig) GetSoftwareVersion() string
- func (*DeviceConfig) ProtoMessage()
- func (m *DeviceConfig) Reset()
- func (m *DeviceConfig) String() string
- func (m *DeviceConfig) XXX_DiscardUnknown()
- func (m *DeviceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceConfig) XXX_Merge(src proto.Message)
- func (m *DeviceConfig) XXX_Size() int
- func (m *DeviceConfig) XXX_Unmarshal(b []byte) error
- type DevicePipeline
- func (*DevicePipeline) Descriptor() ([]byte, []int)
- func (m *DevicePipeline) GetDriver() string
- func (m *DevicePipeline) GetPipeconf() string
- func (*DevicePipeline) ProtoMessage()
- func (m *DevicePipeline) Reset()
- func (m *DevicePipeline) String() string
- func (m *DevicePipeline) XXX_DiscardUnknown()
- func (m *DevicePipeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DevicePipeline) XXX_Merge(src proto.Message)
- func (m *DevicePipeline) XXX_Size() int
- func (m *DevicePipeline) XXX_Unmarshal(b []byte) error
- type DeviceProperty
- func (*DeviceProperty) Descriptor() ([]byte, []int)
- func (m *DeviceProperty) GetPath() string
- func (m *DeviceProperty) GetType() string
- func (m *DeviceProperty) GetValue() string
- func (*DeviceProperty) ProtoMessage()
- func (m *DeviceProperty) Reset()
- func (m *DeviceProperty) String() string
- func (m *DeviceProperty) XXX_DiscardUnknown()
- func (m *DeviceProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceProperty) XXX_Merge(src proto.Message)
- func (m *DeviceProperty) XXX_Size() int
- func (m *DeviceProperty) XXX_Unmarshal(b []byte) error
- type DeviceRoleChange
- func (*DeviceRoleChange) Descriptor() ([]byte, []int)
- func (m *DeviceRoleChange) GetChange() DeviceRoleChange_ChangeType
- func (m *DeviceRoleChange) GetConfig() *DeviceRoleConfig
- func (*DeviceRoleChange) ProtoMessage()
- func (m *DeviceRoleChange) Reset()
- func (m *DeviceRoleChange) String() string
- func (m *DeviceRoleChange) XXX_DiscardUnknown()
- func (m *DeviceRoleChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceRoleChange) XXX_Merge(src proto.Message)
- func (m *DeviceRoleChange) XXX_Size() int
- func (m *DeviceRoleChange) XXX_Unmarshal(b []byte) error
- type DeviceRoleChangeRequest
- func (*DeviceRoleChangeRequest) Descriptor() ([]byte, []int)
- func (m *DeviceRoleChangeRequest) GetChange() DeviceRoleChangeRequest_ChangeType
- func (m *DeviceRoleChangeRequest) GetConfig() *DeviceRoleConfig
- func (*DeviceRoleChangeRequest) ProtoMessage()
- func (m *DeviceRoleChangeRequest) Reset()
- func (m *DeviceRoleChangeRequest) String() string
- func (m *DeviceRoleChangeRequest) XXX_DiscardUnknown()
- func (m *DeviceRoleChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceRoleChangeRequest) XXX_Merge(src proto.Message)
- func (m *DeviceRoleChangeRequest) XXX_Size() int
- func (m *DeviceRoleChangeRequest) XXX_Unmarshal(b []byte) error
- type DeviceRoleChangeRequest_ChangeType
- type DeviceRoleChangeResponse
- func (*DeviceRoleChangeResponse) Descriptor() ([]byte, []int)
- func (m *DeviceRoleChangeResponse) GetChange() *DeviceRoleChange
- func (*DeviceRoleChangeResponse) ProtoMessage()
- func (m *DeviceRoleChangeResponse) Reset()
- func (m *DeviceRoleChangeResponse) String() string
- func (m *DeviceRoleChangeResponse) XXX_DiscardUnknown()
- func (m *DeviceRoleChangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceRoleChangeResponse) XXX_Merge(src proto.Message)
- func (m *DeviceRoleChangeResponse) XXX_Size() int
- func (m *DeviceRoleChangeResponse) XXX_Unmarshal(b []byte) error
- type DeviceRoleChange_ChangeType
- type DeviceRoleConfig
- func (*DeviceRoleConfig) Descriptor() ([]byte, []int)
- func (m *DeviceRoleConfig) GetConfig() *DeviceConfig
- func (m *DeviceRoleConfig) GetPipeline() *DevicePipeline
- func (m *DeviceRoleConfig) GetRole() string
- func (*DeviceRoleConfig) ProtoMessage()
- func (m *DeviceRoleConfig) Reset()
- func (m *DeviceRoleConfig) String() string
- func (m *DeviceRoleConfig) XXX_DiscardUnknown()
- func (m *DeviceRoleConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceRoleConfig) XXX_Merge(src proto.Message)
- func (m *DeviceRoleConfig) XXX_Size() int
- func (m *DeviceRoleConfig) XXX_Unmarshal(b []byte) error
- type DeviceRoleRequest
- func (*DeviceRoleRequest) Descriptor() ([]byte, []int)
- func (m *DeviceRoleRequest) GetRole() string
- func (*DeviceRoleRequest) ProtoMessage()
- func (m *DeviceRoleRequest) Reset()
- func (m *DeviceRoleRequest) String() string
- func (m *DeviceRoleRequest) XXX_DiscardUnknown()
- func (m *DeviceRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceRoleRequest) XXX_Merge(src proto.Message)
- func (m *DeviceRoleRequest) XXX_Size() int
- func (m *DeviceRoleRequest) XXX_Unmarshal(b []byte) error
- type DeviceRoleServiceClient
- type DeviceRoleServiceServer
- type DeviceRoleService_GetClient
- type DeviceRoleService_GetServer
- type DeviceRoleService_SubscribeClient
- type DeviceRoleService_SubscribeServer
- type UnimplementedDeviceRoleServiceServer
- func (*UnimplementedDeviceRoleServiceServer) Get(req *DeviceRoleRequest, srv DeviceRoleService_GetServer) error
- func (*UnimplementedDeviceRoleServiceServer) Set(ctx context.Context, req *DeviceRoleChangeRequest) (*DeviceRoleChangeResponse, error)
- func (*UnimplementedDeviceRoleServiceServer) Subscribe(req *DeviceRoleRequest, srv DeviceRoleService_SubscribeServer) error
- type UnimplementedZtpAdminServiceServer
- type ZtpAdminServiceClient
- type ZtpAdminServiceServer
Constants ¶
This section is empty.
Variables ¶
var DeviceRoleChangeRequest_ChangeType_name = map[int32]string{
0: "UPDATE",
1: "ADD",
2: "DELETE",
}
var DeviceRoleChangeRequest_ChangeType_value = map[string]int32{
"UPDATE": 0,
"ADD": 1,
"DELETE": 2,
}
var DeviceRoleChange_ChangeType_name = map[int32]string{
0: "UPDATED",
1: "ADDED",
2: "DELETED",
}
var DeviceRoleChange_ChangeType_value = map[string]int32{
"UPDATED": 0,
"ADDED": 1,
"DELETED": 2,
}
Functions ¶
func RegisterDeviceRoleServiceServer ¶
func RegisterDeviceRoleServiceServer(s *grpc.Server, srv DeviceRoleServiceServer)
func RegisterZtpAdminServiceServer ¶
func RegisterZtpAdminServiceServer(s *grpc.Server, srv ZtpAdminServiceServer)
Types ¶
type DeviceConfig ¶
type DeviceConfig struct {
SoftwareVersion string `protobuf:"bytes,1,opt,name=softwareVersion,proto3" json:"softwareVersion,omitempty"`
Properties []*DeviceProperty `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DeviceConfig is a set of initial configuration properties to be applied to a device.
func (*DeviceConfig) Descriptor ¶
func (*DeviceConfig) Descriptor() ([]byte, []int)
func (*DeviceConfig) GetProperties ¶
func (m *DeviceConfig) GetProperties() []*DeviceProperty
func (*DeviceConfig) GetSoftwareVersion ¶
func (m *DeviceConfig) GetSoftwareVersion() string
func (*DeviceConfig) ProtoMessage ¶
func (*DeviceConfig) ProtoMessage()
func (*DeviceConfig) Reset ¶
func (m *DeviceConfig) Reset()
func (*DeviceConfig) String ¶
func (m *DeviceConfig) String() string
func (*DeviceConfig) XXX_DiscardUnknown ¶
func (m *DeviceConfig) XXX_DiscardUnknown()
func (*DeviceConfig) XXX_Marshal ¶
func (m *DeviceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceConfig) XXX_Merge ¶
func (m *DeviceConfig) XXX_Merge(src proto.Message)
func (*DeviceConfig) XXX_Size ¶
func (m *DeviceConfig) XXX_Size() int
func (*DeviceConfig) XXX_Unmarshal ¶
func (m *DeviceConfig) XXX_Unmarshal(b []byte) error
type DevicePipeline ¶
type DevicePipeline struct {
Pipeconf string `protobuf:"bytes,1,opt,name=pipeconf,proto3" json:"pipeconf,omitempty"`
Driver string `protobuf:"bytes,2,opt,name=driver,proto3" json:"driver,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DevicePipeline carries information about the P4 pipeline configuration
func (*DevicePipeline) Descriptor ¶
func (*DevicePipeline) Descriptor() ([]byte, []int)
func (*DevicePipeline) GetDriver ¶
func (m *DevicePipeline) GetDriver() string
func (*DevicePipeline) GetPipeconf ¶
func (m *DevicePipeline) GetPipeconf() string
func (*DevicePipeline) ProtoMessage ¶
func (*DevicePipeline) ProtoMessage()
func (*DevicePipeline) Reset ¶
func (m *DevicePipeline) Reset()
func (*DevicePipeline) String ¶
func (m *DevicePipeline) String() string
func (*DevicePipeline) XXX_DiscardUnknown ¶
func (m *DevicePipeline) XXX_DiscardUnknown()
func (*DevicePipeline) XXX_Marshal ¶
func (m *DevicePipeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DevicePipeline) XXX_Merge ¶
func (m *DevicePipeline) XXX_Merge(src proto.Message)
func (*DevicePipeline) XXX_Size ¶
func (m *DevicePipeline) XXX_Size() int
func (*DevicePipeline) XXX_Unmarshal ¶
func (m *DevicePipeline) XXX_Unmarshal(b []byte) error
type DeviceProperty ¶
type DeviceProperty struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DeviceProperty is a path/type/value tuple
func (*DeviceProperty) Descriptor ¶
func (*DeviceProperty) Descriptor() ([]byte, []int)
func (*DeviceProperty) GetPath ¶
func (m *DeviceProperty) GetPath() string
func (*DeviceProperty) GetType ¶
func (m *DeviceProperty) GetType() string
func (*DeviceProperty) GetValue ¶
func (m *DeviceProperty) GetValue() string
func (*DeviceProperty) ProtoMessage ¶
func (*DeviceProperty) ProtoMessage()
func (*DeviceProperty) Reset ¶
func (m *DeviceProperty) Reset()
func (*DeviceProperty) String ¶
func (m *DeviceProperty) String() string
func (*DeviceProperty) XXX_DiscardUnknown ¶
func (m *DeviceProperty) XXX_DiscardUnknown()
func (*DeviceProperty) XXX_Marshal ¶
func (m *DeviceProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceProperty) XXX_Merge ¶
func (m *DeviceProperty) XXX_Merge(src proto.Message)
func (*DeviceProperty) XXX_Size ¶
func (m *DeviceProperty) XXX_Size() int
func (*DeviceProperty) XXX_Unmarshal ¶
func (m *DeviceProperty) XXX_Unmarshal(b []byte) error
type DeviceRoleChange ¶
type DeviceRoleChange struct {
Change DeviceRoleChange_ChangeType `protobuf:"varint,1,opt,name=change,proto3,enum=admin.DeviceRoleChange_ChangeType" json:"change,omitempty"`
Config *DeviceRoleConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DeviceRoleChange is an event describing a change to a device role configuration.
func (*DeviceRoleChange) Descriptor ¶
func (*DeviceRoleChange) Descriptor() ([]byte, []int)
func (*DeviceRoleChange) GetChange ¶
func (m *DeviceRoleChange) GetChange() DeviceRoleChange_ChangeType
func (*DeviceRoleChange) GetConfig ¶
func (m *DeviceRoleChange) GetConfig() *DeviceRoleConfig
func (*DeviceRoleChange) ProtoMessage ¶
func (*DeviceRoleChange) ProtoMessage()
func (*DeviceRoleChange) Reset ¶
func (m *DeviceRoleChange) Reset()
func (*DeviceRoleChange) String ¶
func (m *DeviceRoleChange) String() string
func (*DeviceRoleChange) XXX_DiscardUnknown ¶
func (m *DeviceRoleChange) XXX_DiscardUnknown()
func (*DeviceRoleChange) XXX_Marshal ¶
func (m *DeviceRoleChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceRoleChange) XXX_Merge ¶
func (m *DeviceRoleChange) XXX_Merge(src proto.Message)
func (*DeviceRoleChange) XXX_Size ¶
func (m *DeviceRoleChange) XXX_Size() int
func (*DeviceRoleChange) XXX_Unmarshal ¶
func (m *DeviceRoleChange) XXX_Unmarshal(b []byte) error
type DeviceRoleChangeRequest ¶
type DeviceRoleChangeRequest struct {
Change DeviceRoleChangeRequest_ChangeType `protobuf:"varint,1,opt,name=change,proto3,enum=admin.DeviceRoleChangeRequest_ChangeType" json:"change,omitempty"`
Config *DeviceRoleConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DeviceRoleChangeRequest is a request for a change to a device role configuration
func (*DeviceRoleChangeRequest) Descriptor ¶
func (*DeviceRoleChangeRequest) Descriptor() ([]byte, []int)
func (*DeviceRoleChangeRequest) GetChange ¶
func (m *DeviceRoleChangeRequest) GetChange() DeviceRoleChangeRequest_ChangeType
func (*DeviceRoleChangeRequest) GetConfig ¶
func (m *DeviceRoleChangeRequest) GetConfig() *DeviceRoleConfig
func (*DeviceRoleChangeRequest) ProtoMessage ¶
func (*DeviceRoleChangeRequest) ProtoMessage()
func (*DeviceRoleChangeRequest) Reset ¶
func (m *DeviceRoleChangeRequest) Reset()
func (*DeviceRoleChangeRequest) String ¶
func (m *DeviceRoleChangeRequest) String() string
func (*DeviceRoleChangeRequest) XXX_DiscardUnknown ¶
func (m *DeviceRoleChangeRequest) XXX_DiscardUnknown()
func (*DeviceRoleChangeRequest) XXX_Marshal ¶
func (m *DeviceRoleChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceRoleChangeRequest) XXX_Merge ¶
func (m *DeviceRoleChangeRequest) XXX_Merge(src proto.Message)
func (*DeviceRoleChangeRequest) XXX_Size ¶
func (m *DeviceRoleChangeRequest) XXX_Size() int
func (*DeviceRoleChangeRequest) XXX_Unmarshal ¶
func (m *DeviceRoleChangeRequest) XXX_Unmarshal(b []byte) error
type DeviceRoleChangeRequest_ChangeType ¶
type DeviceRoleChangeRequest_ChangeType int32
const ( DeviceRoleChangeRequest_UPDATE DeviceRoleChangeRequest_ChangeType = 0 DeviceRoleChangeRequest_ADD DeviceRoleChangeRequest_ChangeType = 1 DeviceRoleChangeRequest_DELETE DeviceRoleChangeRequest_ChangeType = 2 )
func (DeviceRoleChangeRequest_ChangeType) EnumDescriptor ¶
func (DeviceRoleChangeRequest_ChangeType) EnumDescriptor() ([]byte, []int)
func (DeviceRoleChangeRequest_ChangeType) String ¶
func (x DeviceRoleChangeRequest_ChangeType) String() string
type DeviceRoleChangeResponse ¶
type DeviceRoleChangeResponse struct {
Change *DeviceRoleChange `protobuf:"bytes,2,opt,name=change,proto3" json:"change,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DeviceRoleChangeResponse is a response for a change to a device role configuration
func (*DeviceRoleChangeResponse) Descriptor ¶
func (*DeviceRoleChangeResponse) Descriptor() ([]byte, []int)
func (*DeviceRoleChangeResponse) GetChange ¶
func (m *DeviceRoleChangeResponse) GetChange() *DeviceRoleChange
func (*DeviceRoleChangeResponse) ProtoMessage ¶
func (*DeviceRoleChangeResponse) ProtoMessage()
func (*DeviceRoleChangeResponse) Reset ¶
func (m *DeviceRoleChangeResponse) Reset()
func (*DeviceRoleChangeResponse) String ¶
func (m *DeviceRoleChangeResponse) String() string
func (*DeviceRoleChangeResponse) XXX_DiscardUnknown ¶
func (m *DeviceRoleChangeResponse) XXX_DiscardUnknown()
func (*DeviceRoleChangeResponse) XXX_Marshal ¶
func (m *DeviceRoleChangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceRoleChangeResponse) XXX_Merge ¶
func (m *DeviceRoleChangeResponse) XXX_Merge(src proto.Message)
func (*DeviceRoleChangeResponse) XXX_Size ¶
func (m *DeviceRoleChangeResponse) XXX_Size() int
func (*DeviceRoleChangeResponse) XXX_Unmarshal ¶
func (m *DeviceRoleChangeResponse) XXX_Unmarshal(b []byte) error
type DeviceRoleChange_ChangeType ¶
type DeviceRoleChange_ChangeType int32
const ( DeviceRoleChange_UPDATED DeviceRoleChange_ChangeType = 0 DeviceRoleChange_ADDED DeviceRoleChange_ChangeType = 1 DeviceRoleChange_DELETED DeviceRoleChange_ChangeType = 2 )
func (DeviceRoleChange_ChangeType) EnumDescriptor ¶
func (DeviceRoleChange_ChangeType) EnumDescriptor() ([]byte, []int)
func (DeviceRoleChange_ChangeType) String ¶
func (x DeviceRoleChange_ChangeType) String() string
type DeviceRoleConfig ¶
type DeviceRoleConfig struct {
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
Config *DeviceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
Pipeline *DevicePipeline `protobuf:"bytes,3,opt,name=pipeline,proto3" json:"pipeline,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DeviceRoleConfig carries the template configuration associated with a device role
func (*DeviceRoleConfig) Descriptor ¶
func (*DeviceRoleConfig) Descriptor() ([]byte, []int)
func (*DeviceRoleConfig) GetConfig ¶
func (m *DeviceRoleConfig) GetConfig() *DeviceConfig
func (*DeviceRoleConfig) GetPipeline ¶
func (m *DeviceRoleConfig) GetPipeline() *DevicePipeline
func (*DeviceRoleConfig) GetRole ¶
func (m *DeviceRoleConfig) GetRole() string
func (*DeviceRoleConfig) ProtoMessage ¶
func (*DeviceRoleConfig) ProtoMessage()
func (*DeviceRoleConfig) Reset ¶
func (m *DeviceRoleConfig) Reset()
func (*DeviceRoleConfig) String ¶
func (m *DeviceRoleConfig) String() string
func (*DeviceRoleConfig) XXX_DiscardUnknown ¶
func (m *DeviceRoleConfig) XXX_DiscardUnknown()
func (*DeviceRoleConfig) XXX_Marshal ¶
func (m *DeviceRoleConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceRoleConfig) XXX_Merge ¶
func (m *DeviceRoleConfig) XXX_Merge(src proto.Message)
func (*DeviceRoleConfig) XXX_Size ¶
func (m *DeviceRoleConfig) XXX_Size() int
func (*DeviceRoleConfig) XXX_Unmarshal ¶
func (m *DeviceRoleConfig) XXX_Unmarshal(b []byte) error
type DeviceRoleRequest ¶
type DeviceRoleRequest struct {
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
DeviceRoleRequest is a request for device role configuration.
func (*DeviceRoleRequest) Descriptor ¶
func (*DeviceRoleRequest) Descriptor() ([]byte, []int)
func (*DeviceRoleRequest) GetRole ¶
func (m *DeviceRoleRequest) GetRole() string
func (*DeviceRoleRequest) ProtoMessage ¶
func (*DeviceRoleRequest) ProtoMessage()
func (*DeviceRoleRequest) Reset ¶
func (m *DeviceRoleRequest) Reset()
func (*DeviceRoleRequest) String ¶
func (m *DeviceRoleRequest) String() string
func (*DeviceRoleRequest) XXX_DiscardUnknown ¶
func (m *DeviceRoleRequest) XXX_DiscardUnknown()
func (*DeviceRoleRequest) XXX_Marshal ¶
func (m *DeviceRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceRoleRequest) XXX_Merge ¶
func (m *DeviceRoleRequest) XXX_Merge(src proto.Message)
func (*DeviceRoleRequest) XXX_Size ¶
func (m *DeviceRoleRequest) XXX_Size() int
func (*DeviceRoleRequest) XXX_Unmarshal ¶
func (m *DeviceRoleRequest) XXX_Unmarshal(b []byte) error
type DeviceRoleServiceClient ¶
type DeviceRoleServiceClient interface {
// Set provides means to add, update or delete device role configuration.
Set(ctx context.Context, in *DeviceRoleChangeRequest, opts ...grpc.CallOption) (*DeviceRoleChangeResponse, error)
// Get provides means to query device role configuration.
Get(ctx context.Context, in *DeviceRoleRequest, opts ...grpc.CallOption) (DeviceRoleService_GetClient, error)
// Subscribe provides means to monitor changes in the device role configuration.
Subscribe(ctx context.Context, in *DeviceRoleRequest, opts ...grpc.CallOption) (DeviceRoleService_SubscribeClient, error)
}
DeviceRoleServiceClient is the client API for DeviceRoleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDeviceRoleServiceClient ¶
func NewDeviceRoleServiceClient(cc *grpc.ClientConn) DeviceRoleServiceClient
type DeviceRoleServiceServer ¶
type DeviceRoleServiceServer interface {
// Set provides means to add, update or delete device role configuration.
Set(context.Context, *DeviceRoleChangeRequest) (*DeviceRoleChangeResponse, error)
// Get provides means to query device role configuration.
Get(*DeviceRoleRequest, DeviceRoleService_GetServer) error
// Subscribe provides means to monitor changes in the device role configuration.
Subscribe(*DeviceRoleRequest, DeviceRoleService_SubscribeServer) error
}
DeviceRoleServiceServer is the server API for DeviceRoleService service.
type DeviceRoleService_GetClient ¶
type DeviceRoleService_GetClient interface {
Recv() (*DeviceRoleConfig, error)
grpc.ClientStream
}
type DeviceRoleService_GetServer ¶
type DeviceRoleService_GetServer interface {
Send(*DeviceRoleConfig) error
grpc.ServerStream
}
type DeviceRoleService_SubscribeClient ¶
type DeviceRoleService_SubscribeClient interface {
Recv() (*DeviceRoleChange, error)
grpc.ClientStream
}
type DeviceRoleService_SubscribeServer ¶
type DeviceRoleService_SubscribeServer interface {
Send(*DeviceRoleChange) error
grpc.ServerStream
}
type UnimplementedDeviceRoleServiceServer ¶
type UnimplementedDeviceRoleServiceServer struct {
}
UnimplementedDeviceRoleServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedDeviceRoleServiceServer) Get ¶
func (*UnimplementedDeviceRoleServiceServer) Get(req *DeviceRoleRequest, srv DeviceRoleService_GetServer) error
func (*UnimplementedDeviceRoleServiceServer) Set ¶
func (*UnimplementedDeviceRoleServiceServer) Set(ctx context.Context, req *DeviceRoleChangeRequest) (*DeviceRoleChangeResponse, error)
func (*UnimplementedDeviceRoleServiceServer) Subscribe ¶
func (*UnimplementedDeviceRoleServiceServer) Subscribe(req *DeviceRoleRequest, srv DeviceRoleService_SubscribeServer) error
type UnimplementedZtpAdminServiceServer ¶
type UnimplementedZtpAdminServiceServer struct {
}
UnimplementedZtpAdminServiceServer can be embedded to have forward compatible implementations.
type ZtpAdminServiceClient ¶
type ZtpAdminServiceClient interface {
}
ZtpAdminServiceClient is the client API for ZtpAdminService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewZtpAdminServiceClient ¶
func NewZtpAdminServiceClient(cc *grpc.ClientConn) ZtpAdminServiceClient
type ZtpAdminServiceServer ¶
type ZtpAdminServiceServer interface {
}
ZtpAdminServiceServer is the server API for ZtpAdminService service.