Documentation
¶
Index ¶
- Variables
- func DefaultAndValidate[M any](m M) (M, error)
- type Action
- type Base
- type Base_builder
- type Metadata
- func (x *Metadata) ClearName()
- func (x *Metadata) ClearType()
- func (x *Metadata) ClearVersion()
- func (x *Metadata) GetName() string
- func (x *Metadata) GetType() string
- func (x *Metadata) GetVersion() string
- func (x *Metadata) HasName() bool
- func (x *Metadata) HasType() bool
- func (x *Metadata) HasVersion() bool
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) SetName(v string)
- func (x *Metadata) SetType(v string)
- func (x *Metadata) SetVersion(v string)
- func (x *Metadata) String() string
- type Metadata_builder
- type WithDefaulting
- type WithValidation
Constants ¶
This section is empty.
Variables ¶
View Source
var File_components_api_api_proto protoreflect.FileDescriptor
Functions ¶
func DefaultAndValidate ¶
Types ¶
type Action ¶
Action represents an action to be applied. It is a protobuf message with a standard metadata field.
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) ClearMetadata ¶
func (x *Base) ClearMetadata()
func (*Base) GetMetadata ¶
func (*Base) HasMetadata ¶
func (*Base) ProtoMessage ¶
func (*Base) ProtoMessage()
func (*Base) ProtoReflect ¶
func (x *Base) ProtoReflect() protoreflect.Message
func (*Base) SetMetadata ¶
type Base_builder ¶
type Base_builder struct {
Metadata *Metadata
// contains filtered or unexported fields
}
func (Base_builder) Build ¶
func (b0 Base_builder) Build() *Base
type Metadata ¶
type Metadata struct {
XXX_raceDetectHookData protoimpl.RaceDetectHookData
XXX_presence [1]uint32
// contains filtered or unexported fields
}
Metadata represents the metadata of an action to be applied.
func (*Metadata) ClearVersion ¶
func (x *Metadata) ClearVersion()
func (*Metadata) GetVersion ¶
func (*Metadata) HasVersion ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) SetVersion ¶
type Metadata_builder ¶
type Metadata_builder struct {
// version refers to the version of the action.
Version *string
// type refers to the type of action.
Type *string
// name refers to the name of the action.
Name *string
// contains filtered or unexported fields
}
func (Metadata_builder) Build ¶
func (b0 Metadata_builder) Build() *Metadata
type WithDefaulting ¶
type WithDefaulting interface {
Defaulting()
}
type WithValidation ¶
type WithValidation interface {
Validate() error
}
Click to show internal directories.
Click to hide internal directories.