# Packages
Package cosi contains common code for handling COSI API proxying.
Package helpers defines common runtime helper functions.
Package keyprovider contains a key provider.
Package kubernetes implements the connector that can pull data from the Kubernetes control plane.
Package omni implements the internal service runtime.
Package talos implements the connector that can pull data from the Talos controller runtime.
# Functions
EventType returns event type for the response.
Get returns runtime for a type.
Install a runtime singleton for a type.
LookupInterface looks for a specific implementation in runtimes.
MakeBasicItem creates a new basic item.
MakeFieldComparator returns a comparator for the given field.
MakeStreamOffsetLimiter creates new StreamOffsetLimiter.
MakeWatchResponseComparator returns a comparator for WatchResponse.
MarshalJSON encodes resource as JSON using jsonpb marshaler for proto.Messages or a standard marshaler.
MatchResource returns true if searchFor is in any field of metadata.
NewBasicResponse creates a new basic response.
NewQueryOptions creates new QueryOptions.
NewResource creates new resource.
NewSliceSet creates new SliceSet.
NewWatchResponse creates watch response from resources and event type.
NewWatchResponseFromCOSIEvent creates new WatchResponse from COSI state.Event.
ResourceField returns a metadata field value.
SortResponses sorts the slice of WatchResponse in a safe way.
WithContext routes the request to a specific context.
WithCurrentVersion pass current version to the update call to avoid conflicts (only for update, Omni only).
WithFieldSelector enables filtering by field.
WithLabelSelectors enables filtering by label.
WithLimit limits the number of returned items.
WithMetadata creates resource with Talos metadata.
WithName enables filtering by resource name.
WithNamespace enables filtering by namespace.
WithNodes explicitly defines nodes list to use for the request (Talos only).
WithOffset skips the number of returned items.
WithResource explicitly specifies the resource type to get from the runtime.
WithSearchFor enables field search.
WithSort enables sorting by field.
WithTailEvents requests resource backlog instead of the latest resource state.
WithTeardownOnly makes delete run teardown only (COSI only).
# Structs
BasicItem is a basic building block for the WatchResponse and ListItem.
BasicResponse is a basic implementation of the WatchResponse.
ListResult is a wrapper for the list result.
Metadata wraps COSI or Talos metadata into a json serializable object.
QueryOptions List and Get query options.
Resource wraps Talos and COSI resource response to be encoded as JSON.
ResourceOptions describes additional resource wrapper options.
SliceSet is a set of items.
StreamOffsetLimiter limits number of items returned by stream.
# Interfaces
KubeconfigSource is implemented by runtimes that allow getting kubeconfigs.
Runtime is an abstraction for the data access.
WatchResponse is a wrapper for the resources.WatchResponse.
# Type aliases
ListComparator is a comparator for the list items.
QueryOption defines variable input option for List and Get methods in the Runtime implementations.
ResourceOption is a single resource creation option.
Version implements a special uint64 type which can be unmarshalled from COSI version that can be string if it's undefined.
WatchResponseComparator is a comparator for WatchResponse.