node

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeLoggingCapability_Sync_FullMethodName = "/node.logging.NodeLoggingCapability/Sync"
)

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_logging_pkg_apis_node_node_proto protoreflect.FileDescriptor
View Source
var NodeLoggingCapability_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "node.logging.NodeLoggingCapability",
	HandlerType: (*NodeLoggingCapabilityServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Sync",
			Handler:    _NodeLoggingCapability_Sync_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/rancher/opni/plugins/logging/pkg/apis/node/node.proto",
}

NodeLoggingCapability_ServiceDesc is the grpc.ServiceDesc for NodeLoggingCapability service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterNodeLoggingCapabilityServer

func RegisterNodeLoggingCapabilityServer(s grpc.ServiceRegistrar, srv NodeLoggingCapabilityServer)

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 LoggingCapabilityConfig

type LoggingCapabilityConfig struct {
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// If enabled is false, conditions may contain a list of relevant status
	// messages describing why the capability is disabled.
	Conditions []string `protobuf:"bytes,2,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// contains filtered or unexported fields
}

func (*LoggingCapabilityConfig) Descriptor deprecated

func (*LoggingCapabilityConfig) Descriptor() ([]byte, []int)

Deprecated: Use LoggingCapabilityConfig.ProtoReflect.Descriptor instead.

func (*LoggingCapabilityConfig) GetConditions

func (x *LoggingCapabilityConfig) GetConditions() []string

func (*LoggingCapabilityConfig) GetEnabled

func (x *LoggingCapabilityConfig) GetEnabled() bool

func (*LoggingCapabilityConfig) ProtoMessage

func (*LoggingCapabilityConfig) ProtoMessage()

func (*LoggingCapabilityConfig) ProtoReflect

func (x *LoggingCapabilityConfig) ProtoReflect() protoreflect.Message

func (*LoggingCapabilityConfig) Reset

func (x *LoggingCapabilityConfig) Reset()

func (*LoggingCapabilityConfig) String

func (x *LoggingCapabilityConfig) String() string

type NodeLoggingCapabilityClient

type NodeLoggingCapabilityClient interface {
	Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error)
}

NodeLoggingCapabilityClient is the client API for NodeLoggingCapability 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 NodeLoggingCapabilityServer

type NodeLoggingCapabilityServer interface {
	Sync(context.Context, *SyncRequest) (*SyncResponse, error)
	// contains filtered or unexported methods
}

NodeLoggingCapabilityServer is the server API for NodeLoggingCapability service. All implementations must embed UnimplementedNodeLoggingCapabilityServer for forward compatibility

type SyncRequest

type SyncRequest struct {
	CurrentConfig *LoggingCapabilityConfig `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() *LoggingCapabilityConfig

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.logging.ConfigStatus" json:"configStatus,omitempty"`
	UpdatedConfig *LoggingCapabilityConfig `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() *LoggingCapabilityConfig

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 UnimplementedNodeLoggingCapabilityServer

type UnimplementedNodeLoggingCapabilityServer struct {
}

UnimplementedNodeLoggingCapabilityServer must be embedded to have forward compatible implementations.

func (UnimplementedNodeLoggingCapabilityServer) Sync

type UnsafeNodeLoggingCapabilityServer

type UnsafeNodeLoggingCapabilityServer interface {
	// contains filtered or unexported methods
}

UnsafeNodeLoggingCapabilityServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeLoggingCapabilityServer will result in compilation errors.

Jump to

Keyboard shortcuts

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