status

package
v0.0.0-...-8d85ad9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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 (*ControlIndexMigrationStatus) ProtoMessage

func (*ControlIndexMigrationStatus) ProtoMessage()

func (*ControlIndexMigrationStatus) ProtoReflect

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) Enum

func (ControlIndexMigrationStatus_Status) EnumDescriptor deprecated

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

Deprecated: Use ControlIndexMigrationStatus_Status.Descriptor instead.

func (ControlIndexMigrationStatus_Status) Number

func (ControlIndexMigrationStatus_Status) String

func (ControlIndexMigrationStatus_Status) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use LogEntry.ProtoReflect.Descriptor instead.

func (*LogEntry) GetLabel

func (x *LogEntry) GetLabel() string

func (*LogEntry) GetText

func (x *LogEntry) GetText() string

func (*LogEntry) GetTimestamp

func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp

func (*LogEntry) ProtoMessage

func (*LogEntry) ProtoMessage()

func (*LogEntry) ProtoReflect

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

func (*LogEntry) Reset

func (x *LogEntry) Reset()

func (*LogEntry) String

func (x *LogEntry) String() string

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) Enum

func (MigrationStatus_Status) EnumDescriptor deprecated

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

Deprecated: Use MigrationStatus_Status.Descriptor instead.

func (MigrationStatus_Status) Number

func (MigrationStatus_Status) String

func (x MigrationStatus_Status) String() string

func (MigrationStatus_Status) Type

type UnimplementedComplianceStatusServiceServer

type UnimplementedComplianceStatusServiceServer struct {
}

UnimplementedComplianceStatusServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedComplianceStatusServiceServer) GetControlIndexMigrationStatus

func (*UnimplementedComplianceStatusServiceServer) GetMigrationStatus

Jump to

Keyboard shortcuts

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