model

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 AgentConfiguration struct {
	Collector *string                `json:"Collector"`
	Logging   *string                `json:"Logging"`
	Manager   map[string]interface{} `json:"Manager"`
}

type Agents

type Agents struct {
	Query         *string              `json:"query"`
	Agents        []*model.Agent       `json:"agents"`
	Suggestions   []*search.Suggestion `json:"suggestions"`
	LatestVersion string               `json:"latestVersion"`
}

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
const (
	EventTypeInsert EventType = "INSERT"
	EventTypeUpdate EventType = "UPDATE"
	EventTypeRemove EventType = "REMOVE"
)

func ToEventType

func ToEventType(eventType store.EventType) EventType

ToEventType converts a store.EventType to a graphql EventType

func (EventType) IsValid

func (e EventType) IsValid() bool

func (EventType) MarshalGQL

func (e EventType) MarshalGQL(w io.Writer)

func (EventType) String

func (e EventType) String() string

func (*EventType) UnmarshalGQL

func (e *EventType) UnmarshalGQL(v interface{}) error

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

Jump to

Keyboard shortcuts

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