corev1

package
v0.0.0-...-623d1b0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// If true, the field cannot be modified directly using Set/Reset methods.
	//
	// optional bool masked = 51860;
	E_Masked = &file_github_com_kralicky_protoconfig_apis_core_v1_core_proto_extTypes[0]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var File_github_com_kralicky_protoconfig_apis_core_v1_core_proto protoreflect.FileDescriptor
View Source
var File_github_com_kralicky_protoconfig_apis_core_v1_value_proto protoreflect.FileDescriptor

Functions

func MaskedFields

func MaskedFields[T proto.Message]() []protoreflect.FieldDescriptor

Types

type ReactiveEvent

type ReactiveEvent struct {

	// The path that triggered this event, as an index into the request path list.
	Index int32  `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ReactiveEvent) Descriptor deprecated

func (*ReactiveEvent) Descriptor() ([]byte, []int)

Deprecated: Use ReactiveEvent.ProtoReflect.Descriptor instead.

func (*ReactiveEvent) FlagSet

func (in *ReactiveEvent) FlagSet(prefix ...string) *pflag.FlagSet

func (*ReactiveEvent) GetIndex

func (x *ReactiveEvent) GetIndex() int32

func (*ReactiveEvent) GetValue

func (x *ReactiveEvent) GetValue() *Value

func (*ReactiveEvent) ProtoMessage

func (*ReactiveEvent) ProtoMessage()

func (*ReactiveEvent) ProtoReflect

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

func (*ReactiveEvent) Reset

func (x *ReactiveEvent) Reset()

func (*ReactiveEvent) String

func (x *ReactiveEvent) String() string

type ReactiveEvents

type ReactiveEvents struct {

	// In bind mode, this will contain one item for each path in the request,
	// in order. Otherwise, this will only contain a single item.
	Items []*ReactiveEvent `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ReactiveEvents) Descriptor deprecated

func (*ReactiveEvents) Descriptor() ([]byte, []int)

Deprecated: Use ReactiveEvents.ProtoReflect.Descriptor instead.

func (*ReactiveEvents) GetItems

func (x *ReactiveEvents) GetItems() []*ReactiveEvent

func (*ReactiveEvents) ProtoMessage

func (*ReactiveEvents) ProtoMessage()

func (*ReactiveEvents) ProtoReflect

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

func (*ReactiveEvents) Reset

func (x *ReactiveEvents) Reset()

func (*ReactiveEvents) String

func (x *ReactiveEvents) String() string

type ReactiveWatchRequest

type ReactiveWatchRequest struct {

	// If true, uses [reactive.Bind] to watch all paths at once.
	// If false, each path recieves updates separately.
	Bind bool `protobuf:"varint,1,opt,name=bind,proto3" json:"bind,omitempty"`
	// List of paths to watch. These must be in fieldmask format.
	// The path '.' refers to the entire object.
	Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

func (*ReactiveWatchRequest) Descriptor deprecated

func (*ReactiveWatchRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReactiveWatchRequest.ProtoReflect.Descriptor instead.

func (*ReactiveWatchRequest) FlagSet

func (in *ReactiveWatchRequest) FlagSet(prefix ...string) *pflag.FlagSet

func (*ReactiveWatchRequest) GetBind

func (x *ReactiveWatchRequest) GetBind() bool

func (*ReactiveWatchRequest) GetPaths

func (x *ReactiveWatchRequest) GetPaths() []string

func (*ReactiveWatchRequest) ProtoMessage

func (*ReactiveWatchRequest) ProtoMessage()

func (*ReactiveWatchRequest) ProtoReflect

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

func (*ReactiveWatchRequest) Reset

func (x *ReactiveWatchRequest) Reset()

func (*ReactiveWatchRequest) String

func (x *ReactiveWatchRequest) String() string

type Reference

type Reference struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Reference) Descriptor deprecated

func (*Reference) Descriptor() ([]byte, []int)

Deprecated: Use Reference.ProtoReflect.Descriptor instead.

func (*Reference) FlagSet

func (in *Reference) FlagSet(prefix ...string) *pflag.FlagSet

func (*Reference) GetId

func (x *Reference) GetId() string

func (*Reference) ProtoMessage

func (*Reference) ProtoMessage()

func (*Reference) ProtoReflect

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

func (*Reference) Reset

func (x *Reference) Reset()

func (*Reference) String

func (x *Reference) String() string

type Revision

type Revision struct {

	// A numerical revision uniquely identifying a specific version of the resource.
	// Larger values are newer, but this should otherwise be treated as opaque.
	Revision *int64 `protobuf:"varint,1,opt,name=revision,proto3,oneof" json:"revision,omitempty"`
	// An optional timestamp corresponding to the time the revision was created.
	// Do not depend on this field being set; if it is, it is for informational
	// purposes only.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func NewRevision

func NewRevision(revision int64, maybeTimestamp ...time.Time) *Revision

func (*Revision) Descriptor deprecated

func (*Revision) Descriptor() ([]byte, []int)

Deprecated: Use Revision.ProtoReflect.Descriptor instead.

func (*Revision) FlagSet

func (in *Revision) FlagSet(prefix ...string) *pflag.FlagSet

func (*Revision) GetRevision

func (x *Revision) GetRevision() int64

func (*Revision) GetTimestamp

func (x *Revision) GetTimestamp() *timestamppb.Timestamp

func (*Revision) ProtoMessage

func (*Revision) ProtoMessage()

func (*Revision) ProtoReflect

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

func (*Revision) Reset

func (x *Revision) Reset()

func (*Revision) Set

func (r *Revision) Set(revision int64)

Set sets the revision to the given value, and clears the timestamp.

func (*Revision) String

func (x *Revision) String() string

type Value

type Value struct {

	// Types that are assignable to Data:
	//
	//	*Value_BoolValue
	//	*Value_Int32Value
	//	*Value_Int64Value
	//	*Value_Uint32Value
	//	*Value_Uint64Value
	//	*Value_Float32Value
	//	*Value_Float64Value
	//	*Value_StringValue
	//	*Value_BytesValue
	//	*Value_Enum
	//	*Value_Message
	//	*Value_List
	//	*Value_Map
	Data isValue_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

Value represents a protoreflect.Value

func NewValue

func NewValue(in protoreflect.Value) *Value

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBoolValue

func (x *Value) GetBoolValue() bool

func (*Value) GetBytesValue

func (x *Value) GetBytesValue() []byte

func (*Value) GetData

func (m *Value) GetData() isValue_Data

func (*Value) GetEnum

func (x *Value) GetEnum() int32

func (*Value) GetFloat32Value

func (x *Value) GetFloat32Value() float32

func (*Value) GetFloat64Value

func (x *Value) GetFloat64Value() float64

func (*Value) GetInt32Value

func (x *Value) GetInt32Value() int32

func (*Value) GetInt64Value

func (x *Value) GetInt64Value() int64

func (*Value) GetList

func (x *Value) GetList() *Value_ListValue

func (*Value) GetMap

func (x *Value) GetMap() *Value_MapValue

func (*Value) GetMessage

func (x *Value) GetMessage() *anypb.Any

func (*Value) GetStringValue

func (x *Value) GetStringValue() string

func (*Value) GetUint32Value

func (x *Value) GetUint32Value() uint32

func (*Value) GetUint64Value

func (x *Value) GetUint64Value() uint64

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

func (*Value) ToValue

func (v *Value) ToValue() protoreflect.Value

type Value_BoolValue

type Value_BoolValue struct {
	BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Value_BytesValue

type Value_BytesValue struct {
	BytesValue []byte `protobuf:"bytes,9,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}

type Value_Enum

type Value_Enum struct {
	Enum int32 `protobuf:"varint,10,opt,name=enum,proto3,oneof"`
}

type Value_Float32Value

type Value_Float32Value struct {
	Float32Value float32 `protobuf:"fixed32,6,opt,name=float32_value,json=float32Value,proto3,oneof"`
}

type Value_Float64Value

type Value_Float64Value struct {
	Float64Value float64 `protobuf:"fixed64,7,opt,name=float64_value,json=float64Value,proto3,oneof"`
}

type Value_Int32Value

type Value_Int32Value struct {
	Int32Value int32 `protobuf:"varint,2,opt,name=int32_value,json=int32Value,proto3,oneof"`
}

type Value_Int64Value

type Value_Int64Value struct {
	Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

type Value_List

type Value_List struct {
	List *Value_ListValue `protobuf:"bytes,12,opt,name=list,proto3,oneof"`
}

type Value_ListValue

type Value_ListValue struct {
	Values []*Value `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Value_ListValue) Descriptor deprecated

func (*Value_ListValue) Descriptor() ([]byte, []int)

Deprecated: Use Value_ListValue.ProtoReflect.Descriptor instead.

func (*Value_ListValue) GetValues

func (x *Value_ListValue) GetValues() []*Value

func (*Value_ListValue) ProtoMessage

func (*Value_ListValue) ProtoMessage()

func (*Value_ListValue) ProtoReflect

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

func (*Value_ListValue) Reset

func (x *Value_ListValue) Reset()

func (*Value_ListValue) String

func (x *Value_ListValue) String() string

type Value_Map

type Value_Map struct {
	Map *Value_MapValue `protobuf:"bytes,13,opt,name=map,proto3,oneof"`
}

type Value_MapEntry

type Value_MapEntry struct {
	Key   *Value_MapKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *Value        `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Value_MapEntry) Descriptor deprecated

func (*Value_MapEntry) Descriptor() ([]byte, []int)

Deprecated: Use Value_MapEntry.ProtoReflect.Descriptor instead.

func (*Value_MapEntry) GetKey

func (x *Value_MapEntry) GetKey() *Value_MapKey

func (*Value_MapEntry) GetValue

func (x *Value_MapEntry) GetValue() *Value

func (*Value_MapEntry) ProtoMessage

func (*Value_MapEntry) ProtoMessage()

func (*Value_MapEntry) ProtoReflect

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

func (*Value_MapEntry) Reset

func (x *Value_MapEntry) Reset()

func (*Value_MapEntry) String

func (x *Value_MapEntry) String() string

type Value_MapKey

type Value_MapKey struct {

	// Types that are assignable to Data:
	//
	//	*Value_MapKey_BoolValue
	//	*Value_MapKey_Int32Value
	//	*Value_MapKey_Int64Value
	//	*Value_MapKey_Uint32Value
	//	*Value_MapKey_Uint64Value
	//	*Value_MapKey_StringValue
	Data isValue_MapKey_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*Value_MapKey) Descriptor deprecated

func (*Value_MapKey) Descriptor() ([]byte, []int)

Deprecated: Use Value_MapKey.ProtoReflect.Descriptor instead.

func (*Value_MapKey) GetBoolValue

func (x *Value_MapKey) GetBoolValue() bool

func (*Value_MapKey) GetData

func (m *Value_MapKey) GetData() isValue_MapKey_Data

func (*Value_MapKey) GetInt32Value

func (x *Value_MapKey) GetInt32Value() int32

func (*Value_MapKey) GetInt64Value

func (x *Value_MapKey) GetInt64Value() int64

func (*Value_MapKey) GetStringValue

func (x *Value_MapKey) GetStringValue() string

func (*Value_MapKey) GetUint32Value

func (x *Value_MapKey) GetUint32Value() uint32

func (*Value_MapKey) GetUint64Value

func (x *Value_MapKey) GetUint64Value() uint64

func (*Value_MapKey) ProtoMessage

func (*Value_MapKey) ProtoMessage()

func (*Value_MapKey) ProtoReflect

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

func (*Value_MapKey) Reset

func (x *Value_MapKey) Reset()

func (*Value_MapKey) String

func (x *Value_MapKey) String() string

func (*Value_MapKey) ToMapKey

func (mk *Value_MapKey) ToMapKey() protoreflect.MapKey

type Value_MapKey_BoolValue

type Value_MapKey_BoolValue struct {
	BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Value_MapKey_Int32Value

type Value_MapKey_Int32Value struct {
	Int32Value int32 `protobuf:"varint,2,opt,name=int32_value,json=int32Value,proto3,oneof"`
}

type Value_MapKey_Int64Value

type Value_MapKey_Int64Value struct {
	Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

type Value_MapKey_StringValue

type Value_MapKey_StringValue struct {
	StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Value_MapKey_Uint32Value

type Value_MapKey_Uint32Value struct {
	Uint32Value uint32 `protobuf:"varint,4,opt,name=uint32_value,json=uint32Value,proto3,oneof"`
}

type Value_MapKey_Uint64Value

type Value_MapKey_Uint64Value struct {
	Uint64Value uint64 `protobuf:"varint,5,opt,name=uint64_value,json=uint64Value,proto3,oneof"`
}

type Value_MapValue

type Value_MapValue struct {
	Entries []*Value_MapEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*Value_MapValue) Descriptor deprecated

func (*Value_MapValue) Descriptor() ([]byte, []int)

Deprecated: Use Value_MapValue.ProtoReflect.Descriptor instead.

func (*Value_MapValue) GetEntries

func (x *Value_MapValue) GetEntries() []*Value_MapEntry

func (*Value_MapValue) ProtoMessage

func (*Value_MapValue) ProtoMessage()

func (*Value_MapValue) ProtoReflect

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

func (*Value_MapValue) Reset

func (x *Value_MapValue) Reset()

func (*Value_MapValue) String

func (x *Value_MapValue) String() string

type Value_Message

type Value_Message struct {
	Message *anypb.Any `protobuf:"bytes,11,opt,name=message,proto3,oneof"`
}

type Value_StringValue

type Value_StringValue struct {
	StringValue string `protobuf:"bytes,8,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Value_Uint32Value

type Value_Uint32Value struct {
	Uint32Value uint32 `protobuf:"varint,4,opt,name=uint32_value,json=uint32Value,proto3,oneof"`
}

type Value_Uint64Value

type Value_Uint64Value struct {
	Uint64Value uint64 `protobuf:"varint,5,opt,name=uint64_value,json=uint64Value,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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