Documentation ¶
Index ¶
- type Artefact
- type ControllerKey
- type ControllerPayload
- type CronJob
- type CronJobKey
- type CronJobPayload
- type Deployment
- type DeploymentKey
- type DeploymentPayload
- type HostPortMixin
- type KeyPayload
- type KeyType
- func (d KeyType[T, TP]) Equal(other KeyType[T, TP]) bool
- func (d KeyType[T, TP]) GoString() string
- func (d KeyType[T, TP]) IsZero() bool
- func (d KeyType[T, TP]) Kind() string
- func (d KeyType[T, TP]) MarshalText() ([]byte, error)
- func (d *KeyType[T, TP]) Scan(src any) error
- func (d KeyType[T, TP]) String() string
- func (d *KeyType[T, TP]) UnmarshalText(bytes []byte) error
- func (d KeyType[T, TP]) Value() (driver.Value, error)
- type Labels
- type Origin
- type RequestKey
- type RequestKeyPayload
- type RunnerKey
- type RunnerPayload
- type SubscriberKey
- type SubscriberPayload
- type Subscription
- type SubscriptionKey
- type SubscriptionPayload
- type TopicEventKey
- type TopicEventPayload
- type TopicKey
- type TopicPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerKey ¶
type ControllerKey = KeyType[ControllerPayload, *ControllerPayload]
func NewControllerKey ¶
func NewControllerKey(hostname, port string) ControllerKey
func NewLocalControllerKey ¶
func NewLocalControllerKey(suffix int) ControllerKey
func ParseControllerKey ¶
func ParseControllerKey(key string) (ControllerKey, error)
type ControllerPayload ¶
type ControllerPayload struct {
HostPortMixin
}
func (*ControllerPayload) Kind ¶
func (c *ControllerPayload) Kind() string
type CronJobKey ¶
type CronJobKey = KeyType[CronJobPayload, *CronJobPayload]
func NewCronJobKey ¶
func NewCronJobKey(module, verb string) CronJobKey
func ParseCronJobKey ¶
func ParseCronJobKey(key string) (CronJobKey, error)
type CronJobPayload ¶
func (*CronJobPayload) Kind ¶
func (d *CronJobPayload) Kind() string
func (*CronJobPayload) Parse ¶
func (d *CronJobPayload) Parse(parts []string) error
func (*CronJobPayload) RandomBytes ¶
func (d *CronJobPayload) RandomBytes() int
func (*CronJobPayload) String ¶
func (d *CronJobPayload) String() string
type Deployment ¶
type Deployment struct { Module string Language string Key DeploymentKey Schema *schema.Module }
type DeploymentKey ¶
type DeploymentKey = KeyType[DeploymentPayload, *DeploymentPayload]
func NewDeploymentKey ¶
func NewDeploymentKey(module string) DeploymentKey
func ParseDeploymentKey ¶
func ParseDeploymentKey(key string) (DeploymentKey, error)
type DeploymentPayload ¶
type DeploymentPayload struct {
Module string
}
func (*DeploymentPayload) Kind ¶
func (d *DeploymentPayload) Kind() string
func (*DeploymentPayload) Parse ¶
func (d *DeploymentPayload) Parse(parts []string) error
func (*DeploymentPayload) RandomBytes ¶
func (d *DeploymentPayload) RandomBytes() int
func (*DeploymentPayload) String ¶
func (d *DeploymentPayload) String() string
type HostPortMixin ¶
HostPortMixin is a mixin for keys that have an (optional) hostname and a port.
func (*HostPortMixin) Parse ¶
func (h *HostPortMixin) Parse(parts []string) error
func (*HostPortMixin) RandomBytes ¶
func (h *HostPortMixin) RandomBytes() int
func (*HostPortMixin) String ¶
func (h *HostPortMixin) String() string
type KeyPayload ¶
type KeyPayload interface { Kind() string String() string // Parse the hyphen-separated parts of the payload Parse(parts []string) error // RandomBytes determines the number of random bytes the key should include. RandomBytes() int }
KeyPayload is an interface that all key payloads must implement.
type KeyType ¶
KeyType is a helper type to avoid having to write a bunch of boilerplate.
func (KeyType[T, TP]) MarshalText ¶
func (*KeyType[T, TP]) UnmarshalText ¶
type RequestKey ¶
type RequestKey = KeyType[RequestKeyPayload, *RequestKeyPayload]
A RequestKey represents an inbound request into the cluster.
func NewRequestKey ¶
func NewRequestKey(origin Origin, key string) RequestKey
func ParseRequestKey ¶
func ParseRequestKey(name string) (RequestKey, error)
type RequestKeyPayload ¶
func (*RequestKeyPayload) Kind ¶
func (r *RequestKeyPayload) Kind() string
func (*RequestKeyPayload) Parse ¶
func (r *RequestKeyPayload) Parse(parts []string) error
func (*RequestKeyPayload) RandomBytes ¶
func (r *RequestKeyPayload) RandomBytes() int
func (*RequestKeyPayload) String ¶
func (r *RequestKeyPayload) String() string
type RunnerKey ¶
type RunnerKey = KeyType[RunnerPayload, *RunnerPayload]
func NewLocalRunnerKey ¶
func NewRunnerKey ¶
func ParseRunnerKey ¶
type RunnerPayload ¶
type RunnerPayload struct {
HostPortMixin
}
func (*RunnerPayload) Kind ¶
func (r *RunnerPayload) Kind() string
type SubscriberKey ¶
type SubscriberKey = KeyType[SubscriberPayload, *SubscriberPayload]
func NewSubscriberKey ¶
func NewSubscriberKey(module, subscription, sink string) SubscriberKey
func ParseSubscriberKey ¶
func ParseSubscriberKey(key string) (SubscriberKey, error)
type SubscriberPayload ¶
func (*SubscriberPayload) Kind ¶
func (s *SubscriberPayload) Kind() string
func (*SubscriberPayload) Parse ¶
func (s *SubscriberPayload) Parse(parts []string) error
func (*SubscriberPayload) RandomBytes ¶
func (s *SubscriberPayload) RandomBytes() int
func (*SubscriberPayload) String ¶
func (s *SubscriberPayload) String() string
type Subscription ¶
type Subscription struct { Name string Key SubscriptionKey Topic TopicKey Cursor optional.Option[TopicEventKey] }
type SubscriptionKey ¶
type SubscriptionKey = KeyType[SubscriptionPayload, *SubscriptionPayload]
func NewSubscriptionKey ¶
func NewSubscriptionKey(module, name string) SubscriptionKey
func ParseSubscriptionKey ¶
func ParseSubscriptionKey(key string) (SubscriptionKey, error)
type SubscriptionPayload ¶
func (*SubscriptionPayload) Kind ¶
func (s *SubscriptionPayload) Kind() string
func (*SubscriptionPayload) Parse ¶
func (s *SubscriptionPayload) Parse(parts []string) error
func (*SubscriptionPayload) RandomBytes ¶
func (s *SubscriptionPayload) RandomBytes() int
func (*SubscriptionPayload) String ¶
func (s *SubscriptionPayload) String() string
type TopicEventKey ¶
type TopicEventKey = KeyType[TopicEventPayload, *TopicEventPayload]
func NewTopicEventKey ¶
func NewTopicEventKey(module, topic string) TopicEventKey
func ParseTopicEventKey ¶
func ParseTopicEventKey(key string) (TopicEventKey, error)
type TopicEventPayload ¶
func (*TopicEventPayload) Kind ¶
func (t *TopicEventPayload) Kind() string
func (*TopicEventPayload) Parse ¶
func (t *TopicEventPayload) Parse(parts []string) error
func (*TopicEventPayload) RandomBytes ¶
func (t *TopicEventPayload) RandomBytes() int
func (*TopicEventPayload) String ¶
func (t *TopicEventPayload) String() string
type TopicKey ¶
type TopicKey = KeyType[TopicPayload, *TopicPayload]
func NewTopicKey ¶
func ParseTopicKey ¶
type TopicPayload ¶
func (*TopicPayload) Kind ¶
func (t *TopicPayload) Kind() string
func (*TopicPayload) Parse ¶
func (t *TopicPayload) Parse(parts []string) error
func (*TopicPayload) RandomBytes ¶
func (t *TopicPayload) RandomBytes() int
func (*TopicPayload) String ¶
func (t *TopicPayload) String() string
Click to show internal directories.
Click to hide internal directories.