Documentation ¶
Overview ¶
Package resource contains core abstract types for representing configuration resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Types = NewSchema()
Types of known resources.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { ID VersionedKey Item prlang.Message }
Entry is the abstract representation of a versioned config resource in Istio.
type Event ¶
type Event struct { Kind EventKind ID VersionedKey Item proto.Message }
Event represents a change that occurred against a resource in the source config system.
type EventKind ¶
type EventKind int
EventKind is the type of an event.
const ( // None is a sentinel value. Should not be used. None EventKind = iota // Added indicates that a new resource has been added. Added // Updated indicates that an existing resource has been updated. Updated // Deleted indicates an existing resource has been deleted. Deleted // FullSync indicates that the initial state of the store has been published as a series of Added events. // Events after FullSync are actual change events that the source-store has encountered. FullSync )
type Info ¶
type Info struct { // TypeURL of the resource that this info is about TypeURL TypeURL // Indicates whether the proto is defined as Gogo. IsGogo bool // contains filtered or unexported fields }
Info is the type metadata for an Entry.
func (*Info) NewProtoInstance ¶
NewProtoInstance returns a new instance of the underlying proto for this resource.
type Key ¶
type Key struct { // TypeURL of the resource. TypeURL TypeURL // Fully qualified name of the resource. FullName string }
Key uniquely identifies a (mutable) config resource in the config space.
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
Schema contains metadata about configuration resources.
type TypeURL ¶
type TypeURL struct {
// contains filtered or unexported fields
}
TypeURL of the resource.
type VersionedKey ¶
VersionedKey uniquely identifies a snapshot of a config resource in the config space, at a given time.
func (VersionedKey) String ¶
func (k VersionedKey) String() string
String interface method implementation.