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 ListAll(store cache.Store, labelSelector labels.Selector, ...) error
- func ListAllByNamespace(indexer cache.Indexer, namespace string, labelSelector labels.Selector, ...) 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 ResourceIndexer
- 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 ListAll ¶ added in v0.0.107
func ListAll(store cache.Store, labelSelector labels.Selector, annotationSelector labels.Selector, appendFn cache.AppendFunc) error
ListAll lists items in the store matching the given selector, calling appendFn on each one.
func ListAllByNamespace ¶ added in v0.0.107
func ListAllByNamespace(indexer cache.Indexer, namespace string, labelSelector labels.Selector, annotationSelector labels.Selector, appendFn cache.AppendFunc) error
ListAllByNamespace lists items in the given namespace in the store matching the given selector, calling appendFn on each one. If a blank namespace (NamespaceAll) is specified, this delegates to ListAll().
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 ResourceIndexer ¶ added in v0.0.107
ResourceIndexer wraps an indexer, resource, and optional namespace for a given type. This is intended for use by listers (generated by lister-gen) only.
func NewResourceIndexer ¶ added in v0.0.107
func NewResourceIndexer[T runtime.Object](indexer cache.Indexer, resource schema.GroupResource, namespace string) ResourceIndexer[T]
New returns a new instance of a lister (resource indexer) wrapping the given indexer and resource for the specified type. This is intended for use by listers (generated by lister-gen) only.
func (ResourceIndexer[T]) Get ¶ added in v0.0.107
func (l ResourceIndexer[T]) Get(name string) (T, error)
Get retrieves the resource from the index for a given name.
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