Documentation ¶
Index ¶
- Variables
- func RegisterLoggerServer(s grpc.ServiceRegistrar, srv LoggerServer)
- type GetLoggerRequest
- type LoggerClient
- type LoggerServer
- type ResetLogLevelRequest
- type SetLogLevelRequest
- func (*SetLogLevelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetLogLevelRequest) GetNewLevel() types.LogLevel
- func (*SetLogLevelRequest) ProtoMessage()
- func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message
- func (x *SetLogLevelRequest) Reset()
- func (x *SetLogLevelRequest) String() string
- type UnimplementedLoggerServer
- func (UnimplementedLoggerServer) GetLogger(context.Context, *GetLoggerRequest) (*types.Logger, error)
- func (UnimplementedLoggerServer) ResetLogLevel(context.Context, *ResetLogLevelRequest) (*types.Logger, error)
- func (UnimplementedLoggerServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*types.Logger, error)
- type UnsafeLoggerServer
Constants ¶
This section is empty.
Variables ¶
var File_spire_api_agent_logger_v1_logger_proto protoreflect.FileDescriptor
Functions ¶
func RegisterLoggerServer ¶
func RegisterLoggerServer(s grpc.ServiceRegistrar, srv LoggerServer)
Types ¶
type GetLoggerRequest ¶
type GetLoggerRequest struct {
// contains filtered or unexported fields
}
Empty Get Logger Request message for future extension
func (*GetLoggerRequest) Descriptor
deprecated
func (*GetLoggerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLoggerRequest.ProtoReflect.Descriptor instead.
func (*GetLoggerRequest) ProtoMessage ¶
func (*GetLoggerRequest) ProtoMessage()
func (*GetLoggerRequest) ProtoReflect ¶
func (x *GetLoggerRequest) ProtoReflect() protoreflect.Message
func (*GetLoggerRequest) Reset ¶
func (x *GetLoggerRequest) Reset()
func (*GetLoggerRequest) String ¶
func (x *GetLoggerRequest) String() string
type LoggerClient ¶
type LoggerClient interface { // Gets the logger level. // // This message is intended for the Agent Admin Socket. GetLogger(ctx context.Context, in *GetLoggerRequest, opts ...grpc.CallOption) (*types.Logger, error) // Sets the logger to a specified log level. // // This message is intended for the Agent Admin Socket. SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*types.Logger, error) // Resets the logger level to the level configured at launch. // // This message is intended for the Agent Admin Socket. ResetLogLevel(ctx context.Context, in *ResetLogLevelRequest, opts ...grpc.CallOption) (*types.Logger, error) }
LoggerClient is the client API for Logger 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 NewLoggerClient ¶
func NewLoggerClient(cc grpc.ClientConnInterface) LoggerClient
type LoggerServer ¶
type LoggerServer interface { // Gets the logger level. // // This message is intended for the Agent Admin Socket. GetLogger(context.Context, *GetLoggerRequest) (*types.Logger, error) // Sets the logger to a specified log level. // // This message is intended for the Agent Admin Socket. SetLogLevel(context.Context, *SetLogLevelRequest) (*types.Logger, error) // Resets the logger level to the level configured at launch. // // This message is intended for the Agent Admin Socket. ResetLogLevel(context.Context, *ResetLogLevelRequest) (*types.Logger, error) // contains filtered or unexported methods }
LoggerServer is the server API for Logger service. All implementations must embed UnimplementedLoggerServer for forward compatibility
type ResetLogLevelRequest ¶
type ResetLogLevelRequest struct {
// contains filtered or unexported fields
}
Empty Reset Log Level Request message for future extension
func (*ResetLogLevelRequest) Descriptor
deprecated
func (*ResetLogLevelRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetLogLevelRequest.ProtoReflect.Descriptor instead.
func (*ResetLogLevelRequest) ProtoMessage ¶
func (*ResetLogLevelRequest) ProtoMessage()
func (*ResetLogLevelRequest) ProtoReflect ¶
func (x *ResetLogLevelRequest) ProtoReflect() protoreflect.Message
func (*ResetLogLevelRequest) Reset ¶
func (x *ResetLogLevelRequest) Reset()
func (*ResetLogLevelRequest) String ¶
func (x *ResetLogLevelRequest) String() string
type SetLogLevelRequest ¶
type SetLogLevelRequest struct { // The new level the logger should assume NewLevel types.LogLevel `protobuf:"varint,1,opt,name=new_level,json=newLevel,proto3,enum=spire.api.types.LogLevel" json:"new_level,omitempty"` // contains filtered or unexported fields }
Set Log Level Request message
func (*SetLogLevelRequest) Descriptor
deprecated
func (*SetLogLevelRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetLogLevelRequest.ProtoReflect.Descriptor instead.
func (*SetLogLevelRequest) GetNewLevel ¶
func (x *SetLogLevelRequest) GetNewLevel() types.LogLevel
func (*SetLogLevelRequest) ProtoMessage ¶
func (*SetLogLevelRequest) ProtoMessage()
func (*SetLogLevelRequest) ProtoReflect ¶
func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message
func (*SetLogLevelRequest) Reset ¶
func (x *SetLogLevelRequest) Reset()
func (*SetLogLevelRequest) String ¶
func (x *SetLogLevelRequest) String() string
type UnimplementedLoggerServer ¶
type UnimplementedLoggerServer struct { }
UnimplementedLoggerServer must be embedded to have forward compatible implementations.
func (UnimplementedLoggerServer) GetLogger ¶
func (UnimplementedLoggerServer) GetLogger(context.Context, *GetLoggerRequest) (*types.Logger, error)
func (UnimplementedLoggerServer) ResetLogLevel ¶
func (UnimplementedLoggerServer) ResetLogLevel(context.Context, *ResetLogLevelRequest) (*types.Logger, error)
func (UnimplementedLoggerServer) SetLogLevel ¶
func (UnimplementedLoggerServer) SetLogLevel(context.Context, *SetLogLevelRequest) (*types.Logger, error)
type UnsafeLoggerServer ¶
type UnsafeLoggerServer interface {
// contains filtered or unexported methods
}
UnsafeLoggerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoggerServer will result in compilation errors.