sharedv1

package
v0.0.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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.

View Source
var File_shared_v1_condition_status_type_proto protoreflect.FileDescriptor
View Source
var File_shared_v1_metadata_type_proto protoreflect.FileDescriptor

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) Enum

func (x ConditionStatus) Enum() *ConditionStatus

func (ConditionStatus) Number

func (ConditionStatus) String

func (x ConditionStatus) String() string

func (ConditionStatus) Type

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 (x *Metadata) GetAnnotations() map[string]string

func (*Metadata) GetCreationTimestamp

func (x *Metadata) GetCreationTimestamp() *timestamppb.Timestamp

func (*Metadata) GetCreators

func (x *Metadata) GetCreators() []string

func (*Metadata) GetDeletionTimestamp

func (x *Metadata) GetDeletionTimestamp() *timestamppb.Timestamp

func (*Metadata) GetLabels

func (x *Metadata) GetLabels() map[string]string

func (*Metadata) GetName

func (x *Metadata) GetName() string

func (*Metadata) GetTenants

func (x *Metadata) GetTenants() []string

func (*Metadata) HasCreationTimestamp

func (x *Metadata) HasCreationTimestamp() bool

func (*Metadata) HasDeletionTimestamp

func (x *Metadata) HasDeletionTimestamp() bool

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) SetAnnotations

func (x *Metadata) SetAnnotations(v map[string]string)

func (*Metadata) SetCreationTimestamp

func (x *Metadata) SetCreationTimestamp(v *timestamppb.Timestamp)

func (*Metadata) SetCreators

func (x *Metadata) SetCreators(v []string)

func (*Metadata) SetDeletionTimestamp

func (x *Metadata) SetDeletionTimestamp(v *timestamppb.Timestamp)

func (*Metadata) SetLabels

func (x *Metadata) SetLabels(v map[string]string)

func (*Metadata) SetName

func (x *Metadata) SetName(v string)

func (*Metadata) SetTenants

func (x *Metadata) SetTenants(v []string)

func (*Metadata) String

func (x *Metadata) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL