Documentation ¶
Index ¶
- Variables
- func RegisterNodeTopologyCapabilityServer(s grpc.ServiceRegistrar, srv NodeTopologyCapabilityServer)
- type ConfigStatus
- func (ConfigStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ConfigStatus) Enum() *ConfigStatus
- func (ConfigStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConfigStatus) Number() protoreflect.EnumNumber
- func (x ConfigStatus) String() string
- func (ConfigStatus) Type() protoreflect.EnumType
- type NodeTopologyCapabilityClient
- type NodeTopologyCapabilityServer
- type SyncRequest
- type SyncResponse
- func (*SyncResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SyncResponse) GetConfigStatus() ConfigStatus
- func (x *SyncResponse) GetUpdatedConfig() *TopologyCapabilityConfig
- func (*SyncResponse) ProtoMessage()
- func (x *SyncResponse) ProtoReflect() protoreflect.Message
- func (x *SyncResponse) Reset()
- func (x *SyncResponse) String() string
- type TopologyCapabilityConfig
- func (*TopologyCapabilityConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TopologyCapabilityConfig) GetConditions() []string
- func (x *TopologyCapabilityConfig) GetEnabled() bool
- func (x *TopologyCapabilityConfig) GetSpec() *TopologyCapabilitySpec
- func (*TopologyCapabilityConfig) ProtoMessage()
- func (x *TopologyCapabilityConfig) ProtoReflect() protoreflect.Message
- func (x *TopologyCapabilityConfig) Reset()
- func (x *TopologyCapabilityConfig) String() string
- type TopologyCapabilitySpec
- type UnimplementedNodeTopologyCapabilityServer
- type UnsafeNodeTopologyCapabilityServer
Constants ¶
This section is empty.
Variables ¶
var ( ConfigStatus_name = map[int32]string{ 0: "Unknown", 1: "UpToDate", 2: "NeedsUpdate", } ConfigStatus_value = map[string]int32{ "Unknown": 0, "UpToDate": 1, "NeedsUpdate": 2, } )
Enum value maps for ConfigStatus.
var File_github_com_rancher_opni_plugins_topology_pkg_apis_node_node_proto protoreflect.FileDescriptor
var NodeTopologyCapability_ServiceDesc = grpc.ServiceDesc{ ServiceName: "node.topology.NodeTopologyCapability", HandlerType: (*NodeTopologyCapabilityServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Sync", Handler: _NodeTopologyCapability_Sync_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/rancher/opni/plugins/topology/pkg/apis/node/node.proto", }
NodeTopologyCapability_ServiceDesc is the grpc.ServiceDesc for NodeTopologyCapability service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNodeTopologyCapabilityServer ¶
func RegisterNodeTopologyCapabilityServer(s grpc.ServiceRegistrar, srv NodeTopologyCapabilityServer)
Types ¶
type ConfigStatus ¶
type ConfigStatus int32
const ( ConfigStatus_Unknown ConfigStatus = 0 ConfigStatus_UpToDate ConfigStatus = 1 ConfigStatus_NeedsUpdate ConfigStatus = 2 )
func (ConfigStatus) Descriptor ¶
func (ConfigStatus) Descriptor() protoreflect.EnumDescriptor
func (ConfigStatus) Enum ¶
func (x ConfigStatus) Enum() *ConfigStatus
func (ConfigStatus) EnumDescriptor
deprecated
func (ConfigStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConfigStatus.Descriptor instead.
func (ConfigStatus) Number ¶
func (x ConfigStatus) Number() protoreflect.EnumNumber
func (ConfigStatus) String ¶
func (x ConfigStatus) String() string
func (ConfigStatus) Type ¶
func (ConfigStatus) Type() protoreflect.EnumType
type NodeTopologyCapabilityClient ¶
type NodeTopologyCapabilityClient interface {
Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error)
}
NodeTopologyCapabilityClient is the client API for NodeTopologyCapability 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 NewNodeTopologyCapabilityClient ¶
func NewNodeTopologyCapabilityClient(cc grpc.ClientConnInterface) NodeTopologyCapabilityClient
type NodeTopologyCapabilityServer ¶
type NodeTopologyCapabilityServer interface { Sync(context.Context, *SyncRequest) (*SyncResponse, error) // contains filtered or unexported methods }
NodeTopologyCapabilityServer is the server API for NodeTopologyCapability service. All implementations must embed UnimplementedNodeTopologyCapabilityServer for forward compatibility
type SyncRequest ¶
type SyncRequest struct { CurrentConfig *TopologyCapabilityConfig `protobuf:"bytes,1,opt,name=currentConfig,proto3" json:"currentConfig,omitempty"` // contains filtered or unexported fields }
func (*SyncRequest) Descriptor
deprecated
func (*SyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
func (*SyncRequest) GetCurrentConfig ¶
func (x *SyncRequest) GetCurrentConfig() *TopologyCapabilityConfig
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) ProtoReflect ¶
func (x *SyncRequest) ProtoReflect() protoreflect.Message
func (*SyncRequest) Reset ¶
func (x *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (x *SyncRequest) String() string
type SyncResponse ¶
type SyncResponse struct { ConfigStatus ConfigStatus `protobuf:"varint,1,opt,name=configStatus,proto3,enum=node.topology.ConfigStatus" json:"configStatus,omitempty"` UpdatedConfig *TopologyCapabilityConfig `protobuf:"bytes,2,opt,name=updatedConfig,proto3" json:"updatedConfig,omitempty"` // contains filtered or unexported fields }
func (*SyncResponse) Descriptor
deprecated
func (*SyncResponse) Descriptor() ([]byte, []int)
Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.
func (*SyncResponse) GetConfigStatus ¶
func (x *SyncResponse) GetConfigStatus() ConfigStatus
func (*SyncResponse) GetUpdatedConfig ¶
func (x *SyncResponse) GetUpdatedConfig() *TopologyCapabilityConfig
func (*SyncResponse) ProtoMessage ¶
func (*SyncResponse) ProtoMessage()
func (*SyncResponse) ProtoReflect ¶
func (x *SyncResponse) ProtoReflect() protoreflect.Message
func (*SyncResponse) Reset ¶
func (x *SyncResponse) Reset()
func (*SyncResponse) String ¶
func (x *SyncResponse) String() string
type TopologyCapabilityConfig ¶
type TopologyCapabilityConfig struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` Conditions []string `protobuf:"bytes,2,rep,name=conditions,proto3" json:"conditions,omitempty"` Spec *TopologyCapabilitySpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
func (*TopologyCapabilityConfig) Descriptor
deprecated
func (*TopologyCapabilityConfig) Descriptor() ([]byte, []int)
Deprecated: Use TopologyCapabilityConfig.ProtoReflect.Descriptor instead.
func (*TopologyCapabilityConfig) GetConditions ¶
func (x *TopologyCapabilityConfig) GetConditions() []string
func (*TopologyCapabilityConfig) GetEnabled ¶
func (x *TopologyCapabilityConfig) GetEnabled() bool
func (*TopologyCapabilityConfig) GetSpec ¶
func (x *TopologyCapabilityConfig) GetSpec() *TopologyCapabilitySpec
func (*TopologyCapabilityConfig) ProtoMessage ¶
func (*TopologyCapabilityConfig) ProtoMessage()
func (*TopologyCapabilityConfig) ProtoReflect ¶
func (x *TopologyCapabilityConfig) ProtoReflect() protoreflect.Message
func (*TopologyCapabilityConfig) Reset ¶
func (x *TopologyCapabilityConfig) Reset()
func (*TopologyCapabilityConfig) String ¶
func (x *TopologyCapabilityConfig) String() string
type TopologyCapabilitySpec ¶
type TopologyCapabilitySpec struct {
// contains filtered or unexported fields
}
func (*TopologyCapabilitySpec) Descriptor
deprecated
func (*TopologyCapabilitySpec) Descriptor() ([]byte, []int)
Deprecated: Use TopologyCapabilitySpec.ProtoReflect.Descriptor instead.
func (*TopologyCapabilitySpec) ProtoMessage ¶
func (*TopologyCapabilitySpec) ProtoMessage()
func (*TopologyCapabilitySpec) ProtoReflect ¶
func (x *TopologyCapabilitySpec) ProtoReflect() protoreflect.Message
func (*TopologyCapabilitySpec) Reset ¶
func (x *TopologyCapabilitySpec) Reset()
func (*TopologyCapabilitySpec) String ¶
func (x *TopologyCapabilitySpec) String() string
type UnimplementedNodeTopologyCapabilityServer ¶
type UnimplementedNodeTopologyCapabilityServer struct { }
UnimplementedNodeTopologyCapabilityServer must be embedded to have forward compatible implementations.
func (UnimplementedNodeTopologyCapabilityServer) Sync ¶
func (UnimplementedNodeTopologyCapabilityServer) Sync(context.Context, *SyncRequest) (*SyncResponse, error)
type UnsafeNodeTopologyCapabilityServer ¶
type UnsafeNodeTopologyCapabilityServer interface {
// contains filtered or unexported methods
}
UnsafeNodeTopologyCapabilityServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeTopologyCapabilityServer will result in compilation errors.