api

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_components_api_api_proto protoreflect.FileDescriptor

Functions

func DefaultAndValidate

func DefaultAndValidate[M any](m M) (M, error)

Types

type Action

type Action interface {
	proto.Message
	GetMetadata() *Metadata
	Redact()
}

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 (x *Base) GetMetadata() *Metadata

func (*Base) HasMetadata

func (x *Base) HasMetadata() bool

func (*Base) ProtoMessage

func (*Base) ProtoMessage()

func (*Base) ProtoReflect

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

func (*Base) Reset

func (x *Base) Reset()

func (*Base) SetMetadata

func (x *Base) SetMetadata(v *Metadata)

func (*Base) String

func (x *Base) String() string

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

func (x *Metadata) ClearName()

func (*Metadata) ClearType

func (x *Metadata) ClearType()

func (*Metadata) ClearVersion

func (x *Metadata) ClearVersion()

func (*Metadata) GetName

func (x *Metadata) GetName() string

func (*Metadata) GetType

func (x *Metadata) GetType() string

func (*Metadata) GetVersion

func (x *Metadata) GetVersion() string

func (*Metadata) HasName

func (x *Metadata) HasName() bool

func (*Metadata) HasType

func (x *Metadata) HasType() bool

func (*Metadata) HasVersion

func (x *Metadata) HasVersion() 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) SetName

func (x *Metadata) SetName(v string)

func (*Metadata) SetType

func (x *Metadata) SetType(v string)

func (*Metadata) SetVersion

func (x *Metadata) SetVersion(v string)

func (*Metadata) String

func (x *Metadata) String() string

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
}

Jump to

Keyboard shortcuts

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