maintenance

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: AGPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugMode_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "maintenance.DebugMode",
	HandlerType: (*DebugModeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Enable",
			Handler:    _DebugMode_Enable_Handler,
		},
		{
			MethodName: "Disable",
			Handler:    _DebugMode_Disable_Handler,
		},
		{
			MethodName: "Status",
			Handler:    _DebugMode_Status_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "debugMode.proto",
}

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

View Source
var File_debugMode_proto protoreflect.FileDescriptor
View Source
var File_supportArchive_proto protoreflect.FileDescriptor
View Source
var SupportArchive_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "maintenance.SupportArchive",
	HandlerType: (*SupportArchiveServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Create",
			Handler:       _SupportArchive_Create_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "supportArchive.proto",
}

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

Functions

func RegisterDebugModeServer

func RegisterDebugModeServer(s grpc.ServiceRegistrar, srv DebugModeServer)

func RegisterSupportArchiveServer

func RegisterSupportArchiveServer(s grpc.ServiceRegistrar, srv SupportArchiveServer)

Types

type CreateSupportArchiveRequest

type CreateSupportArchiveRequest struct {

	// CollectEtcd defines whether etcd keys/values should be contained in the final archive (true) or nor (false)
	CollectEtcd bool `protobuf:"varint,1,opt,name=collectEtcd,proto3" json:"collectEtcd,omitempty"`
	// CollectOsInformation defines whether information about soft- and hardware should be contained in the final archive (true) or nor (false)
	CollectOsInformation bool `protobuf:"varint,2,opt,name=collectOsInformation,proto3" json:"collectOsInformation,omitempty"`
	// CollectEnvironment defines whether the environment variables should be contained in the final archive (true) or nor (false)
	CollectEnvironment bool `protobuf:"varint,3,opt,name=collectEnvironment,proto3" json:"collectEnvironment,omitempty"`
	// CollectDoguStatusInformation defines whether information about installed dogus should be contained in the final archive (true) or nor (false)
	CollectDoguStatusInformation bool `protobuf:"varint,4,opt,name=collectDoguStatusInformation,proto3" json:"collectDoguStatusInformation,omitempty"`
	// CollectProcessInformation defines whether the Process and service status should be contained in the final archive (true) or nor (false)
	CollectProcessInformation bool `protobuf:"varint,5,opt,name=collectProcessInformation,proto3" json:"collectProcessInformation,omitempty"`
	// CollectVolumeInformation defines whether the volume information should be contained in the final archive (true) or nor (false)
	CollectVolumeInformation bool `protobuf:"varint,6,opt,name=collectVolumeInformation,proto3" json:"collectVolumeInformation,omitempty"`
	// ExcludedEtcdKeys is a list of etcd keys which should not be included in the final archive.
	ExcludedEtcdKeys []string `protobuf:"bytes,7,rep,name=excludedEtcdKeys,proto3" json:"excludedEtcdKeys,omitempty"`
	// FailFast defines whether the archive collection should fail at the first error (true) or not (false).
	FailFast bool `protobuf:"varint,8,opt,name=failFast,proto3" json:"failFast,omitempty"`
	// CollectLogsFromTheseDogus must be a list of dogus. Only the logs of these dogus are collected - all other dogu logs are skipped.
	CollectLogsFromTheseDogus []string `protobuf:"bytes,9,rep,name=collectLogsFromTheseDogus,proto3" json:"collectLogsFromTheseDogus,omitempty"`
	// CollectCesappLog defines whether the cesapp logfile should be collected (true) or not (false).
	CollectCesappLog bool `protobuf:"varint,10,opt,name=collectCesappLog,proto3" json:"collectCesappLog,omitempty"`
	// CollectCesappdLog defines whether the cesappd logfile should be collected (true) or not (false).
	CollectCesappdLog bool `protobuf:"varint,11,opt,name=collectCesappdLog,proto3" json:"collectCesappdLog,omitempty"`
	// CollectSyslog defines whether the syslog logfile should be collected (true) or not (false).
	CollectSyslog bool `protobuf:"varint,12,opt,name=collectSyslog,proto3" json:"collectSyslog,omitempty"`
	// CollectAptLog defines whether the apt logfiles should be collected (true) or not (false).
	CollectAptLog bool `protobuf:"varint,13,opt,name=collectAptLog,proto3" json:"collectAptLog,omitempty"`
	// CollectBackupWatcherLog defines whether the backup-watcher logfile should be collected (true) or not (false).
	CollectBackupWatcherLog bool `protobuf:"varint,14,opt,name=collectBackupWatcherLog,proto3" json:"collectBackupWatcherLog,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSupportArchiveRequest) Descriptor deprecated

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

Deprecated: Use CreateSupportArchiveRequest.ProtoReflect.Descriptor instead.

func (*CreateSupportArchiveRequest) GetCollectAptLog

func (x *CreateSupportArchiveRequest) GetCollectAptLog() bool

func (*CreateSupportArchiveRequest) GetCollectBackupWatcherLog

func (x *CreateSupportArchiveRequest) GetCollectBackupWatcherLog() bool

func (*CreateSupportArchiveRequest) GetCollectCesappLog

func (x *CreateSupportArchiveRequest) GetCollectCesappLog() bool

func (*CreateSupportArchiveRequest) GetCollectCesappdLog

func (x *CreateSupportArchiveRequest) GetCollectCesappdLog() bool

func (*CreateSupportArchiveRequest) GetCollectDoguStatusInformation

func (x *CreateSupportArchiveRequest) GetCollectDoguStatusInformation() bool

func (*CreateSupportArchiveRequest) GetCollectEnvironment

func (x *CreateSupportArchiveRequest) GetCollectEnvironment() bool

func (*CreateSupportArchiveRequest) GetCollectEtcd

func (x *CreateSupportArchiveRequest) GetCollectEtcd() bool

func (*CreateSupportArchiveRequest) GetCollectLogsFromTheseDogus

func (x *CreateSupportArchiveRequest) GetCollectLogsFromTheseDogus() []string

func (*CreateSupportArchiveRequest) GetCollectOsInformation

func (x *CreateSupportArchiveRequest) GetCollectOsInformation() bool

func (*CreateSupportArchiveRequest) GetCollectProcessInformation

func (x *CreateSupportArchiveRequest) GetCollectProcessInformation() bool

func (*CreateSupportArchiveRequest) GetCollectSyslog

func (x *CreateSupportArchiveRequest) GetCollectSyslog() bool

func (*CreateSupportArchiveRequest) GetCollectVolumeInformation

func (x *CreateSupportArchiveRequest) GetCollectVolumeInformation() bool

func (*CreateSupportArchiveRequest) GetExcludedEtcdKeys

func (x *CreateSupportArchiveRequest) GetExcludedEtcdKeys() []string

func (*CreateSupportArchiveRequest) GetFailFast

func (x *CreateSupportArchiveRequest) GetFailFast() bool

func (*CreateSupportArchiveRequest) ProtoMessage

func (*CreateSupportArchiveRequest) ProtoMessage()

func (*CreateSupportArchiveRequest) ProtoReflect

func (*CreateSupportArchiveRequest) Reset

func (x *CreateSupportArchiveRequest) Reset()

func (*CreateSupportArchiveRequest) String

func (x *CreateSupportArchiveRequest) String() string

type DebugModeClient

type DebugModeClient interface {
	Enable(ctx context.Context, in *ToggleDebugModeRequest, opts ...grpc.CallOption) (*types.BasicResponse, error)
	Disable(ctx context.Context, in *ToggleDebugModeRequest, opts ...grpc.CallOption) (*types.BasicResponse, error)
	Status(ctx context.Context, in *types.BasicRequest, opts ...grpc.CallOption) (*DebugModeStatusResponse, error)
}

DebugModeClient is the client API for DebugMode 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 NewDebugModeClient

func NewDebugModeClient(cc grpc.ClientConnInterface) DebugModeClient

type DebugModeServer

type DebugModeServer interface {
	Enable(context.Context, *ToggleDebugModeRequest) (*types.BasicResponse, error)
	Disable(context.Context, *ToggleDebugModeRequest) (*types.BasicResponse, error)
	Status(context.Context, *types.BasicRequest) (*DebugModeStatusResponse, error)
	// contains filtered or unexported methods
}

DebugModeServer is the server API for DebugMode service. All implementations must embed UnimplementedDebugModeServer for forward compatibility

type DebugModeStatusResponse

type DebugModeStatusResponse struct {
	IsEnabled          bool  `protobuf:"varint,1,opt,name=isEnabled,proto3" json:"isEnabled,omitempty"`
	DisableAtTimestamp int64 `protobuf:"varint,2,opt,name=DisableAtTimestamp,proto3" json:"DisableAtTimestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*DebugModeStatusResponse) Descriptor deprecated

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

Deprecated: Use DebugModeStatusResponse.ProtoReflect.Descriptor instead.

func (*DebugModeStatusResponse) GetDisableAtTimestamp

func (x *DebugModeStatusResponse) GetDisableAtTimestamp() int64

func (*DebugModeStatusResponse) GetIsEnabled

func (x *DebugModeStatusResponse) GetIsEnabled() bool

func (*DebugModeStatusResponse) ProtoMessage

func (*DebugModeStatusResponse) ProtoMessage()

func (*DebugModeStatusResponse) ProtoReflect

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

func (*DebugModeStatusResponse) Reset

func (x *DebugModeStatusResponse) Reset()

func (*DebugModeStatusResponse) String

func (x *DebugModeStatusResponse) String() string

type SupportArchiveClient

type SupportArchiveClient interface {
	Create(ctx context.Context, in *CreateSupportArchiveRequest, opts ...grpc.CallOption) (SupportArchive_CreateClient, error)
}

SupportArchiveClient is the client API for SupportArchive 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 SupportArchiveServer

type SupportArchiveServer interface {
	Create(*CreateSupportArchiveRequest, SupportArchive_CreateServer) error
	// contains filtered or unexported methods
}

SupportArchiveServer is the server API for SupportArchive service. All implementations must embed UnimplementedSupportArchiveServer for forward compatibility

type SupportArchive_CreateClient

type SupportArchive_CreateClient interface {
	Recv() (*types.ChunkedDataResponse, error)
	grpc.ClientStream
}

type SupportArchive_CreateServer

type SupportArchive_CreateServer interface {
	Send(*types.ChunkedDataResponse) error
	grpc.ServerStream
}

type ToggleDebugModeRequest

type ToggleDebugModeRequest struct {
	WithMaintenanceMode bool  `protobuf:"varint,1,opt,name=withMaintenanceMode,proto3" json:"withMaintenanceMode,omitempty"`
	Timer               int32 `protobuf:"varint,2,opt,name=timer,proto3" json:"timer,omitempty"`
	// contains filtered or unexported fields
}

func (*ToggleDebugModeRequest) Descriptor deprecated

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

Deprecated: Use ToggleDebugModeRequest.ProtoReflect.Descriptor instead.

func (*ToggleDebugModeRequest) GetTimer

func (x *ToggleDebugModeRequest) GetTimer() int32

func (*ToggleDebugModeRequest) GetWithMaintenanceMode

func (x *ToggleDebugModeRequest) GetWithMaintenanceMode() bool

func (*ToggleDebugModeRequest) ProtoMessage

func (*ToggleDebugModeRequest) ProtoMessage()

func (*ToggleDebugModeRequest) ProtoReflect

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

func (*ToggleDebugModeRequest) Reset

func (x *ToggleDebugModeRequest) Reset()

func (*ToggleDebugModeRequest) String

func (x *ToggleDebugModeRequest) String() string

type UnimplementedDebugModeServer

type UnimplementedDebugModeServer struct {
}

UnimplementedDebugModeServer must be embedded to have forward compatible implementations.

func (UnimplementedDebugModeServer) Disable

func (UnimplementedDebugModeServer) Enable

func (UnimplementedDebugModeServer) Status

type UnimplementedSupportArchiveServer

type UnimplementedSupportArchiveServer struct {
}

UnimplementedSupportArchiveServer must be embedded to have forward compatible implementations.

type UnsafeDebugModeServer

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

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

type UnsafeSupportArchiveServer

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

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

Jump to

Keyboard shortcuts

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