Documentation
¶
Index ¶
- Variables
- type ConditionStatus
- type Metadata
- func (x *Metadata) ClearCreationTimestamp()
- func (x *Metadata) ClearDeletionTimestamp()
- func (x *Metadata) GetAnnotations() map[string]string
- func (x *Metadata) GetCreationTimestamp() *timestamppb.Timestamp
- func (x *Metadata) GetCreators() []string
- func (x *Metadata) GetDeletionTimestamp() *timestamppb.Timestamp
- func (x *Metadata) GetLabels() map[string]string
- func (x *Metadata) GetName() string
- func (x *Metadata) GetTenants() []string
- func (x *Metadata) HasCreationTimestamp() bool
- func (x *Metadata) HasDeletionTimestamp() bool
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) SetAnnotations(v map[string]string)
- func (x *Metadata) SetCreationTimestamp(v *timestamppb.Timestamp)
- func (x *Metadata) SetCreators(v []string)
- func (x *Metadata) SetDeletionTimestamp(v *timestamppb.Timestamp)
- func (x *Metadata) SetLabels(v map[string]string)
- func (x *Metadata) SetName(v string)
- func (x *Metadata) SetTenants(v []string)
- func (x *Metadata) String() string
- type Metadata_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConditionStatus_name = map[int32]string{ 0: "CONDITION_STATUS_UNSPECIFIED", 1: "CONDITION_STATUS_TRUE", 2: "CONDITION_STATUS_FALSE", } ConditionStatus_value = map[string]int32{ "CONDITION_STATUS_UNSPECIFIED": 0, "CONDITION_STATUS_TRUE": 1, "CONDITION_STATUS_FALSE": 2, } )
Enum value maps for ConditionStatus.
Functions ¶
This section is empty.
Types ¶
type ConditionStatus ¶
type ConditionStatus int32
const ( // Indicates that the system can't decide if the object is in the condition or not. ConditionStatus_CONDITION_STATUS_UNSPECIFIED ConditionStatus = 0 // Indicates that the object is in the condition. ConditionStatus_CONDITION_STATUS_TRUE ConditionStatus = 1 // Indicates that the object is not in the condition. ConditionStatus_CONDITION_STATUS_FALSE ConditionStatus = 2 )
func (ConditionStatus) Descriptor ¶
func (ConditionStatus) Descriptor() protoreflect.EnumDescriptor
func (ConditionStatus) Enum ¶
func (x ConditionStatus) Enum() *ConditionStatus
func (ConditionStatus) Number ¶
func (x ConditionStatus) Number() protoreflect.EnumNumber
func (ConditionStatus) String ¶
func (x ConditionStatus) String() string
func (ConditionStatus) Type ¶
func (ConditionStatus) Type() protoreflect.EnumType
type Metadata ¶
type Metadata struct {
// Time of creation of the object.
CreationTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=creation_timestamp,json=creationTimestamp,proto3" json:"creation_timestamp,omitempty"`
// Time of deletion of the object.
DeletionTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=deletion_timestamp,json=deletionTimestamp,proto3" json:"deletion_timestamp,omitempty"`
// Names of the creators of the object.
Creators []string `protobuf:"bytes,3,rep,name=creators,proto3" json:"creators,omitempty"`
// Human friendly name of the object.
//
// Has the same restrictions than DNS labels, as described in RFC 1035:
//
// - Must be between 1 and 63 characters long.
// - Must only contain letters (a-z), digits (0-9) and hyphens (-).
// - It isn't case sensitive.
//
// It is optional and not unique, so multiple objecs, even created by the same user or tenant, can have the same name.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Identifiers of the tenants that the object is assigned to.
Tenants []string `protobuf:"bytes,5,rep,name=tenants,proto3" json:"tenants,omitempty"`
// Labels contains key-value pairs for organizing and selecting objects.
//
// Keys consist of an optional prefix and a name separated by '/':
//
// - Prefix is a DNS subdomain (RFC 1035) and must be between 1 and 253 characters long.
// - Name must be between 1 and 63 characters long, start and end with an alphanumeric character, and contain only
// letters (a-z), digits (0-9), '-' '_' or '.'.
//
// Values are optional; when present they must be between 0 and 63 characters long and follow the same character
// rules as names.
//
// Labels are indexed and searchable.
Labels map[string]string `` /* 139-byte string literal not displayed */
// Annotations contains arbitrary metadata for objects.
//
// Keys follow the same rules as label keys, including the optional DNS subdomain prefix and the 1-63 character name
// restrictions. Values can be any string.
Annotations map[string]string `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
Metadata common to all kinds of objects.
func (*Metadata) ClearCreationTimestamp ¶
func (x *Metadata) ClearCreationTimestamp()
func (*Metadata) ClearDeletionTimestamp ¶
func (x *Metadata) ClearDeletionTimestamp()
func (*Metadata) GetAnnotations ¶
func (*Metadata) GetCreationTimestamp ¶
func (x *Metadata) GetCreationTimestamp() *timestamppb.Timestamp
func (*Metadata) GetCreators ¶
func (*Metadata) GetDeletionTimestamp ¶
func (x *Metadata) GetDeletionTimestamp() *timestamppb.Timestamp
func (*Metadata) GetTenants ¶
func (*Metadata) HasCreationTimestamp ¶
func (*Metadata) HasDeletionTimestamp ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) SetAnnotations ¶
func (*Metadata) SetCreationTimestamp ¶
func (x *Metadata) SetCreationTimestamp(v *timestamppb.Timestamp)
func (*Metadata) SetCreators ¶
func (*Metadata) SetDeletionTimestamp ¶
func (x *Metadata) SetDeletionTimestamp(v *timestamppb.Timestamp)
func (*Metadata) SetTenants ¶
type Metadata_builder ¶
type Metadata_builder struct {
// Time of creation of the object.
CreationTimestamp *timestamppb.Timestamp
// Time of deletion of the object.
DeletionTimestamp *timestamppb.Timestamp
// Names of the creators of the object.
Creators []string
// Human friendly name of the object.
//
// Has the same restrictions than DNS labels, as described in RFC 1035:
//
// - Must be between 1 and 63 characters long.
// - Must only contain letters (a-z), digits (0-9) and hyphens (-).
// - It isn't case sensitive.
//
// It is optional and not unique, so multiple objecs, even created by the same user or tenant, can have the same name.
Name string
// Identifiers of the tenants that the object is assigned to.
Tenants []string
// Labels contains key-value pairs for organizing and selecting objects.
//
// Keys consist of an optional prefix and a name separated by '/':
//
// - Prefix is a DNS subdomain (RFC 1035) and must be between 1 and 253 characters long.
// - Name must be between 1 and 63 characters long, start and end with an alphanumeric character, and contain only
// letters (a-z), digits (0-9), '-' '_' or '.'.
//
// Values are optional; when present they must be between 0 and 63 characters long and follow the same character
// rules as names.
//
// Labels are indexed and searchable.
Labels map[string]string
// Annotations contains arbitrary metadata for objects.
//
// Keys follow the same rules as label keys, including the optional DNS subdomain prefix and the 1-63 character name
// restrictions. Values can be any string.
Annotations map[string]string
// contains filtered or unexported fields
}
func (Metadata_builder) Build ¶
func (b0 Metadata_builder) Build() *Metadata
Click to show internal directories.
Click to hide internal directories.