Documentation ¶
Index ¶
- Variables
- func RegisterComplianceStatusServiceServer(s *grpc.Server, srv ComplianceStatusServiceServer)
- type ComplianceStatusServiceClient
- type ComplianceStatusServiceServer
- type ControlIndexMigrationStatus
- func (*ControlIndexMigrationStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ControlIndexMigrationStatus) GetStatus() ControlIndexMigrationStatus_Status
- func (*ControlIndexMigrationStatus) ProtoMessage()
- func (x *ControlIndexMigrationStatus) ProtoReflect() protoreflect.Message
- func (x *ControlIndexMigrationStatus) Reset()
- func (x *ControlIndexMigrationStatus) String() string
- type ControlIndexMigrationStatus_Status
- func (ControlIndexMigrationStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x ControlIndexMigrationStatus_Status) Enum() *ControlIndexMigrationStatus_Status
- func (ControlIndexMigrationStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x ControlIndexMigrationStatus_Status) Number() protoreflect.EnumNumber
- func (x ControlIndexMigrationStatus_Status) String() string
- func (ControlIndexMigrationStatus_Status) Type() protoreflect.EnumType
- type LogEntry
- func (*LogEntry) Descriptor() ([]byte, []int)deprecated
- func (x *LogEntry) GetLabel() string
- func (x *LogEntry) GetText() string
- func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp
- func (*LogEntry) ProtoMessage()
- func (x *LogEntry) ProtoReflect() protoreflect.Message
- func (x *LogEntry) Reset()
- func (x *LogEntry) String() string
- type MigrationStatus
- func (*MigrationStatus) Descriptor() ([]byte, []int)deprecated
- func (x *MigrationStatus) GetCompleted() int64
- func (x *MigrationStatus) GetLogs() []*LogEntry
- func (x *MigrationStatus) GetStatus() MigrationStatus_Status
- func (x *MigrationStatus) GetTotal() int64
- func (*MigrationStatus) ProtoMessage()
- func (x *MigrationStatus) ProtoReflect() protoreflect.Message
- func (x *MigrationStatus) Reset()
- func (x *MigrationStatus) String() string
- type MigrationStatus_Status
- func (MigrationStatus_Status) Descriptor() protoreflect.EnumDescriptor
- func (x MigrationStatus_Status) Enum() *MigrationStatus_Status
- func (MigrationStatus_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x MigrationStatus_Status) Number() protoreflect.EnumNumber
- func (x MigrationStatus_Status) String() string
- func (MigrationStatus_Status) Type() protoreflect.EnumType
- type UnimplementedComplianceStatusServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( MigrationStatus_Status_name = map[int32]string{ 0: "UNKNOWN", 1: "RUNNING", 2: "FINISHED", 3: "FAILED", 4: "SKIPPED", } MigrationStatus_Status_value = map[string]int32{ "UNKNOWN": 0, "RUNNING": 1, "FINISHED": 2, "FAILED": 3, "SKIPPED": 4, } )
Enum value maps for MigrationStatus_Status.
var ( ControlIndexMigrationStatus_Status_name = map[int32]string{ 0: "NOTCONFIGURED", 1: "NOTSTARTED", 2: "INPROGRESS", 3: "COMPLETED", } ControlIndexMigrationStatus_Status_value = map[string]int32{ "NOTCONFIGURED": 0, "NOTSTARTED": 1, "INPROGRESS": 2, "COMPLETED": 3, } )
Enum value maps for ControlIndexMigrationStatus_Status.
var File_interservice_compliance_status_status_proto protoreflect.FileDescriptor
Functions ¶
func RegisterComplianceStatusServiceServer ¶
func RegisterComplianceStatusServiceServer(s *grpc.Server, srv ComplianceStatusServiceServer)
Types ¶
type ComplianceStatusServiceClient ¶
type ComplianceStatusServiceClient interface { GetMigrationStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*MigrationStatus, error) GetControlIndexMigrationStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ControlIndexMigrationStatus, error) }
ComplianceStatusServiceClient is the client API for ComplianceStatusService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewComplianceStatusServiceClient ¶
func NewComplianceStatusServiceClient(cc grpc.ClientConnInterface) ComplianceStatusServiceClient
type ComplianceStatusServiceServer ¶
type ComplianceStatusServiceServer interface { GetMigrationStatus(context.Context, *emptypb.Empty) (*MigrationStatus, error) GetControlIndexMigrationStatus(context.Context, *emptypb.Empty) (*ControlIndexMigrationStatus, error) }
ComplianceStatusServiceServer is the server API for ComplianceStatusService service.
type ControlIndexMigrationStatus ¶
type ControlIndexMigrationStatus struct { Status ControlIndexMigrationStatus_Status `` /* 201-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ControlIndexMigrationStatus) Descriptor
deprecated
func (*ControlIndexMigrationStatus) Descriptor() ([]byte, []int)
Deprecated: Use ControlIndexMigrationStatus.ProtoReflect.Descriptor instead.
func (*ControlIndexMigrationStatus) GetStatus ¶
func (x *ControlIndexMigrationStatus) GetStatus() ControlIndexMigrationStatus_Status
func (*ControlIndexMigrationStatus) ProtoMessage ¶
func (*ControlIndexMigrationStatus) ProtoMessage()
func (*ControlIndexMigrationStatus) ProtoReflect ¶
func (x *ControlIndexMigrationStatus) ProtoReflect() protoreflect.Message
func (*ControlIndexMigrationStatus) Reset ¶
func (x *ControlIndexMigrationStatus) Reset()
func (*ControlIndexMigrationStatus) String ¶
func (x *ControlIndexMigrationStatus) String() string
type ControlIndexMigrationStatus_Status ¶
type ControlIndexMigrationStatus_Status int32
const ( ControlIndexMigrationStatus_NOTCONFIGURED ControlIndexMigrationStatus_Status = 0 ControlIndexMigrationStatus_NOTSTARTED ControlIndexMigrationStatus_Status = 1 ControlIndexMigrationStatus_INPROGRESS ControlIndexMigrationStatus_Status = 2 ControlIndexMigrationStatus_COMPLETED ControlIndexMigrationStatus_Status = 3 )
func (ControlIndexMigrationStatus_Status) Descriptor ¶
func (ControlIndexMigrationStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (ControlIndexMigrationStatus_Status) Enum ¶
func (x ControlIndexMigrationStatus_Status) Enum() *ControlIndexMigrationStatus_Status
func (ControlIndexMigrationStatus_Status) EnumDescriptor
deprecated
func (ControlIndexMigrationStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use ControlIndexMigrationStatus_Status.Descriptor instead.
func (ControlIndexMigrationStatus_Status) Number ¶
func (x ControlIndexMigrationStatus_Status) Number() protoreflect.EnumNumber
func (ControlIndexMigrationStatus_Status) String ¶
func (x ControlIndexMigrationStatus_Status) String() string
func (ControlIndexMigrationStatus_Status) Type ¶
func (ControlIndexMigrationStatus_Status) Type() protoreflect.EnumType
type LogEntry ¶
type LogEntry struct { Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty" toml:"label,omitempty" mapstructure:"label,omitempty"` Timestamp *timestamppb.Timestamp `` /* 133-byte string literal not displayed */ Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty" toml:"text,omitempty" mapstructure:"text,omitempty"` // contains filtered or unexported fields }
label is used to differentiate between multiple migrations done by one service
func (*LogEntry) Descriptor
deprecated
func (*LogEntry) GetTimestamp ¶
func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp
func (*LogEntry) ProtoMessage ¶
func (*LogEntry) ProtoMessage()
func (*LogEntry) ProtoReflect ¶
func (x *LogEntry) ProtoReflect() protoreflect.Message
type MigrationStatus ¶
type MigrationStatus struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty" toml:"total,omitempty" mapstructure:"total,omitempty"` Completed int64 `` /* 134-byte string literal not displayed */ Logs []*LogEntry `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs,omitempty" toml:"logs,omitempty" mapstructure:"logs,omitempty"` Status MigrationStatus_Status `` /* 189-byte string literal not displayed */ // contains filtered or unexported fields }
MigrationStatus message
func (*MigrationStatus) Descriptor
deprecated
func (*MigrationStatus) Descriptor() ([]byte, []int)
Deprecated: Use MigrationStatus.ProtoReflect.Descriptor instead.
func (*MigrationStatus) GetCompleted ¶
func (x *MigrationStatus) GetCompleted() int64
func (*MigrationStatus) GetLogs ¶
func (x *MigrationStatus) GetLogs() []*LogEntry
func (*MigrationStatus) GetStatus ¶
func (x *MigrationStatus) GetStatus() MigrationStatus_Status
func (*MigrationStatus) GetTotal ¶
func (x *MigrationStatus) GetTotal() int64
func (*MigrationStatus) ProtoMessage ¶
func (*MigrationStatus) ProtoMessage()
func (*MigrationStatus) ProtoReflect ¶
func (x *MigrationStatus) ProtoReflect() protoreflect.Message
func (*MigrationStatus) Reset ¶
func (x *MigrationStatus) Reset()
func (*MigrationStatus) String ¶
func (x *MigrationStatus) String() string
type MigrationStatus_Status ¶
type MigrationStatus_Status int32
const ( MigrationStatus_UNKNOWN MigrationStatus_Status = 0 MigrationStatus_RUNNING MigrationStatus_Status = 1 MigrationStatus_FINISHED MigrationStatus_Status = 2 MigrationStatus_FAILED MigrationStatus_Status = 3 MigrationStatus_SKIPPED MigrationStatus_Status = 4 )
func (MigrationStatus_Status) Descriptor ¶
func (MigrationStatus_Status) Descriptor() protoreflect.EnumDescriptor
func (MigrationStatus_Status) Enum ¶
func (x MigrationStatus_Status) Enum() *MigrationStatus_Status
func (MigrationStatus_Status) EnumDescriptor
deprecated
func (MigrationStatus_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use MigrationStatus_Status.Descriptor instead.
func (MigrationStatus_Status) Number ¶
func (x MigrationStatus_Status) Number() protoreflect.EnumNumber
func (MigrationStatus_Status) String ¶
func (x MigrationStatus_Status) String() string
func (MigrationStatus_Status) Type ¶
func (MigrationStatus_Status) Type() protoreflect.EnumType
type UnimplementedComplianceStatusServiceServer ¶
type UnimplementedComplianceStatusServiceServer struct { }
UnimplementedComplianceStatusServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedComplianceStatusServiceServer) GetControlIndexMigrationStatus ¶
func (*UnimplementedComplianceStatusServiceServer) GetControlIndexMigrationStatus(context.Context, *emptypb.Empty) (*ControlIndexMigrationStatus, error)
func (*UnimplementedComplianceStatusServiceServer) GetMigrationStatus ¶
func (*UnimplementedComplianceStatusServiceServer) GetMigrationStatus(context.Context, *emptypb.Empty) (*MigrationStatus, error)