types

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KiloBytes int64 = 1024
	MegaBytes int64 = KiloBytes * 1024
	GigaBytes int64 = MegaBytes * 1024
	TeraBytes int64 = GigaBytes * 1024

	Minute int = 60
	Hour   int = Minute * 60
	Day    int = Hour * 24
)

Variables

This section is empty.

Functions

func IsInvalidOrcIDError

func IsInvalidOrcIDError(err error) bool

IsInvalidOrcIDError evaluates if the given error is InvalidOrcIDError

func IsInvalidSubmitMetadataError

func IsInvalidSubmitMetadataError(err error) bool

IsInvalidSubmitMetadataError evaluates if the given error is InvalidSubmitMetadataError

func IsInvalidTicketError

func IsInvalidTicketError(err error) bool

IsInvalidTicketError evaluates if the given error is InvalidTicketError

func IsMDRepoServiceError

func IsMDRepoServiceError(err error) bool

IsMDRepoServiceError evaluates if the given error is MDRepoServiceError

func IsNotDirError

func IsNotDirError(err error) bool

IsNotDirError evaluates if the given error is NotDirError

func IsNotFileError

func IsNotFileError(err error) bool

IsNotFileError evaluates if the given error is NotFileError

func IsSimulationNoNotMatchingError

func IsSimulationNoNotMatchingError(err error) bool

IsSimulationNoNotMatchingError evaluates if the given error is SimulationNoNotMatchingError

func IsTokenNotProvidedError

func IsTokenNotProvidedError(err error) bool

IsTokenNotProvidedError evaluates if the given error is TokenNotProvidedError

func IsWebDAVError

func IsWebDAVError(err error) bool

IsWebDAVError evaluates if the given error is WebDAVError

func MakeDateTimeFromString

func MakeDateTimeFromString(str string) (time.Time, error)

func MakeDateTimeString

func MakeDateTimeString(t time.Time) string

func MakeDateTimeStringHM

func MakeDateTimeStringHM(t time.Time) string

func NewDialHTTPError

func NewDialHTTPError(url string) error

func NewInvalidOrcIDError

func NewInvalidOrcIDError(requestedOrcID string, foundOrcID string) error

func NewInvalidSubmitMetadataError

func NewInvalidSubmitMetadataError() error

func NewInvalidTicketError

func NewInvalidTicketError(ticket string) error

func NewMDRepoServiceError

func NewMDRepoServiceError(message string) error

func NewNotDirError

func NewNotDirError(dest string) error

func NewNotFileError

func NewNotFileError(dest string) error

func NewSimulationNoNotMatchingError

func NewSimulationNoNotMatchingError(valid []string, invalid []string, invalidErrors []error, expected int) error

NewSimulationNoNotMatchingError creates a simulation no not matching error

func NewTokenNotProvidedError

func NewTokenNotProvidedError() error

func NewWebDAVError

func NewWebDAVError(url string, errorCode int) error

func ParseSize

func ParseSize(size string) (int64, error)

func ParseTime

func ParseTime(t string) (int, error)

func SizeString

func SizeString(bytes int64) string

Types

type DialHTTPError

type DialHTTPError struct {
	URL string
}

func (*DialHTTPError) Error

func (err *DialHTTPError) Error() string

Error returns error message

type InvalidOrcIDError

type InvalidOrcIDError struct {
	RequestedOrcID string
	FoundOrcID     string
}

func (*InvalidOrcIDError) Error

func (err *InvalidOrcIDError) Error() string

Error returns error message

func (*InvalidOrcIDError) Is

func (err *InvalidOrcIDError) Is(other error) bool

Is tests type of error

func (*InvalidOrcIDError) ToString

func (err *InvalidOrcIDError) ToString() string

ToString stringifies the object

type InvalidSubmitMetadataError

type InvalidSubmitMetadataError struct {
	Errors []error
}

func (*InvalidSubmitMetadataError) Add

func (err *InvalidSubmitMetadataError) Add(message error)

func (*InvalidSubmitMetadataError) Error

func (err *InvalidSubmitMetadataError) Error() string

Error returns error message

func (*InvalidSubmitMetadataError) ErrorLen

func (err *InvalidSubmitMetadataError) ErrorLen() int

func (*InvalidSubmitMetadataError) Is

func (err *InvalidSubmitMetadataError) Is(other error) bool

Is tests type of error

func (*InvalidSubmitMetadataError) ToString

func (err *InvalidSubmitMetadataError) ToString() string

ToString stringifies the object

type InvalidTicketError

type InvalidTicketError struct {
	Ticket string
}

func (*InvalidTicketError) Error

func (err *InvalidTicketError) Error() string

Error returns error message

func (*InvalidTicketError) Is

func (err *InvalidTicketError) Is(other error) bool

Is tests type of error

func (*InvalidTicketError) ToString

func (err *InvalidTicketError) ToString() string

ToString stringifies the object

type MDRepoServiceError

type MDRepoServiceError struct {
	Message string
}

func (*MDRepoServiceError) Error

func (err *MDRepoServiceError) Error() string

Error returns error message

func (*MDRepoServiceError) Is

func (err *MDRepoServiceError) Is(other error) bool

Is tests type of error

func (*MDRepoServiceError) ToString

func (err *MDRepoServiceError) ToString() string

ToString stringifies the object

type NotDirError

type NotDirError struct {
	Path string
}

func (*NotDirError) Error

func (err *NotDirError) Error() string

Error returns error message

func (*NotDirError) Is

func (err *NotDirError) Is(other error) bool

Is tests type of error

func (*NotDirError) ToString

func (err *NotDirError) ToString() string

ToString stringifies the object

type NotFileError

type NotFileError struct {
	Path string
}

func (*NotFileError) Error

func (err *NotFileError) Error() string

Error returns error message

func (*NotFileError) Is

func (err *NotFileError) Is(other error) bool

Is tests type of error

func (*NotFileError) ToString

func (err *NotFileError) ToString() string

ToString stringifies the object

type SimulationNoNotMatchingError

type SimulationNoNotMatchingError struct {
	ValidSimulationPaths         []string
	InvalidSimulationPaths       []string
	InvalidSimulationPathsErrors []error
	Expected                     int
}

func (*SimulationNoNotMatchingError) Error

func (err *SimulationNoNotMatchingError) Error() string

Error returns error message

func (*SimulationNoNotMatchingError) Is

func (err *SimulationNoNotMatchingError) Is(other error) bool

Is tests type of error

func (*SimulationNoNotMatchingError) ToString

func (err *SimulationNoNotMatchingError) ToString() string

ToString stringifies the object

type TokenNotProvidedError

type TokenNotProvidedError struct {
}

func (*TokenNotProvidedError) Error

func (err *TokenNotProvidedError) Error() string

Error returns error message

func (*TokenNotProvidedError) Is

func (err *TokenNotProvidedError) Is(other error) bool

Is tests type of error

func (*TokenNotProvidedError) ToString

func (err *TokenNotProvidedError) ToString() string

ToString stringifies the object

type WebDAVError

type WebDAVError struct {
	URL       string
	ErrorCode int
}

func (*WebDAVError) Error

func (err *WebDAVError) Error() string

Error returns error message

func (*WebDAVError) Is

func (err *WebDAVError) Is(other error) bool

Is tests type of error

func (*WebDAVError) ToString

func (err *WebDAVError) ToString() string

ToString stringifies the object

Jump to

Keyboard shortcuts

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