Package resource contains core abstract types for representing configuration resources.
MustSerialize converts a resource entry into its enveloped form or panics if it cannot.
Serialize converts a resource entry into its enveloped form.
SerializeAll envelopes and returns all the entries.
SerializeMetadata converts the given metadata to its enveloped form.
FullName is a name that uniquely identifies a resource within the mesh.
NewFullName creates a new FullName from the given Namespace and Name.
NewShortOrFullName tries to parse the given name to resource.Name. If the name does not include namespace information, the defaultNamespace is used.
ParseFullName parses the given name string that was serialized via FullName.String()
ParseFullName parses the given name string using defaultNamespace if no namespace is found.
String interface implementation.
Validate that the Name and Namespace are set.
Instance is the abstract representation of a versioned config resource in Istio.
Deserialize an entry from an envelope.
DeserializeAll extracts all entries from the given envelopes and returns.
MustDeserialize deserializes an entry from an envelope or panics.
Clone returns a deep-copy of this entry. Warning, this is expensive!
IsEmpty returns true if the resource Instance.Message is nil.
LocalName that uniquely identifies the resource within the Namespace.
Metadata about a resource.
DeserializeMetadata extracts metadata portion of the envelope
Clone Metadata. Warning, this is expensive!
Namespace containing the resource.
Origin of a resource. This is source-implementation dependent.
Reference provides more information about an Origin. This is also source-implementation dependant.
StringMap is used to store labels and annotations.
Clone the StringMap
CloneOrCreate clones a StringMap. It creates the map if it doesn't exist.
Remove the given name from the string map
Version is the version identifier of a resource.