Documentation ¶
Overview ¶
Package resource contains core abstract types for representing configuration resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullName ¶
FullName is a name that uniquely identifies a resource within the mesh.
func NewFullName ¶
NewFullName creates a new FullName from the given Namespace and Name.
func NewShortOrFullName ¶
NewShortOrFullName tries to parse the given name to resource.Name. If the name does not include namespace information, the defaultNamespace is used.
type Instance ¶
Instance is the abstract representation of a versioned config resource in Istio.
func PilotConfigToInstance ¶
PilotConfigToInstance convert from config.Config, which has no associated proto, to MCP Resource proto.
type LocalName ¶
type LocalName string
LocalName that uniquely identifies the resource within the Namespace.
type Metadata ¶
type Metadata struct { Schema resource.Schema FullName FullName CreateTime time.Time Version Version Generation int64 Labels map[string]string Annotations map[string]string }
Metadata about a resource.
type Origin ¶
type Origin interface { FriendlyName() string Namespace() Namespace Reference() Reference // FieldMap returns the flat map containing paths of the fields in the resource as keys, // and their corresponding line numbers as values FieldMap() map[string]int Comparator() string // ClusterName returns the cluster name where the resource is located ClusterName() cluster.ID }
Origin of a resource. This is source-implementation dependent.