package
0.6.1
Repository: https://github.com/cosi-project/runtime.git
Documentation: pkg.go.dev

# Packages

Package handle provides a way to wrap "handle/descriptor-like" resources.
Package kvutils provides utilities to internal/kv package.
Package meta provides definition of core metadata resources.
Package protobuf provides a bridge between resources and protobuf interface.
Package rtestutils provides utilities for testing with resource API.
Package typed generic based resource definition.

# Functions

Equal tests two resources for equality.
IDRegexpMatch checks that the ID matches the regexp.
IsTombstone checks if resource is represented by the Tombstone.
LabelEqual checks that the label is set to the specified value.
LabelExists checks that the label is set.
LabelIn checks that the label value is in the provided set.
LabelLT checks that the label value is less than value, peforms string comparison.
LabelLTE checks that the label value is less or equal to value, peforms string comparison.
LabelLTENumeric checks that the label value is less or equal to value, peforms numeric comparison, if possible.
LabelLTNumeric checks that the label value is less than value, peforms numeric comparison, if possible.
MarshalYAML marshals resource to YAML definition.
NewAnyFromProto unmarshals Any from protobuf interface.
NewMetadata builds new metadata.
NewMetadataFromProto builds Metadata object from ProtoMetadata interface data.
NewTombstone builds a tombstone from resource reference.
ParsePhase from string representation.
ParseVersion from string representation.
RawLabelQuery sets the label query to the verbatim value.
String returns representation suitable for %s formatting.

# Constants

Label with the key matches the value.
Label with the key exists.
Label value is in the set.
Label value is less.
Label value is less or equal.
Label value is less or equal numeric.
Label value is less than number.
NotMatches the condition.
Phase constants.
Phase constants.

# Variables

Special version constants.

# Structs

Annotations is a set free-form of key-value pairs.
Any can hold data from any resource type.
IDQuery is the query on the resource ID.
LabelQuery is a set of LabelTerms applied with AND semantics.
Labels is a set free-form of key-value pairs.
LabelTerm describes a filter on metadata labels.
List is a list of resources.
Metadata implements resource meta.
Tombstone is a resource without a Spec.
Version of a resource.

# Interfaces

Kind is a Pointer minus resource ID.
MetadataProto is an interface for protobuf serialization of Metadata.
Pointer is a Reference minus resource version.
Reference to a resource.
Resource is an abstract resource managed by the state.
SpecProto is a protobuf interface of resource spec.
Tombstoned is a marker interface for Tombstones.

# Type aliases

Finalizer is a free-form string which blocks resource destruction.
Finalizers is a set of Finalizer's with methods to add/remove items.
No description provided by the author
IDQueryOption allows to build an IDQuery with functional parameters.
LabelOp is a match operation on labels.
LabelQueries is the list of label queries.
LabelQueryOption allows to build a LabelQuery with functional parameters.
No description provided by the author
Owner of the resource (controller which manages the resource).
Phase represents state of the resource.
TermOption defines additional term options.
No description provided by the author