stcode

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailabilityStatusType

type AvailabilityStatusType uint8
const (
	UndefAvailabilityStatus         AvailabilityStatusType = 0
	AvailabilityStatusUnknown       AvailabilityStatusType = 1
	AvailabilityStatusAvailable     AvailabilityStatusType = 2
	AvailabilityStatusTemporaryDown AvailabilityStatusType = 3
	AvailabilityStatusPermanentDown AvailabilityStatusType = 4
)

func AllAvailabilityStatus

func AllAvailabilityStatus() []AvailabilityStatusType

func ParseAvailabilityStatusFromInt

func ParseAvailabilityStatusFromInt(value int) (AvailabilityStatusType, bool)

func ParseAvailabilityStatusFromString

func ParseAvailabilityStatusFromString(value string) (AvailabilityStatusType, bool)

func ParseAvailabilityStatusFromUint8

func ParseAvailabilityStatusFromUint8(value uint8) (AvailabilityStatusType, bool)

func (AvailabilityStatusType) Int

func (v AvailabilityStatusType) Int() int

func (AvailabilityStatusType) IsValid

func (v AvailabilityStatusType) IsValid() bool

func (AvailabilityStatusType) String

func (v AvailabilityStatusType) String() string

type EcosystemType

type EcosystemType uint8
const (
	UndefEcosystem    EcosystemType = 0
	EcosystemGo       EcosystemType = 1
	EcosystemComposer EcosystemType = 2
)

func AllEcosystem

func AllEcosystem() []EcosystemType

func ParseEcosystemFromInt

func ParseEcosystemFromInt(value int) (EcosystemType, bool)

func ParseEcosystemFromString

func ParseEcosystemFromString(value string) (EcosystemType, bool)

func ParseEcosystemFromUint8

func ParseEcosystemFromUint8(value uint8) (EcosystemType, bool)

func (EcosystemType) Int

func (v EcosystemType) Int() int

func (EcosystemType) IsValid

func (v EcosystemType) IsValid() bool

func (EcosystemType) String

func (v EcosystemType) String() string

type EnumInterface

type EnumInterface interface {
	String() string
	Int() int
	IsValid() bool
}

type ErrArchiveLimitExceededObj

type ErrArchiveLimitExceededObj struct {
	Cause    error
	Check    string
	Key      string
	MaxValue uint64
	Value    uint64
	Version  string
}

func NewErrArchiveLimitExceeded

func NewErrArchiveLimitExceeded(cause error, check string, key string, maxValue uint64, value uint64, version string) *ErrArchiveLimitExceededObj

func (*ErrArchiveLimitExceededObj) Error

func (obj *ErrArchiveLimitExceededObj) Error() string

func (*ErrArchiveLimitExceededObj) GetXErr

func (obj *ErrArchiveLimitExceededObj) GetXErr(logger zerolog.Logger) *zerolog.Event

func (*ErrArchiveLimitExceededObj) Unwrap

func (obj *ErrArchiveLimitExceededObj) Unwrap() error

type ErrArchiveRejectedObj

type ErrArchiveRejectedObj struct {
	Cause     error
	CheckName string
	Format    string
	Key       string
	Path      string
	Version   string
}

func NewErrArchiveRejected

func NewErrArchiveRejected(cause error, checkName string, format string, key string, path string, version string) *ErrArchiveRejectedObj

func (*ErrArchiveRejectedObj) Error

func (obj *ErrArchiveRejectedObj) Error() string

func (*ErrArchiveRejectedObj) GetXErr

func (obj *ErrArchiveRejectedObj) GetXErr(logger zerolog.Logger) *zerolog.Event

func (*ErrArchiveRejectedObj) Unwrap

func (obj *ErrArchiveRejectedObj) Unwrap() error

type ErrArtifactBuildFailedObj

type ErrArtifactBuildFailedObj struct {
	ActualHash     string
	ActualSize     uint64
	ArtifactKind   string
	Cause          error
	CheckName      string
	ExpectedHash   string
	ExpectedSize   uint64
	Key            string
	ListenerId     string
	MaterializerId string
	Version        string
}

func NewErrArtifactBuildFailed

func NewErrArtifactBuildFailed(actualHash string, actualSize uint64, artifactKind string, cause error, checkName string, expectedHash string, expectedSize uint64, key string, listenerId string, materializerId string, version string) *ErrArtifactBuildFailedObj

func (*ErrArtifactBuildFailedObj) Error

func (obj *ErrArtifactBuildFailedObj) Error() string

func (*ErrArtifactBuildFailedObj) GetXErr

func (obj *ErrArtifactBuildFailedObj) GetXErr(logger zerolog.Logger) *zerolog.Event

func (*ErrArtifactBuildFailedObj) Unwrap

func (obj *ErrArtifactBuildFailedObj) Unwrap() error

type ErrArtifactSizeExceededObj

type ErrArtifactSizeExceededObj struct {
	ArtifactKind   string
	CheckName      string
	Key            string
	ListenerId     string
	MaterializerId string
	MaxBytes       uint64
	SizeBytes      uint64
	Version        string
}

func NewErrArtifactSizeExceeded

func NewErrArtifactSizeExceeded(artifactKind string, checkName string, key string, listenerId string, materializerId string, maxBytes uint64, sizeBytes uint64, version string) *ErrArtifactSizeExceededObj

func (*ErrArtifactSizeExceededObj) Error

func (obj *ErrArtifactSizeExceededObj) Error() string

func (*ErrArtifactSizeExceededObj) GetXErr

func (obj *ErrArtifactSizeExceededObj) GetXErr(logger zerolog.Logger) *zerolog.Event

func (*ErrArtifactSizeExceededObj) Unwrap

func (obj *ErrArtifactSizeExceededObj) Unwrap() error

type ErrBrotherBlobHashMismatchObj

type ErrBrotherBlobHashMismatchObj struct {
	ActualHash   string
	Cause        error
	ExpectedHash string
	Key          string
	SourceUrl    string
	Version      string
}

func NewErrBrotherBlobHashMismatch

func NewErrBrotherBlobHashMismatch(actualHash string, cause error, expectedHash string, key string, sourceUrl string, version string) *ErrBrotherBlobHashMismatchObj

func (*ErrBrotherBlobHashMismatchObj) Error

func (*ErrBrotherBlobHashMismatchObj) GetXErr

func (*ErrBrotherBlobHashMismatchObj) Unwrap

func (obj *ErrBrotherBlobHashMismatchObj) Unwrap() error

type ErrBrotherContractNotConfirmedObj

type ErrBrotherContractNotConfirmedObj struct {
	ContractReason string
	Key            string
	SourceUrl      string
}

func NewErrBrotherContractNotConfirmed

func NewErrBrotherContractNotConfirmed(contractReason string, key string, sourceUrl string) *ErrBrotherContractNotConfirmedObj

func (*ErrBrotherContractNotConfirmedObj) Error

func (*ErrBrotherContractNotConfirmedObj) GetXErr

func (*ErrBrotherContractNotConfirmedObj) Unwrap

type ErrBrotherRpcInvalidObj

type ErrBrotherRpcInvalidObj struct {
	Cause         error
	Key           string
	MaxBytes      uint64
	Method        string
	ResponseBytes uint64
	RpcReason     string
	SourceUrl     string
}

func NewErrBrotherRpcInvalid

func NewErrBrotherRpcInvalid(cause error, key string, maxBytes uint64, method string, responseBytes uint64, rpcReason string, sourceUrl string) *ErrBrotherRpcInvalidObj

func (*ErrBrotherRpcInvalidObj) Error

func (obj *ErrBrotherRpcInvalidObj) Error() string

func (*ErrBrotherRpcInvalidObj) GetXErr

func (obj *ErrBrotherRpcInvalidObj) GetXErr(logger zerolog.Logger) *zerolog.Event

func (*ErrBrotherRpcInvalidObj) Unwrap

func (obj *ErrBrotherRpcInvalidObj) Unwrap() error

type ErrCacheQuotaExceededObj

type ErrCacheQuotaExceededObj struct {
	AdmissionBytes     uint64
	CacheArea          string
	Cause              error
	CheckName          string
	CurrentTotalBytes  uint64
	EvictToBytes       uint64
	IncomingBytes      uint64
	MaxTotalBytes      uint64
	RetainLatestPerKey uint32
}

func NewErrCacheQuotaExceeded

func NewErrCacheQuotaExceeded(admissionBytes uint64, cacheArea string, cause error, checkName string, currentTotalBytes uint64, evictToBytes uint64, incomingBytes uint64, maxTotalBytes uint64, retainLatestPerKey uint32) *ErrCacheQuotaExceededObj

func (*ErrCacheQuotaExceededObj) Error

func (obj *ErrCacheQuotaExceededObj) Error() string

func (*ErrCacheQuotaExceededObj) GetXErr

func (obj *ErrCacheQuotaExceededObj) GetXErr(logger zerolog.Logger) *zerolog.Event

func (*ErrCacheQuotaExceededObj) Unwrap

func (obj *ErrCacheQuotaExceededObj) Unwrap() error

type ErrComposerNameCollisionObj

type ErrComposerNameCollisionObj struct {
	ConflictingKey string
	Key            string
	PackageName    string
}

func NewErrComposerNameCollision

func NewErrComposerNameCollision(conflictingKey string, key string, packageName string) *ErrComposerNameCollisionObj

func (*ErrComposerNameCollisionObj) Error

func (obj *ErrComposerNameCollisionObj) Error() string

func (*ErrComposerNameCollisionObj) GetXErr

func (obj *ErrComposerNameCollisionObj) GetXErr(logger zerolog.Logger) *zerolog.Event

func (*ErrComposerNameCollisionObj) Unwrap

func (obj *ErrComposerNameCollisionObj) Unwrap() error

type ErrSourceDownloadFailedObj

type ErrSourceDownloadFailedObj struct {
	Attempts       uint8
	Cause          error
	Key            string
	SourceUrl      string
	TimeoutSeconds uint32
	Version        string
}

func NewErrSourceDownloadFailed

func NewErrSourceDownloadFailed(attempts uint8, cause error, key string, sourceUrl string, timeoutSeconds uint32, version string) *ErrSourceDownloadFailedObj

func (*ErrSourceDownloadFailedObj) Error

func (obj *ErrSourceDownloadFailedObj) Error() string

func (*ErrSourceDownloadFailedObj) GetXErr

func (obj *ErrSourceDownloadFailedObj) GetXErr(logger zerolog.Logger) *zerolog.Event

func (*ErrSourceDownloadFailedObj) Unwrap

func (obj *ErrSourceDownloadFailedObj) Unwrap() error

type ListenerType

type ListenerType uint8
const (
	UndefListener  ListenerType = 0
	ListenerGlobal ListenerType = 1
	ListenerWeb    ListenerType = 2
	ListenerYgg    ListenerType = 3
)

func AllListener

func AllListener() []ListenerType

func ParseListenerFromInt

func ParseListenerFromInt(value int) (ListenerType, bool)

func ParseListenerFromString

func ParseListenerFromString(value string) (ListenerType, bool)

func ParseListenerFromUint8

func ParseListenerFromUint8(value uint8) (ListenerType, bool)

func (ListenerType) Int

func (v ListenerType) Int() int

func (ListenerType) IsValid

func (v ListenerType) IsValid() bool

func (ListenerType) String

func (v ListenerType) String() string

type LogReasonType

type LogReasonType uint8
const (
	UndefLogReason                         LogReasonType = 0
	LogReasonBadRequest                    LogReasonType = 1
	LogReasonUpstreamUnavailable           LogReasonType = 2
	LogReasonUpstreamConflict              LogReasonType = 3
	LogReasonCacheQuotaExceeded            LogReasonType = 4
	LogReasonArtifactMaterializationFailed LogReasonType = 5
	LogReasonGoOverlayDegraded             LogReasonType = 6
)

func AllLogReason

func AllLogReason() []LogReasonType

func ParseLogReasonFromInt

func ParseLogReasonFromInt(value int) (LogReasonType, bool)

func ParseLogReasonFromString

func ParseLogReasonFromString(value string) (LogReasonType, bool)

func ParseLogReasonFromUint8

func ParseLogReasonFromUint8(value uint8) (LogReasonType, bool)

func (LogReasonType) Int

func (v LogReasonType) Int() int

func (LogReasonType) IsValid

func (v LogReasonType) IsValid() bool

func (LogReasonType) String

func (v LogReasonType) String() string

type LogScopeType

type LogScopeType uint8
const (
	UndefLogScope   LogScopeType = 0
	LogScopeGlobal  LogScopeType = 1
	LogScopeKey     LogScopeType = 2
	LogScopeVersion LogScopeType = 3
)

func AllLogScope

func AllLogScope() []LogScopeType

func ParseLogScopeFromInt

func ParseLogScopeFromInt(value int) (LogScopeType, bool)

func ParseLogScopeFromString

func ParseLogScopeFromString(value string) (LogScopeType, bool)

func ParseLogScopeFromUint8

func ParseLogScopeFromUint8(value uint8) (LogScopeType, bool)

func (LogScopeType) Int

func (v LogScopeType) Int() int

func (LogScopeType) IsValid

func (v LogScopeType) IsValid() bool

func (LogScopeType) String

func (v LogScopeType) String() string

type MaterializerType

type MaterializerType uint8
const (
	UndefMaterializer     MaterializerType = 0
	MaterializerUniversal MaterializerType = 1
	MaterializerGo        MaterializerType = 2
)

func AllMaterializer

func AllMaterializer() []MaterializerType

func ParseMaterializerFromInt

func ParseMaterializerFromInt(value int) (MaterializerType, bool)

func ParseMaterializerFromString

func ParseMaterializerFromString(value string) (MaterializerType, bool)

func ParseMaterializerFromUint8

func ParseMaterializerFromUint8(value uint8) (MaterializerType, bool)

func (MaterializerType) Int

func (v MaterializerType) Int() int

func (MaterializerType) IsValid

func (v MaterializerType) IsValid() bool

func (MaterializerType) String

func (v MaterializerType) String() string

type OperationalStatusType

type OperationalStatusType uint8
const (
	UndefOperationalStatus    OperationalStatusType = 0
	OperationalStatusOk       OperationalStatusType = 1
	OperationalStatusDegraded OperationalStatusType = 2
	OperationalStatusError    OperationalStatusType = 3
)

func AllOperationalStatus

func AllOperationalStatus() []OperationalStatusType

func ParseOperationalStatusFromInt

func ParseOperationalStatusFromInt(value int) (OperationalStatusType, bool)

func ParseOperationalStatusFromString

func ParseOperationalStatusFromString(value string) (OperationalStatusType, bool)

func ParseOperationalStatusFromUint8

func ParseOperationalStatusFromUint8(value uint8) (OperationalStatusType, bool)

func (OperationalStatusType) Int

func (v OperationalStatusType) Int() int

func (OperationalStatusType) IsValid

func (v OperationalStatusType) IsValid() bool

func (OperationalStatusType) String

func (v OperationalStatusType) String() string

type SourceClassType

type SourceClassType uint8
const (
	UndefSourceClass   SourceClassType = 0
	SourceClassGit     SourceClassType = 1
	SourceClassBrother SourceClassType = 2
)

func AllSourceClass

func AllSourceClass() []SourceClassType

func ParseSourceClassFromInt

func ParseSourceClassFromInt(value int) (SourceClassType, bool)

func ParseSourceClassFromString

func ParseSourceClassFromString(value string) (SourceClassType, bool)

func ParseSourceClassFromUint8

func ParseSourceClassFromUint8(value uint8) (SourceClassType, bool)

func (SourceClassType) Int

func (v SourceClassType) Int() int

func (SourceClassType) IsValid

func (v SourceClassType) IsValid() bool

func (SourceClassType) String

func (v SourceClassType) String() string

type XErrInterface

type XErrInterface interface {
	error
	GetXErr(logger zerolog.Logger) *zerolog.Event
}

Jump to

Keyboard shortcuts

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