Documentation ¶
Index ¶
- Variables
- func ErrorEqual(t *testing.T, expected error, err error)
- func FeedDefaultResources(r *capsule.Resources)
- func GetData(stream interface{ ... }, maxSize int) ([]byte, error)
- func GetExponentialBackoff(backoff float64, factor float64) time.Duration
- func GetIdentifierFromIdentifier(userID uuid.UUID) (string, string)
- func ImageExistsNatively(ctx context.Context, dc *client.Client, image string) (bool, string, error)
- func Retry(amount int, dur time.Duration, x func() error) error
- func UserIdentifier(u *user.User) string
- func UserName(u *user.User) string
- func ValiateConfigFilePath(p string) error
- func ValidateEmail(email string) error
- func ValidatePassword(password string) error
- func ValidatePhone(phone string) error
- func ValidateURLPath(p string) error
- type DataReceive
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultResources = &capsule.Resources{ Requests: &capsule.ResourceList{ CpuMillis: 200, MemoryBytes: 512_000_000, }, Limits: &capsule.ResourceList{ CpuMillis: 0, MemoryBytes: 0, }, }
View Source
var ErrFileIsTooLarge = errors.InvalidArgumentErrorf("file exceeds maximum file size")
View Source
var ErrInvalidUpdatedAt = errors.InvalidArgumentErrorf("invalid updated at timestamp")
Functions ¶
func FeedDefaultResources ¶ added in v1.1.3
func GetExponentialBackoff ¶
func ImageExistsNatively ¶ added in v1.2.0
func UserIdentifier ¶
func ValiateConfigFilePath ¶ added in v1.1.3
valid path: 1. absolute 2. no trailing slash 3. no not escaped whitespace 4. no double slashes 5. no dots 6. non-empty
func ValidateEmail ¶
func ValidatePassword ¶
func ValidatePhone ¶
func ValidateURLPath ¶ added in v1.5.2
ValidateURLPath validates the Path segment of an URL is correct https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
Types ¶
type DataReceive ¶
func (DataReceive) Receive ¶
func (d DataReceive) Receive() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.