codes

package
v0.23.9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the Apache v2.0 license.

Copyright (c) Microsoft Corporation. Licensed under the Apache v2.0 license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MocCode

type MocCode uint32

MocCode - error codes used by MOC

const (
	OK MocCode = iota
	NotFound
	Degraded
	InvalidConfiguration
	InvalidInput
	InvalidType
	NotSupported
	AlreadyExists
	InUse
	Duplicates
	InvalidFilter
	Failed
	InvalidGroup
	InvalidVersion
	OldVersion
	OutOfCapacity
	OutOfNodeCapacity
	OutOfMemory
	UpdateFailed
	NotInitialized
	NotImplemented
	OutOfRange
	AlreadySet
	NotSet
	InconsistentState
	PendingState
	WrongHost
	PoolFull
	NoActionTaken
	Expired
	Revoked
	Timeout
	RunCommandFailed
	InvalidToken
	Unknown
	DeleteFailed
	DeletePending
	FileNotFound
	PathNotFound
	NotEnoughSpace
	AccessDenied
	BlobNotFound
	GenericFailure
	NoAuthenticationInformation
	MeasurementUnitError
	QuotaViolation
	IPOutOfRange
	VolumeNotFound
	VolumeDegraded
	VolumeAccessInconsistent
)

func Convert

func Convert(code uint32) MocCode

Convert an uint32 to a MocCode. If the uint32 is not a valid MocCode, return Unknown.

func (MocCode) IsValid

func (c MocCode) IsValid() bool

IsValid - check if the code is a valid MocCode.

func (MocCode) String

func (c MocCode) String() string

String returns the string representation of the MocCode

func (MocCode) ToUint32

func (c MocCode) ToUint32() uint32

Jump to

Keyboard shortcuts

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