Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Portal = hz.Portal{ ObjectMeta: hz.ObjectMeta{ Account: hz.RootAccount, Name: extName, }, Spec: &hz.PortalSpec{ DisplayName: "Greetings", Icon: gateway.IconCodeBracketSquare, }, }
Functions ¶
This section is empty.
Types ¶
type Greeting ¶
type Greeting struct { hz.ObjectMeta `json:"metadata" cue:""` Spec *GreetingSpec `json:"spec,omitempty" cue:""` Status *GreetingStatus `json:"status,omitempty"` }
func (Greeting) ObjectGroup ¶
func (Greeting) ObjectKind ¶
func (Greeting) ObjectVersion ¶
type GreetingReconciler ¶
type GreetingReconciler struct {
GreetingClient hz.ObjectClient[Greeting]
}
type GreetingSpec ¶
type GreetingSpec struct { // Name of the person to greet. Name string `json:"name,omitempty" cue:""` }
GreetingSpec defines the desired state of Greeting.
type GreetingStatus ¶
type GreetingStatus struct { // Ready indicates whether the greeting is ready. Ready bool `json:"ready"` // Error is the error message if the greeting failed. Error string `json:"error,omitempty" cue:",opt"` // Response is the response of the greeting. Response string `json:"response,omitempty" cue:",opt"` }
GreetingStatus defines the observed state of Greeting.
type GreetingValidator ¶
type GreetingValidator struct {
hz.ZeroValidator
}
func (*GreetingValidator) ValidateCreate ¶
func (*GreetingValidator) ValidateCreate( ctx context.Context, data []byte, ) error
type GreetingsHelloAction ¶
type GreetingsHelloAction struct{}
func (GreetingsHelloAction) Action ¶
func (GreetingsHelloAction) Action() string
Action implements hz.Action.
type PortalHandler ¶
type PortalHandler struct {
Conn *nats.Conn
}
func (*PortalHandler) Router ¶
func (h *PortalHandler) Router() *chi.Mux
type PortalRenderer ¶
func (*PortalRenderer) URL ¶
func (r *PortalRenderer) URL(steps ...string) string
Click to show internal directories.
Click to hide internal directories.