errorsv1

package
v0.0.0-...-3a74bb8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Fault_name = map[int32]string{
		0: "FAULT_UNSPECIFIED",
		1: "FAULT_UNKNOWN",
		2: "FAULT_PLANETSCALE",
		3: "FAULT_GITHUB",
	}
	Fault_value = map[string]int32{
		"FAULT_UNSPECIFIED": 0,
		"FAULT_UNKNOWN":     1,
		"FAULT_PLANETSCALE": 2,
		"FAULT_GITHUB":      3,
	}
)

Enum value maps for Fault.

View Source
var (
	Service_name = map[int32]string{
		0:  "ServiceUnknown",
		1:  "ServiceAgent",
		2:  "ServiceAuth",
		3:  "ServiceCatalog",
		4:  "ServiceConfig",
		5:  "ServiceDNS",
		6:  "ServiceGateway",
		7:  "ServiceGitHub",
		8:  "ServiceKubernetes",
		9:  "ServiceLog",
		10: "ServiceMetrics",
		11: "ServiceMonitor",
		12: "ServiceNetwork",
		13: "ServiceOperator",
		14: "ServiceRegistry",
		15: "ServiceSecret",
		16: "ServiceStorage",
		17: "ServiceSystem",
		18: "ServiceTelemetry",
		19: "ServiceToken",
		20: "ServiceUser",
		21: "ServiceVault",
		22: "ServiceWebhook",
	}
	Service_value = map[string]int32{
		"ServiceUnknown":    0,
		"ServiceAgent":      1,
		"ServiceAuth":       2,
		"ServiceCatalog":    3,
		"ServiceConfig":     4,
		"ServiceDNS":        5,
		"ServiceGateway":    6,
		"ServiceGitHub":     7,
		"ServiceKubernetes": 8,
		"ServiceLog":        9,
		"ServiceMetrics":    10,
		"ServiceMonitor":    11,
		"ServiceNetwork":    12,
		"ServiceOperator":   13,
		"ServiceRegistry":   14,
		"ServiceSecret":     15,
		"ServiceStorage":    16,
		"ServiceSystem":     17,
		"ServiceTelemetry":  18,
		"ServiceToken":      19,
		"ServiceUser":       20,
		"ServiceVault":      21,
		"ServiceWebhook":    22,
	}
)

Enum value maps for Service.

View Source
var (
	ErrorCode_name = map[int32]string{
		0: "ErrorCodeUnspecified",
		1: "ErrorCodeInternal",
	}
	ErrorCode_value = map[string]int32{
		"ErrorCodeUnspecified": 0,
		"ErrorCodeInternal":    1,
	}
)

Enum value maps for ErrorCode.

View Source
var File_proto_errors_v1_errors_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Action

type Action struct {
	Url         *string `protobuf:"bytes,1,opt,name=url,proto3,oneof" json:"url,omitempty"`
	Label       string  `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Description string  `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Action) Descriptor deprecated

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetDescription

func (x *Action) GetDescription() string

func (*Action) GetLabel

func (x *Action) GetLabel() string

func (*Action) GetUrl

func (x *Action) GetUrl() string

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

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

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

type Error

type Error struct {
	Fault    Fault            `protobuf:"varint,1,opt,name=fault,proto3,enum=errors.v1.Fault" json:"fault,omitempty"`
	Group    string           `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	Code     ErrorCode        `protobuf:"varint,3,opt,name=code,proto3,enum=errors.v1.ErrorCode" json:"code,omitempty"`
	Type     string           `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Metadata *structpb.Struct `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Suggested actions the user should take to resolve this error.
	// These actions are not guaranteed to resolve the error, but they are a good starting point.
	//
	// As a last resort, the user should contact support.
	//
	// The actions are ordered by importance, the first action should be presented first.
	Actions []*Action `protobuf:"bytes,6,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetActions

func (x *Error) GetActions() []*Action

func (*Error) GetCode

func (x *Error) GetCode() ErrorCode

func (*Error) GetFault

func (x *Error) GetFault() Fault

func (*Error) GetGroup

func (x *Error) GetGroup() string

func (*Error) GetMetadata

func (x *Error) GetMetadata() *structpb.Struct

func (*Error) GetType

func (x *Error) GetType() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type ErrorCode

type ErrorCode int32
const (
	ErrorCode_ErrorCodeUnspecified ErrorCode = 0
	ErrorCode_ErrorCodeInternal    ErrorCode = 1
)

func (ErrorCode) Descriptor

func (ErrorCode) Descriptor() protoreflect.EnumDescriptor

func (ErrorCode) Enum

func (x ErrorCode) Enum() *ErrorCode

func (ErrorCode) EnumDescriptor deprecated

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

Deprecated: Use ErrorCode.Descriptor instead.

func (ErrorCode) Number

func (x ErrorCode) Number() protoreflect.EnumNumber

func (ErrorCode) String

func (x ErrorCode) String() string

func (ErrorCode) Type

type Fault

type Fault int32
const (
	Fault_FAULT_UNSPECIFIED Fault = 0
	Fault_FAULT_UNKNOWN     Fault = 1
	Fault_FAULT_PLANETSCALE Fault = 2
	Fault_FAULT_GITHUB      Fault = 3
)

func (Fault) Descriptor

func (Fault) Descriptor() protoreflect.EnumDescriptor

func (Fault) Enum

func (x Fault) Enum() *Fault

func (Fault) EnumDescriptor deprecated

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

Deprecated: Use Fault.Descriptor instead.

func (Fault) Number

func (x Fault) Number() protoreflect.EnumNumber

func (Fault) String

func (x Fault) String() string

func (Fault) Type

func (Fault) Type() protoreflect.EnumType

type Service

type Service int32
const (
	Service_ServiceUnknown    Service = 0
	Service_ServiceAgent      Service = 1
	Service_ServiceAuth       Service = 2
	Service_ServiceCatalog    Service = 3
	Service_ServiceConfig     Service = 4
	Service_ServiceDNS        Service = 5
	Service_ServiceGateway    Service = 6
	Service_ServiceGitHub     Service = 7
	Service_ServiceKubernetes Service = 8
	Service_ServiceLog        Service = 9
	Service_ServiceMetrics    Service = 10
	Service_ServiceMonitor    Service = 11
	Service_ServiceNetwork    Service = 12
	Service_ServiceOperator   Service = 13
	Service_ServiceRegistry   Service = 14
	Service_ServiceSecret     Service = 15
	Service_ServiceStorage    Service = 16
	Service_ServiceSystem     Service = 17
	Service_ServiceTelemetry  Service = 18
	Service_ServiceToken      Service = 19
	Service_ServiceUser       Service = 20
	Service_ServiceVault      Service = 21
	Service_ServiceWebhook    Service = 22
)

func (Service) Descriptor

func (Service) Descriptor() protoreflect.EnumDescriptor

func (Service) Enum

func (x Service) Enum() *Service

func (Service) EnumDescriptor deprecated

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

Deprecated: Use Service.Descriptor instead.

func (Service) Number

func (x Service) Number() protoreflect.EnumNumber

func (Service) String

func (x Service) String() string

func (Service) Type

func (Service) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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