dom

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternal             = errors.New("InternalError")
	ErrNotImplemented       = errors.New("NotImplemented")
	ErrInvalidStorageConfig = errors.New("InvalidStorageConfig")
	ErrAlreadyExists        = errors.New("AlreadyExists")
	ErrNotFound             = errors.New("NotFound")
	ErrInvalidArg           = errors.New("InvalidArg")
	ErrAuth                 = errors.New("AuthError")
	ErrPolicy               = errors.New("PolicyError")
)

Functions

func ErrCode

func ErrCode(err error) int

func ErrContains added in v0.5.7

func ErrContains(err error, text ...string) bool

Types

type AppInfo

type AppInfo struct {
	Version string `yaml:"version"`
	Commit  string `yaml:"commit"`
	App     string `yaml:"app"`
	AppID   string `yaml:"appID"`
}

type ErrRateLimitExceeded

type ErrRateLimitExceeded struct {
	RetryIn time.Duration
}

func (*ErrRateLimitExceeded) Error

func (e *ErrRateLimitExceeded) Error() string

type Object

type Object struct {
	Bucket  string
	Name    string
	Version string
}

func (Object) ACLKey

func (o Object) ACLKey() string

func (Object) Key

func (o Object) Key() string

func (Object) TagKey

func (o Object) TagKey() string

Jump to

Keyboard shortcuts

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