node

package
v0.6.2-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_github_com_rancher_opni_plugins_topology_pkg_apis_node_node_proto protoreflect.FileDescriptor
View Source
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) Enum

func (x ConfigStatus) Enum() *ConfigStatus

func (ConfigStatus) EnumDescriptor deprecated

func (ConfigStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConfigStatus.Descriptor instead.

func (ConfigStatus) Number

func (ConfigStatus) String

func (x ConfigStatus) String() string

func (ConfigStatus) Type

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.

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 (*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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL