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.
func ParseFullName ¶
ParseFullName parses the given name string that was serialized via FullName.String()
func ParseFullNameWithDefaultNamespace ¶
ParseFullName parses the given name string using defaultNamespace if no namespace is found.
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 StringMap Annotations StringMap }
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 }
Origin of a resource. This is source-implementation dependent.
type Reference ¶
type Reference interface {
String() string
}
Reference provides more information about an Origin. This is also source-implementation dependant.
type StringMap ¶
StringMap is used to store labels and annotations.
func (StringMap) CloneOrCreate ¶
CloneOrCreate clones a StringMap. It creates the map if it doesn't exist.