Documentation ¶
Index ¶
- Variables
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetAnnotations() map[string]string
- func (x *Metadata) GetCreateTime() *timestamp.Timestamp
- func (x *Metadata) GetLabels() map[string]string
- func (x *Metadata) GetName() string
- func (x *Metadata) GetVersion() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type Resource
Constants ¶
This section is empty.
Variables ¶
View Source
var File_mcp_v1alpha1_metadata_proto protoreflect.FileDescriptor
View Source
var File_mcp_v1alpha1_resource_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { // Fully qualified name of the resource. Unique in context of a collection. // // The fully qualified name consists of a directory and basename. The directory identifies // the resources location in a resource hierarchy. The basename identifies the specific // resource name within the context of that directory. // // The directory and basename are composed of one or more segments. Segments must be // valid [DNS labels](https://tools.ietf.org/html/rfc1123). "/" is the delimiter between // segments // // The rightmost segment is the basename. All segments to the // left of the basename form the directory. Segments moving towards the left // represent higher positions in the resource hierarchy, similar to reverse // DNS notation. e.g. // // /<org>/<team>/<subteam>/<resource basename> // // An empty directory indicates a resource that is located at the root of the // hierarchy, e.g. // // /<globally scoped resource> // // On Kubernetes the resource hierarchy is two-levels: namespaces and // cluster-scoped (i.e. global). // // Namespace resources fully qualified name is of the form: // // "<k8s namespace>/<k8s resource name>" // // Cluster scoped resources are located at the root of the hierarchy and are of the form: // // "/<k8s resource name>" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The creation timestamp of the resource. CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Resource version. This is used to determine when resources change across // resource updates. It should be treated as opaque by consumers/sinks. Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // Map of string keys and values that can be used to organize and categorize // resources within a collection. Labels map[string]string `` /* 153-byte string literal not displayed */ // Map of string keys and values that can be used by source and sink to communicate // arbitrary metadata about this resource. Annotations map[string]string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
Metadata information that all resources within the Mesh Configuration Protocol must have.
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetAnnotations ¶
func (*Metadata) GetCreateTime ¶
func (*Metadata) GetVersion ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type Resource ¶
type Resource struct { // Common metadata describing the resource. Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // The primary payload for the resource. Body *any1.Any `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
Resource as transferred via the Mesh Configuration Protocol. Each resource is made up of common metadata, and a type-specific resource payload.
func (*Resource) Descriptor
deprecated
func (*Resource) GetMetadata ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.