import "istio.io/istio/galley/pkg/config/resource"
Package resource contains core abstract types for representing configuration resources.
entry.go metadata.go name.go origin.go serialization.go stringmap.go version.go
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.
Entry 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 Entry.Item is nil.
type Metadata struct { Name Name CreateTime time.Time Version Version Labels StringMap Annotations StringMap }
Metadata about a resource.
Clone Metadata. Warning, this is expensive!
type Name struct {
// contains filtered or unexported fields
}
Name of the resource. It is unique within a given set of resource of the same collection.
NewFullName returns a given name as a resource Name, validating it for correctness
NewName returns a Name from 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.
InterpretAsNamespaceAndName tries to split the name as namespace and name
String interface implementation.
Origin of a resource. This is source-implementation dependent.
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.
Package resource imports 8 packages (graph) and is imported by 26 packages. Updated 2019-11-04. Refresh now. Tools for package owners.