Documentation
¶
Index ¶
- func FormathBasicAuth(ui *url.Userinfo) string
- func Identity() (string, error)
- func IsHTTPResponseError(resp *http.Response, err error) (bool, error)
- func IsNetworkError(err error) (bool, error)
- func ParseBasicAuth(auth string) *url.Userinfo
- func SetBlobTerminalPhase(blob *v1alpha1.Blob, phase v1alpha1.BlobPhase)
- func SetChunkTerminalPhase(chunk *v1alpha1.Chunk, phase v1alpha1.ChunkPhase)
- func UpdateResourceStatusWithRetry[T object[T]](ctx context.Context, client client[T], latest T, modifier func(T) T) (T, error)
- type UserValue
- type UsersValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormathBasicAuth ¶
func IsHTTPResponseError ¶
IsHTTPResponseError checks if the response/error indicates a failure and returns an error with context
func IsNetworkError ¶ added in v0.0.46
IsNetworkError checks if the request error indicates a failure and returns an error with context
func ParseBasicAuth ¶
func SetBlobTerminalPhase ¶ added in v0.0.29
SetBlobTerminalPhase sets the blob phase to a terminal state (Succeeded or Failed) and records the completion time. The completion time is only set if it hasn't been set before, ensuring it reflects the first time the blob reached a terminal state. This prevents the completion time from being updated if a blob transitions between terminal states.
func SetChunkTerminalPhase ¶ added in v0.0.29
func SetChunkTerminalPhase(chunk *v1alpha1.Chunk, phase v1alpha1.ChunkPhase)
SetChunkTerminalPhase sets the chunk phase to a terminal state (Succeeded or Failed) and records the completion time. The completion time is only set if it hasn't been set before, ensuring it reflects the first time the chunk reached a terminal state. This prevents the completion time from being updated if a chunk transitions between terminal states.
func UpdateResourceStatusWithRetry ¶ added in v0.0.25
Types ¶
type UsersValue ¶
type UsersValue struct {
Users []UserValue
}
func (*UsersValue) Set ¶
func (d *UsersValue) Set(s string) error
func (*UsersValue) String ¶
func (d *UsersValue) String() string
func (*UsersValue) Type ¶
func (d *UsersValue) Type() string