Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAgentChangeType = []AgentChangeType{ AgentChangeTypeInsert, AgentChangeTypeUpdate, AgentChangeTypeRemove, }
View Source
var AllEventType = []EventType{ EventTypeInsert, EventTypeUpdate, EventTypeRemove, }
View Source
var AllParameterType = []ParameterType{ ParameterTypeString, ParameterTypeStrings, ParameterTypeInt, ParameterTypeBool, ParameterTypeEnum, ParameterTypeEnums, ParameterTypeMap, ParameterTypeYaml, ParameterTypeTimezone, }
View Source
var AllRelevantIfOperatorType = []RelevantIfOperatorType{ RelevantIfOperatorTypeEquals, }
Functions ¶
This section is empty.
Types ¶
type AgentChange ¶
type AgentChange struct { Agent *model.Agent `json:"agent"` ChangeType AgentChangeType `json:"changeType"` }
func ToAgentChange ¶
func ToAgentChange(change store.Event[*model.Agent]) *AgentChange
ToAgentChange converts a store.AgentChange to use for use with graphql
func ToAgentChangeArray ¶
func ToAgentChangeArray(changes store.Events[*model.Agent]) []*AgentChange
ToAgentChangeArray converts store.AgentChanges to a []*AgentChange for use with graphql
type AgentChangeType ¶
type AgentChangeType string
const ( AgentChangeTypeInsert AgentChangeType = "INSERT" AgentChangeTypeUpdate AgentChangeType = "UPDATE" AgentChangeTypeRemove AgentChangeType = "REMOVE" )
func (AgentChangeType) IsValid ¶
func (e AgentChangeType) IsValid() bool
func (AgentChangeType) MarshalGQL ¶
func (e AgentChangeType) MarshalGQL(w io.Writer)
func (AgentChangeType) String ¶
func (e AgentChangeType) String() string
func (*AgentChangeType) UnmarshalGQL ¶
func (e *AgentChangeType) UnmarshalGQL(v interface{}) error
type AgentConfiguration ¶
type Components ¶
type Components struct { Sources []*model.Source `json:"sources"` Destinations []*model.Destination `json:"destinations"` }
type ConfigurationChange ¶
type ConfigurationChange struct { Configuration *model.Configuration `json:"configuration"` EventType EventType `json:"eventType"` }
func ToConfigurationChange ¶
func ToConfigurationChange(event store.Event[*model.Configuration]) *ConfigurationChange
ToConfigurationChange converts a store.Event for Configuration to a ConfigurationChange for use with graphql
func ToConfigurationChanges ¶
func ToConfigurationChanges(events store.Events[*model.Configuration]) []*ConfigurationChange
ToConfigurationChanges converts store.Events for Configuration to an array of ConfigurationChange for use with graphql
type Configurations ¶
type Configurations struct { Query *string `json:"query"` Configurations []*model.Configuration `json:"configurations"` Suggestions []*search.Suggestion `json:"suggestions"` }
type DestinationWithType ¶
type DestinationWithType struct { Destination *model.Destination `json:"destination"` DestinationType *model.DestinationType `json:"destinationType"` }
type EventType ¶
type EventType string
func ToEventType ¶
ToEventType converts a store.EventType to a graphql EventType
func (EventType) MarshalGQL ¶
func (*EventType) UnmarshalGQL ¶
type ParameterType ¶
type ParameterType string
const ( ParameterTypeString ParameterType = "string" ParameterTypeStrings ParameterType = "strings" ParameterTypeInt ParameterType = "int" ParameterTypeBool ParameterType = "bool" ParameterTypeEnum ParameterType = "enum" ParameterTypeEnums ParameterType = "enums" ParameterTypeMap ParameterType = "map" ParameterTypeYaml ParameterType = "yaml" ParameterTypeTimezone ParameterType = "timezone" )
func (ParameterType) IsValid ¶
func (e ParameterType) IsValid() bool
func (ParameterType) MarshalGQL ¶
func (e ParameterType) MarshalGQL(w io.Writer)
func (ParameterType) String ¶
func (e ParameterType) String() string
func (*ParameterType) UnmarshalGQL ¶
func (e *ParameterType) UnmarshalGQL(v interface{}) error
type RelevantIfOperatorType ¶
type RelevantIfOperatorType string
const (
RelevantIfOperatorTypeEquals RelevantIfOperatorType = "equals"
)
func (RelevantIfOperatorType) IsValid ¶
func (e RelevantIfOperatorType) IsValid() bool
func (RelevantIfOperatorType) MarshalGQL ¶
func (e RelevantIfOperatorType) MarshalGQL(w io.Writer)
func (RelevantIfOperatorType) String ¶
func (e RelevantIfOperatorType) String() string
func (*RelevantIfOperatorType) UnmarshalGQL ¶
func (e *RelevantIfOperatorType) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.