Documentation ¶
Index ¶
- Variables
- type Notification
- func (m *Notification) CloneMessageVT() proto.Message
- func (m *Notification) CloneVT() *Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (this *Notification) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Notification) EqualVT(that *Notification) bool
- func (x *Notification) GetMetadata() *v1.ObjectMeta
- func (x *Notification) GetSpec() *NotificationSpec
- func (x *Notification) GetType() *v1.TypeMeta
- func (m *Notification) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Notification) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *Notification) MarshalToVT(dAtA []byte) (int, error)
- func (m *Notification) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *Notification) MarshalVT() (dAtA []byte, err error)
- func (m *Notification) MarshalVTStrict() (dAtA []byte, err error)
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (m *Notification) SizeVT() (n int)
- func (x *Notification) String() string
- func (m *Notification) UnmarshalVT(dAtA []byte) error
- func (m *Notification) UnmarshalVTUnsafe(dAtA []byte) error
- type NotificationSpec
- func (m *NotificationSpec) CloneMessageVT() proto.Message
- func (m *NotificationSpec) CloneVT() *NotificationSpec
- func (*NotificationSpec) Descriptor() ([]byte, []int)deprecated
- func (this *NotificationSpec) EqualMessageVT(thatMsg proto.Message) bool
- func (this *NotificationSpec) EqualVT(that *NotificationSpec) bool
- func (x *NotificationSpec) GetCorrelationId() string
- func (x *NotificationSpec) GetOperation() NotificationSpec_Operation
- func (x *NotificationSpec) GetResourceData() *structpb.Struct
- func (x *NotificationSpec) GetResourceId() string
- func (x *NotificationSpec) GetResourceType() string
- func (x *NotificationSpec) GetResourceVersion() string
- func (x *NotificationSpec) GetSelfLink() string
- func (m *NotificationSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *NotificationSpec) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
- func (m *NotificationSpec) MarshalToVT(dAtA []byte) (int, error)
- func (m *NotificationSpec) MarshalToVTStrict(dAtA []byte) (int, error)
- func (m *NotificationSpec) MarshalVT() (dAtA []byte, err error)
- func (m *NotificationSpec) MarshalVTStrict() (dAtA []byte, err error)
- func (*NotificationSpec) ProtoMessage()
- func (x *NotificationSpec) ProtoReflect() protoreflect.Message
- func (x *NotificationSpec) Reset()
- func (m *NotificationSpec) SizeVT() (n int)
- func (x *NotificationSpec) String() string
- func (m *NotificationSpec) UnmarshalVT(dAtA []byte) error
- func (m *NotificationSpec) UnmarshalVTUnsafe(dAtA []byte) error
- type NotificationSpec_Operation
- func (NotificationSpec_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x NotificationSpec_Operation) Enum() *NotificationSpec_Operation
- func (NotificationSpec_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x NotificationSpec_Operation) Number() protoreflect.EnumNumber
- func (x NotificationSpec_Operation) String() string
- func (NotificationSpec_Operation) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotificationSpec_Operation_name = map[int32]string{ 0: "OPERATION_UNSPECIFIED", 1: "OPERATION_CREATE", 2: "OPERATION_READ", 3: "OPERATION_UPDATE", 4: "OPERATION_DELETE", } NotificationSpec_Operation_value = map[string]int32{ "OPERATION_UNSPECIFIED": 0, "OPERATION_CREATE": 1, "OPERATION_READ": 2, "OPERATION_UPDATE": 3, "OPERATION_DELETE": 4, } )
Enum value maps for NotificationSpec_Operation.
View Source
var File_notification_v1_notification_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct { Type *v1.TypeMeta `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Metadata *v1.ObjectMeta `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` Spec *NotificationSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
Notification is a generic event that can be used to notify other systems of changes in the system.
func (*Notification) CloneMessageVT ¶
func (m *Notification) CloneMessageVT() proto.Message
func (*Notification) CloneVT ¶
func (m *Notification) CloneVT() *Notification
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) EqualMessageVT ¶
func (this *Notification) EqualMessageVT(thatMsg proto.Message) bool
func (*Notification) EqualVT ¶
func (this *Notification) EqualVT(that *Notification) bool
func (*Notification) GetMetadata ¶
func (x *Notification) GetMetadata() *v1.ObjectMeta
func (*Notification) GetSpec ¶
func (x *Notification) GetSpec() *NotificationSpec
func (*Notification) GetType ¶
func (x *Notification) GetType() *v1.TypeMeta
func (*Notification) MarshalToSizedBufferVT ¶
func (m *Notification) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Notification) MarshalToSizedBufferVTStrict ¶
func (m *Notification) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*Notification) MarshalToVT ¶
func (m *Notification) MarshalToVT(dAtA []byte) (int, error)
func (*Notification) MarshalToVTStrict ¶
func (m *Notification) MarshalToVTStrict(dAtA []byte) (int, error)
func (*Notification) MarshalVT ¶
func (m *Notification) MarshalVT() (dAtA []byte, err error)
func (*Notification) MarshalVTStrict ¶
func (m *Notification) MarshalVTStrict() (dAtA []byte, err error)
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) SizeVT ¶
func (m *Notification) SizeVT() (n int)
func (*Notification) String ¶
func (x *Notification) String() string
func (*Notification) UnmarshalVT ¶
func (m *Notification) UnmarshalVT(dAtA []byte) error
func (*Notification) UnmarshalVTUnsafe ¶
func (m *Notification) UnmarshalVTUnsafe(dAtA []byte) error
type NotificationSpec ¶
type NotificationSpec struct { // The action that triggered this notification Operation NotificationSpec_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=notification.v1.NotificationSpec_Operation" json:"operation,omitempty"` // A structured string to identify the resource. Example: /resource/v1/IdPortenClient/1234. SelfLink string `protobuf:"bytes,2,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // The specific resource id the notification is tied to. May be part of the self_link. ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // The specific resource type the notification is tied to. May be part of the self_link. ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` // The resource version of the resource the notification is tied to. Not part of the self_link. ResourceVersion string `protobuf:"bytes,5,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` // Struct for free-form for optional state transfer. Beware, you may leak sensitive info here. ResourceData *structpb.Struct `protobuf:"bytes,6,opt,name=resource_data,json=resourceData,proto3" json:"resource_data,omitempty"` // Correlation ID from action that caused this event to exist. CorrelationId string `protobuf:"bytes,10,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"` // contains filtered or unexported fields }
Generic notification event specification.
func (*NotificationSpec) CloneMessageVT ¶
func (m *NotificationSpec) CloneMessageVT() proto.Message
func (*NotificationSpec) CloneVT ¶
func (m *NotificationSpec) CloneVT() *NotificationSpec
func (*NotificationSpec) Descriptor
deprecated
func (*NotificationSpec) Descriptor() ([]byte, []int)
Deprecated: Use NotificationSpec.ProtoReflect.Descriptor instead.
func (*NotificationSpec) EqualMessageVT ¶
func (this *NotificationSpec) EqualMessageVT(thatMsg proto.Message) bool
func (*NotificationSpec) EqualVT ¶
func (this *NotificationSpec) EqualVT(that *NotificationSpec) bool
func (*NotificationSpec) GetCorrelationId ¶
func (x *NotificationSpec) GetCorrelationId() string
func (*NotificationSpec) GetOperation ¶
func (x *NotificationSpec) GetOperation() NotificationSpec_Operation
func (*NotificationSpec) GetResourceData ¶
func (x *NotificationSpec) GetResourceData() *structpb.Struct
func (*NotificationSpec) GetResourceId ¶
func (x *NotificationSpec) GetResourceId() string
func (*NotificationSpec) GetResourceType ¶
func (x *NotificationSpec) GetResourceType() string
func (*NotificationSpec) GetResourceVersion ¶
func (x *NotificationSpec) GetResourceVersion() string
func (*NotificationSpec) GetSelfLink ¶
func (x *NotificationSpec) GetSelfLink() string
func (*NotificationSpec) MarshalToSizedBufferVT ¶
func (m *NotificationSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*NotificationSpec) MarshalToSizedBufferVTStrict ¶
func (m *NotificationSpec) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)
func (*NotificationSpec) MarshalToVT ¶
func (m *NotificationSpec) MarshalToVT(dAtA []byte) (int, error)
func (*NotificationSpec) MarshalToVTStrict ¶
func (m *NotificationSpec) MarshalToVTStrict(dAtA []byte) (int, error)
func (*NotificationSpec) MarshalVT ¶
func (m *NotificationSpec) MarshalVT() (dAtA []byte, err error)
func (*NotificationSpec) MarshalVTStrict ¶
func (m *NotificationSpec) MarshalVTStrict() (dAtA []byte, err error)
func (*NotificationSpec) ProtoMessage ¶
func (*NotificationSpec) ProtoMessage()
func (*NotificationSpec) ProtoReflect ¶
func (x *NotificationSpec) ProtoReflect() protoreflect.Message
func (*NotificationSpec) Reset ¶
func (x *NotificationSpec) Reset()
func (*NotificationSpec) SizeVT ¶
func (m *NotificationSpec) SizeVT() (n int)
func (*NotificationSpec) String ¶
func (x *NotificationSpec) String() string
func (*NotificationSpec) UnmarshalVT ¶
func (m *NotificationSpec) UnmarshalVT(dAtA []byte) error
func (*NotificationSpec) UnmarshalVTUnsafe ¶
func (m *NotificationSpec) UnmarshalVTUnsafe(dAtA []byte) error
type NotificationSpec_Operation ¶
type NotificationSpec_Operation int32
Enum for the action type
const ( NotificationSpec_OPERATION_UNSPECIFIED NotificationSpec_Operation = 0 // Default value, used when no action is specified. NotificationSpec_OPERATION_CREATE NotificationSpec_Operation = 1 NotificationSpec_OPERATION_READ NotificationSpec_Operation = 2 NotificationSpec_OPERATION_UPDATE NotificationSpec_Operation = 3 NotificationSpec_OPERATION_DELETE NotificationSpec_Operation = 4 )
func (NotificationSpec_Operation) Descriptor ¶
func (NotificationSpec_Operation) Descriptor() protoreflect.EnumDescriptor
func (NotificationSpec_Operation) Enum ¶
func (x NotificationSpec_Operation) Enum() *NotificationSpec_Operation
func (NotificationSpec_Operation) EnumDescriptor
deprecated
func (NotificationSpec_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotificationSpec_Operation.Descriptor instead.
func (NotificationSpec_Operation) Number ¶
func (x NotificationSpec_Operation) Number() protoreflect.EnumNumber
func (NotificationSpec_Operation) String ¶
func (x NotificationSpec_Operation) String() string
func (NotificationSpec_Operation) Type ¶
func (NotificationSpec_Operation) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.